jQWidgets Forums

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Cannot add filter Cannot add filter #112176

    pcasals
    Participant

    Works!! Thanks a lot.

    in reply to: long Filter data issue long Filter data issue #105315

    pcasals
    Participant

    I have found the solution. I have overwritten the loadServerData function of the dataadapter, using ajax post. This is my method, if it helps someone:
    var dataAdapter = new $.jqx.dataAdapter(source, {
    loadServerData: function (serverdata, source, callback) {
    $.ajax({
    type: “POST”,
    dataType: source.datatype,
    url: source.url,
    data: serverdata,
    success: function (data, status, xhr) {
    callback({ records: data.records, totalrecords: data.totalrecords });
    },
    error: function (XMLHttpRequest, textStatus, errorThrown) {
    alert(“some error”);
    }
    });
    }
    });

    in reply to: long Filter data issue long Filter data issue #105280

    pcasals
    Participant

    Hi!
    I do not know how to do it. Any clue, or example?

    Thanks,
    Pedro

    in reply to: Save grid statuts for user Save grid statuts for user #105279

    pcasals
    Participant

    Hi Todor,

    I have an issue with grid status I would like to solve. I have said prevoiusly that I persist state to an external database. I load state in grid’s ready function, but I have notice that the grid is loaded twice: one time before recovering state and a second time after recovering state. Where should I load the state, to prevent this double loading issue.

    Thanks

    Pedro

    in reply to: Save grid statuts for user Save grid statuts for user #105277

    pcasals
    Participant

    Hi Todor,

    Localstorage is not an option for me, because our requirements says that users will keep state even if they change to another computer.

    Best regards,

    pedro

    in reply to: Save grid statuts for user Save grid statuts for user #105171

    pcasals
    Participant

    Hi,

    When we have set autoloadstate: true/autosavestate: true, It would be nice to have a event that raises everytime the grid will load/save the state, so we can override the localstorage behaviour.

    Please, correct me if I am wrong, but right now, I have to call my custom save state function on most events (column resize, column reorder, filter, etc)

    Best regards,

    Pedro

    in reply to: long Filter data issue long Filter data issue #105170

    pcasals
    Participant

    Hi Peter,
    I Know that I should post it. But in what event do I have to implement the ajax call? Do you have an example?
    Thanks
    Pedro

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