Forum



23:36

12/04/2010

Ok. I finally have jqGrid working with both static xml files and static json files. Whew!
But I still have a slight nagging problem. I am using a website's menu to control the rendering of jqGrid and its data. I have the .trigger('reloadGrid') working just fine. But this only comes after clicking a menu item twice. This only needs to be done once for the application. Once done inside the application, the menu works ok. I am trying to get rid of the need to click a menu item once just to get the grid to operate correctly. Here is the starting script of jqGrid (it is tied to a button with id of smallarms):
$('itemAnalysis').hide();
$('#searchResults').jqGrid('GridUnload');
$('#searchResults').jqGrid({
url: 'weaponLib/ss-bullet22cal.xml',
datatype: 'xml',
colModel:[
{name:"dodic",i....
My menu buttons have something like the following tied to them:
$("#searchResults").jqGrid('setGridParam',{url:"weaponLib/sa-bullet22cal.xml"}).trigger("reloadGrid");
});
I am trying to get rid of having to click on the Small Arms button just to initiate the grid functionality, where my users/site visitors can just click on the drop down items (like the 22cal 'button' in the above script) that displays below Small Arms when mouse is rolled over Small Arms. I still want to be able to reload the grid with different data when the user selects a different menu item.
Tony
Most Users Ever Online: 715
Currently Online:
171 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