jQWidgets Forums
Forum Replies Created
-
Author
-
September 19, 2012 at 8:20 am in reply to: jqxGrid columns auto width jqxGrid columns auto width #8165
Hi Peter,
I think i find the way out , :), thanks.regards,
khurramSeptember 19, 2012 at 7:54 am in reply to: jqxGrid columns auto width jqxGrid columns auto width #8159Hi Peter,
I have sent a sample to support@jqwidgets.com with name “jqxwidgetsSample”, just run it and you will find jqxGrid at home page.
Waiting for your quick response as you always do.regards,
khurramSeptember 18, 2012 at 3:55 pm in reply to: jqxGrid columns auto width jqxGrid columns auto width #8119Hi Peter,
I will send you a sample in a while.
regards,
khurramSeptember 18, 2012 at 3:36 pm in reply to: jqxGrid columns auto width jqxGrid columns auto width #8117Hi Peter,
I tried to debug it, there is a method in jqxgrid.js i.e _updatecellwidths , fourth time it is being called, and now this.virtualsizeinfo is null which is being assigned to f, so it throws exception.
regards,
khurramSeptember 18, 2012 at 2:54 pm in reply to: jqxGrid columns auto width jqxGrid columns auto width #8113Hi Peter,
thanks for your quick response. Well actually i downloaded the current version i.e 2.4.2 , that issue is resolved i think, need to reconfirm but now the problem is jqxgrid.js has error , it says that “f is null”.
regards,
khurramAugust 31, 2012 at 12:48 pm in reply to: refreshing jqxGrid with remote binding using custom search refreshing jqxGrid with remote binding using custom search #7345Hi Peter,
If i want to send extra parameter to grid’s server method then it is being set in source, is there any way to update the source without reassigning the source to grid. Currently i am doing like this:
function onSearchFormSuccess(data) {
var searchModelHf = $(‘#searchModel’);
searchModelHf.val(data.searchModel); // searchModel is serialized filter string of form fieldsvar source = $(“#jqxgrid_User”).jqxGrid(‘source’);
if (source._source != undefined) {
source._source.data = { data: searchModelHf.val() };
}
var dataAdapter = new $.jqx.dataAdapter(source._source);
$(“#jqxgrid_User”).jqxGrid({source: dataAdapter});}
As source is dataadapter actually, i can get the source from it like source._source and can set its data property
but after doing that if i reassign this source to grid or even a new dataadapter pointing to this source._source even then it still renders the old dataadapter’s records.Here is my grid’s method:
GetGridData(int pagenum, int pagesize, string sortDataField, string sortOrder, String data = null)
Instead of assigning a new dataAdapter to grid can i update grid’s source only having updated data to be sent to server and then i would be calling $(“#jqxgrid_User”).jqxGrid(‘updatebounddata’);
Best Regards,
khurramAugust 31, 2012 at 9:36 am in reply to: refreshing jqxGrid with remote binding using custom search refreshing jqxGrid with remote binding using custom search #7336Hi Peter,
I looked into the example that u told me to but it’s no use, can’t make it work. The thing is i don’t want to use grid’s filtering mechanism i do get filtered data on search button click from the server and on search success i want to assign that data to the grid like
function onSearchFormSuccess(data) {
//rebinding the grid
var source = $(“#jqxgrid_User”).jqxGrid(‘source’);source.totalrecords = data.total;
source.records = data.data;
var dataAdapter = new $.jqx.dataAdapter(source);$(“#jqxgrid_User”).jqxGrid({source: dataAdapter});
///////////////////////////////
The code above updates the grid but without calling it’s server method, even if i call updatebounddata at the end. Now the problem is it starts working client side, on paging or sorting it never calls it’s server method, so remote thing is broken.
Any help would be appreciated, thanks.
Best Regards,
KhurramAugust 31, 2012 at 8:02 am in reply to: refreshing jqxGrid with remote binding using custom search refreshing jqxGrid with remote binding using custom search #7333Hi Peter,
Thanks for a quick reply. Basically i am working in asp.net mvc3 and i had tried to do something like
rendergridrows: function (obj) {
return obj.records;
}
but here obj only consists of recordstartindex and recordendindex, i hadn’t included filter function in my source um let me check if it works for me, i will let you know.Best Regards,
Khurram -
AuthorPosts