Forum


14:00

10/08/2009

Hi!
In general the filtering of data work with jqGrid and jQuery 1.4.1. See this example. So if you have a problem you should post the full code which can be used to reproduce the problem.
Best regards
Oleg
Hi, I have a similar problem with the 'filterToolbar'. In my case, the code is as follows:
------------------------------------
var TRepairsData.repairGrid = jQuery("#RepairList");
TRepairsData.repairGrid.jqGrid({
url:'/Dedalo.API/Repairs/GetPaginatedRepairsList/' + SelectedOffice + '/',
datatype: "json",
autowidth: true,
jsonReader : {
repeatitems: false,
},
colNames: ['Priority'],
colModel: [{ name: 'Priority', index: 'priority', width: 45, align: "center",
searchoptions: { defaultValue: '0' }
}
],
rowNum:100,
rowList:[100, 150, 200],
mtype: "GET",
multiselect: true,
caption: false,
pager: '#navRepair',
viewrecords: true,
sortname: 'incdate',
sortorder: 'desc',
gridComplete: function(){ ...}
});
TRepairsData.repairGrid.jqGrid('filterToolbar', { defaultSearch: "cn" });
----------------------------
I need to load the page, my grid is filtered with the default priority. Priority to changing the filter housing makes me a call to the server by passing the url indicated and the priority value you have written, that it is functioning properly, but I need to filter me from the start with the default, This may be the problem?
Sorry for my English
Thanks!
Most Users Ever Online: 715
Currently Online:
61 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66