Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ronperkins

Pages: [1]
1
If I do not pass any POST parameters as shown in the code below:

    var dataModel_brands = {
            location: "remote",
            dataType: "JSON",
            method: "POST",
            url: "/test_ajax.php",
            getData: function (dataJSON) {
                var data = dataJSON.data;
                return { curPage: dataJSON.curPage, totalRecords: dataJSON.totalRecords, data: data };
            },
            sortIndx: ["name"]
        };


My Ajax class receives these POST parameters: pq_datatype=JSON&pq_curpage=1&pq_rpp=20

But if I pass my own POST parameters which are needed as shown in the code below:

     var dataModel_brands = {
            location: "remote",
            dataType: "JSON",
            method: "POST",
            getUrl: function() {
                return { url: "/test_ajax.php", data: {a : 'fetch_brands', usr : 'username'} };
            },
            getData: function (dataJSON) {
                var data = dataJSON.data;
                return { curPage: dataJSON.curPage, totalRecords: dataJSON.totalRecords, data: data };
            },
            sortIndx: ["name"]
        };


My Ajax class only receives these POST parameters: a=fetch_brands&usr=username

For some reason the parameters needed for paging are not appended ?

Have I done something wrong or have I found a bug?

Thanks

2
Is it possible to have both remote paging and remote sorting?

I've found the demo of how to do remote paging but this uses local sorting which is not working very well... so I want to implement remote sorting as well.

Thanks

3
http://jsfiddle.net/Ljsnm654/

Within Chrome and Firefox (latest versions) setting selectionModel.type to null and selectionModel.mode to null removes the selection highlighting but still puts a border outline around the cell.

Is there a way to fix this?

Thanks
Ron

4
ParamQuery Pro Evaluation Support / How To Reset Grid ?
« on: January 09, 2016, 05:56:03 am »
I'm unable to find an option to allow me to completely reset the grid back... i.e. clear filters, clear sorts

The purpose of this is to allow the user to click a Refresh Button which will clear all filters and any sorts and will reset the grid back to its initial state.

Thanks

Pages: [1]