Forum Replies Created

Viewing 15 posts - 1 through 15 (of 58 total)
  • Author
    Posts

  • sdalby
    Member

    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 ๐Ÿ™‚


    sdalby
    Member

    I 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.


    sdalby
    Member

    Hi 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.


    sdalby
    Member

    Ups, I forgot to mention that this can only be reproduced in FireFox. I9 does not have this problem.


    sdalby
    Member

    Hi 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รธren


    sdalby
    Member

    Hi 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');
    }

    sdalby
    Member

    Please disregard, without understanding the logic behind, it works if I open the window before defining the grid.


    sdalby
    Member

    I have reached the conclusion that I will write my own replacement, so dont spent any more time on this on my behalf


    sdalby
    Member

    In IE8 it is much worse, here the dialog is almost scrolled out of the window


    sdalby
    Member

    You load local data, Can you introduce some sort of delay simulating a longer load process?


    sdalby
    Member

    Hi 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">&amp;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') &amp;&amp;
    !$('#jqxStartEodWindow').jqxWindow('isOpen') &amp;&amp;
    !$('#jqxTaskDetailsWindow').jqxWindow('isOpen')&amp;&amp;
    activePage == 0) {
    // taskOverviewDataadapter.dataBind();
    $("#jqxOverviewGrid").jqxGrid('updatebounddata');
    }
    setTimeout(arguments.callee, refreshIntervalMs);
    }, refreshIntervalMs);
    • This reply was modified 11 years, 3 months ago by  sdalby.

    sdalby
    Member

    Are 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?


    sdalby
    Member

    Hi,

    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?


    sdalby
    Member

    Hi 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


    sdalby
    Member

    Hi

    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

Viewing 15 posts - 1 through 15 (of 58 total)