jQWidgets Forums

jQuery UI Widgets Forums Grid params in datasource

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  jperera 10 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • params in datasource #68353

    jperera
    Participant

    Hello
    I have a Datasource with parameters declared in that way:
    data: { Device: $(“#cbHistorySystemNumber”).val(), IncludeOperatorAction: $(“#jqxHistoryIncludeOper”).jqxCheckBox(‘val’), endDate: $(‘#tbHistoryEndDate’).jqxDateTimeInput(‘getDate’) },

    I did the following functions to refresh the grid:
    $(document).ready(function () {
    $(‘#cbHistorySystemNumber’).on(‘select’, function (event) {
    $(“#gvHistory”).jqxGrid(‘updatebounddata’);
    });
    });
    $(document).ready(function () {
    $(‘#tbHistoryEndDate’).on(‘change’, function (event) {
    $(“#gvHistory”).jqxGrid(‘updatebounddata’);
    });
    });
    $(document).ready(function () {
    $(‘#jqxHistoryIncludeOper’).on(‘change’, function (event) {
    $(“#gvHistory”).jqxGrid(‘updatebounddata’);
    });
    });

    The problem is that when the events fired when I check the callback to the method in the server the parameters don’t change the value, the refresh is ok, the datasource go to the server but the parameters don’t have the changes that I made in the screen?? I missed something or what do you think
    Thank you very much
    Jose

    params in datasource #68360

    Peter Stoev
    Keymaster

    Hi Jose,

    You have to update your source data params, too.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    params in datasource #68365

    jperera
    Participant

    Thank you very much, how could I update my parameters?? Is there any function for that??

    Thanks again
    Jose

    params in datasource #68366

    Peter Stoev
    Keymaster

    Hi Jose,

    In the same way you set them. source.data = …… You can also use formatData callback.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    params in datasource #68367

    jperera
    Participant

    thank you very much Peter,
    It works!!!

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

You must be logged in to reply to this topic.