jQWidgets Forums

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: jqxGrid columns auto width jqxGrid columns auto width #8165

    khurram
    Member

    Hi Peter,
    I think i find the way out , :), thanks.

    regards,
    khurram

    in reply to: jqxGrid columns auto width jqxGrid columns auto width #8159

    khurram
    Member

    Hi Peter,
    I have sent a sample to support@jqwidgets.com with name “jqxwidgetsSample”, just run it and you will find jqxGrid at home page.
    Waiting for your quick response as you always do. 🙂

    regards,
    khurram

    in reply to: jqxGrid columns auto width jqxGrid columns auto width #8119

    khurram
    Member

    Hi Peter,

    I will send you a sample in a while.

    regards,
    khurram

    in reply to: jqxGrid columns auto width jqxGrid columns auto width #8117

    khurram
    Member

    Hi Peter,

    I tried to debug it, there is a method in jqxgrid.js i.e _updatecellwidths , fourth time it is being called, and now this.virtualsizeinfo is null which is being assigned to f, so it throws exception.

    regards,
    khurram

    in reply to: jqxGrid columns auto width jqxGrid columns auto width #8113

    khurram
    Member

    Hi Peter,

    thanks for your quick response. Well actually i downloaded the current version i.e 2.4.2 , that issue is resolved i think, need to reconfirm but now the problem is jqxgrid.js has error , it says that “f is null”.

    regards,
    khurram


    khurram
    Member

    Hi Peter,

    If i want to send extra parameter to grid’s server method then it is being set in source, is there any way to update the source without reassigning the source to grid. Currently i am doing like this:

    function onSearchFormSuccess(data) {

    var searchModelHf = $(‘#searchModel’);
    searchModelHf.val(data.searchModel); // searchModel is serialized filter string of form fields

    var source = $(“#jqxgrid_User”).jqxGrid(‘source’);
    if (source._source != undefined) {
    source._source.data = { data: searchModelHf.val() };
    }
    var dataAdapter = new $.jqx.dataAdapter(source._source);
    $(“#jqxgrid_User”).jqxGrid({source: dataAdapter});

    }

    As source is dataadapter actually, i can get the source from it like source._source and can set its data property
    but after doing that if i reassign this source to grid or even a new dataadapter pointing to this source._source even then it still renders the old dataadapter’s records.

    Here is my grid’s method:

    GetGridData(int pagenum, int pagesize, string sortDataField, string sortOrder, String data = null)

    Instead of assigning a new dataAdapter to grid can i update grid’s source only having updated data to be sent to server and then i would be calling $(“#jqxgrid_User”).jqxGrid(‘updatebounddata’);

    Best Regards,
    khurram


    khurram
    Member

    Hi Peter,

    I looked into the example that u told me to but it’s no use, can’t make it work. The thing is i don’t want to use grid’s filtering mechanism i do get filtered data on search button click from the server and on search success i want to assign that data to the grid like

    function onSearchFormSuccess(data) {

    //rebinding the grid
    var source = $(“#jqxgrid_User”).jqxGrid(‘source’);

    source.totalrecords = data.total;
    source.records = data.data;
    var dataAdapter = new $.jqx.dataAdapter(source);

    $(“#jqxgrid_User”).jqxGrid({source: dataAdapter});

    ///////////////////////////////

    The code above updates the grid but without calling it’s server method, even if i call updatebounddata at the end. Now the problem is it starts working client side, on paging or sorting it never calls it’s server method, so remote thing is broken.

    Any help would be appreciated, thanks.

    Best Regards,
    Khurram


    khurram
    Member

    Hi Peter,

    Thanks for a quick reply. Basically i am working in asp.net mvc3 and i had tried to do something like
    rendergridrows: function (obj) {
    return obj.records;
    }
    but here obj only consists of recordstartindex and recordendindex, i hadn’t included filter function in my source um let me check if it works for me, i will let you know.

    Best Regards,
    Khurram

Viewing 8 posts - 1 through 8 (of 8 total)