Forum Replies Created
-
Author
-
March 14, 2013 at 2:13 pm in reply to: First tab disappear when selected programatically First tab disappear when selected programatically #17089
I found out, that if I open the hosting window and then select the tab, the problem goes away.
I selected the tab while the window was closed.
My bad, Sorry ๐
March 13, 2013 at 11:26 am in reply to: First tab disappear when selected programatically First tab disappear when selected programatically #16952I cant, it is a very complex page, and if I isolate it, I probably get the same result as you,
In my page, the tab is inside a window. I try to reset to first tab, when the window is opened.
The funny part is that it is not just missing. I can see an animation where it disappears.
February 28, 2013 at 11:59 am in reply to: Window closes when using danish characters Window closes when using danish characters #16031Hi Dimitar,
I figured out what caused this bug. I had set
keyboardCloseKey: 0
in order to supress that ESC closed the window. Having removed that, the problem disappeared.
February 27, 2013 at 2:22 pm in reply to: Window closes when using danish characters Window closes when using danish characters #15958Ups, I forgot to mention that this can only be reproduced in FireFox. I9 does not have this problem.
January 4, 2013 at 11:50 am in reply to: Obtaining dimensions of inner tab Obtaining dimensions of inner tab #13119Hi again,
As I read it, you are explaining me in general how to get the height of a div in jquery.
It was exactly this I was trying, but you generate a div with class qx-tabs-content and I need to get the dimensions of the jqxtab client area.
TIA
/SรธrenNovember 21, 2012 at 12:28 pm in reply to: Grouping grid causes problems in modal window Grouping grid causes problems in modal window #11300Hi Peter
It is really good news if this is the reason to all the problems, I have encountered. Can you verify that this is the general way to do it:
function defineTransferredCurrenciesWindow() { var width = 1400; var height = 850; $('#TransferredCurenciesWindow').jqxWindow({ height: height, maxHeight: height, width: width, maxWidth: width, theme: 'classic', autoOpen: false, isModal: true, animationType: 'none', initContent: function() { var numberWidth = 120; var timeStampWidth = 150; $("#jqxgridTransferCurrencies").jqxGrid( { width: 1300, height: 735, groupable: true, columns: [ { text: 'Company', datafield: 'Company', width: 100 }, { text: 'Currency', datafield: 'Currency', width: 100 }, { text: 'Base currency', datafield: 'BaseCurrency', width: 100 }, { text: 'Buy rate', datafield: 'BuyRate', cellsalign: 'right', width: numberWidth }, { text: 'Sell rate', datafield: 'SellRate', cellsalign: 'right', width: numberWidth }, { text: 'Default spread', datafield: 'DefaultSpread', cellsalign: 'right', width: numberWidth }, { text: 'Buy rate', datafield: 'BuyRate', cellsalign: 'right', width: numberWidth }, { text: 'Middle rate', datafield: 'MiddleRate', cellsalign: 'right', width: numberWidth }, { text: 'Buy time', datafield: 'BuyTimeStamp', cellsalign: 'right', width: timeStampWidth }, { text: 'Sell time', datafield: 'SellTimeStamp', cellsalign: 'right' } ], groups: ['Company'] }); } });}function openTransferredCurrenciesWindow(currencyTransferId) { callServerAsync('CurrencyImportWebService.asmx/GetCurrencyDetails', { currencyTransferId: currencyTransferId, preferredLanguage: startParameters.preferredLanguage }, function (result) { showTransferredCurrenciesWindow(result.d); });}function showTransferredCurrenciesWindow(currencyList) { var source = { localdata: currencyList, datatype: "array" }; $("#jqxgridTransferCurrencies").jqxGrid({ source: source }); $('#TransferredCurenciesWindow').jqxWindow('open'); }
November 21, 2012 at 11:44 am in reply to: Grouping grid causes problems in modal window Grouping grid causes problems in modal window #11298Please disregard, without understanding the logic behind, it works if I open the window before defining the grid.
November 2, 2012 at 12:57 pm in reply to: FF Flickering when updating datasource FF Flickering when updating datasource #10463I have reached the conclusion that I will write my own replacement, so dont spent any more time on this on my behalf
November 2, 2012 at 10:27 am in reply to: Problem with modal windows and (mainly) FireFox (background div) Problem with modal windows and (mainly) FireFox (background div) #10454In IE8 it is much worse, here the dialog is almost scrolled out of the window
November 2, 2012 at 10:26 am in reply to: FF Flickering when updating datasource FF Flickering when updating datasource #10453You load local data, Can you introduce some sort of delay simulating a longer load process?
November 1, 2012 at 4:38 pm in reply to: FF Flickering when updating datasource FF Flickering when updating datasource #10432Hi thanks for taking this up. I understand it is standard behaviour, but I am dead if I cannot make this work.
The code monitors jobs running on a server. From here the user can start jobs but it is vital that the list continously montors the state of jobs (started, executing, failing, stopped etc.). This is achived by asking the server each 4 seconds.
I spent a looong time trying to make this work with WebServices but I couldnt make it work, so I call an ASP.NET Generic handler.
The flickering can in my experience only be caused but the fact that you update something prior to loading, then loads and updates. This “something” could very well be the loading image – and since IE doesnt show it and runs smoothly, this is likely to be the case.
You would really make me a happy camper, if this can be fixed ๐
function defineOverviewGrid() { var activePage = 0; source = { type: "GET", url: 'EodOverviewList.ashx', contentType: 'application/json; charset=utf-8', datatype: "json", datafields: [ { name: 'Id' }, { name: 'TimeToFire', type: 'date' }, { name: 'SysDate', type: 'date' }, { name: 'NewDate', type: 'date' }, { name: 'Status' }, { name: 'ReasonForExecution' }, { name: 'ModulesExecuted' }, { name: 'CampTransNo', type: 'int' }, { name: 'LinkBar' } ], async: false, formatdata: function (data) { activePage = data.pagenum; return { pagenum: data.pagenum, pagesize: data.pagesize }; } }; $.ajax({ url: 'EodOverviewWebService.asmx/GetOverviewCount', contentType: 'application/json; charset=utf-8', async: false, error: errorHandler, success: function (data) { source.totalrecords = data.d; } }); var statusCellRenderer = function (row, columnfield, value) { var html = '<div style="background: ' + taskStatusColorLookup[value].background + ';color: ' + taskStatusColorLookup[value].color + ';width: 100%;height: 100%">\n' + '<div style="padding-left: 6px;padding-top: 4px">' + taskStatusColorLookup[value].text + '</div>' + '</div>'; return html; }; var linkBarCellRenderer = function (row, columnfield, value) { var html = '<div style="padding-left: 6px;padding-top: 4px">&nbsp' + value + '</div>'; return html; }; taskOverviewDataadapter = new $.jqx.dataAdapter(source); $("#jqxOverviewGrid").jqxGrid( { selectionmode: 'none', width: 1270, source: taskOverviewDataadapter, theme: theme, autoheight: true, pageable: true, virtualmode: true, pagesize: 25, altrows: true, rendergridrows: function () { return taskOverviewDataadapter.records; }, columns: [ { text: 'Task id', datafield: 'Id', width: 50 }, { text: 'Execution date', datafield: 'TimeToFire', cellsformat: 'dd-MM-yy hh:mm:ss', width: 140, resizable: true }, { text: 'System date', datafield: 'SysDate', cellsformat: 'dd-MM-yy', width: 90, resizable: true }, { text: 'New date', datafield: 'NewDate', cellsformat: 'dd-MM-yy', width: 90, resizable: true }, { text: 'Camp transno', datafield: 'CampTransNo', width: 90, resizable: true }, { text: 'Modules executed', datafield: 'ModulesExecuted', width: 300, resizable: true }, { text: 'Reason for execution', datafield: 'ReasonForExecution', width: 300, resizable: true }, { text: 'Status', datafield: 'Status', width: 130, resizable: true, cellsrenderer: statusCellRenderer }, { text: 'Actions', datafield: 'LinkBar', width: 80, resizable: true, cellsrenderer: linkBarCellRenderer } ] }); var refreshIntervalMs = 4000; setTimeout(function () { if (!$('#jqxEodDetailsWindow').jqxWindow('isOpen') && !$('#jqxStartEodWindow').jqxWindow('isOpen') && !$('#jqxTaskDetailsWindow').jqxWindow('isOpen')&& activePage == 0) { // taskOverviewDataadapter.dataBind(); $("#jqxOverviewGrid").jqxGrid('updatebounddata'); } setTimeout(arguments.callee, refreshIntervalMs); }, refreshIntervalMs);
November 1, 2012 at 3:26 pm in reply to: FF Flickering when updating datasource FF Flickering when updating datasource #10419Are you aware of that IE9 is completely smooth with this and doesnt show a loading message.
I am thinking that your attempt to show this prior to loading is what is causing the problem – can I attempt to disable it somehow?
Any way at all?
November 1, 2012 at 3:08 pm in reply to: FF Flickering when updating datasource FF Flickering when updating datasource #10415Hi,
I tried and it is even worse, not only does it also flickr but it also shows the *Loading* image.
I am so dead if I cant fix this. Is there another approach?
October 30, 2012 at 11:35 am in reply to: Cannot make server side paging work with ASP.NET Web Service Cannot make server side paging work with ASP.NET Web Service #10219Hi again,
Actually I have to move on – I cannot spend more time on this now and I have something that works.
Thanks for all your help
October 30, 2012 at 10:47 am in reply to: Cannot make server side paging work with ASP.NET Web Service Cannot make server side paging work with ASP.NET Web Service #10207Hi
Your right, it did make a different, which is a bit confusing since ‘contentType’ is used for $.ajax calls
How ever it just makes the ASMX service give a more correct error:
Invalid JSON primitive: pagenum.
which is correct according to the above referenced document, because http POST/GET parameters cannot be used in a JSON call unless passed on as a ‘data’ object.
It does however appear as if WCF OData based services can handle it, according to your examples. You should be aware of though, that ASMX is the widespread choice for .NET developers.
Thanks for your assistance ๐
Soeren
-
AuthorPosts