jQuery UI Widgets Forums Grid Filter parameters are always null in server side paging

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • Sibeesh Venu
    Participant

    Hi Team,
    My Filter parameters are always null in server side paging. My call is getting to the controller, but the filter values are not getting. Following is my implementation of source and data adapter object.

    var source =
                              {
                                  datafields: DataFields,
                                  datatype: "json",
                                  url: '../Widget/GetGridData/',
                                  sort: function () {
                                      $("#advancedgrid").jqxGrid('updatebounddata', 'sort');
                                  },
                                  filter: function () {
                                      $("#advancedgrid").jqxGrid('updatebounddata', 'filter');
                                  },
                                  beforeprocessing: function (data) {
                                      source.totalrecords = varDataCount;
                                  }
                              };
                var dataAdapter = new $.jqx.dataAdapter(source, {
                    loadComplete: function (data) {
                        var length = dataAdapter.records.length;
                    },
                    loadError: function (jqXHR, status, error) {
                        var test = status;
                        console.log(test);
                    },
                    downloadComplete: function (data, status, xhr) {
                        debugger;
                        return jQuery.parseJSON(data);
                    },
                    formatData: function (data) {
                        $.extend(data, {
                            selectedColumn: selectedColumn,
                            selectedRow: selectedRow,
                            selectedMeasures: selectedMeasures,
                            serverName: serverName,
                            databaseName: databaseName,
                            cubeName: cubeName,
                            queryTemplate: QueryTemplate,
                            chartMode: ChartMode,
                            chartType: chartType
                        });
                        return data;
                    }
                });

    Please help me. Thanks in advance.

    Kindest Regards
    Sibeesh Venu


    Dimitar
    Participant

    Hello Sibeesh,

    Please take a look at our help topic jqxGrid Server Paging, Sorting and Filtering to see how to correctly implement these functionalities.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.