jQWidgets Forums
Forum Replies Created
-
Author
-
Works!! Thanks a lot.
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”);
}
});
}
});Hi!
I do not know how to do it. Any clue, or example?Thanks,
PedroHi 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
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
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
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 -
AuthorPosts