Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
.trigger('reloadGrid')
28/07/2010
23:36
Avatar
Energetic Pixels
Lexington, OK, USA
Member
Members
Forum Posts: 40
Member Since:
12/04/2010
sp_UserOfflineSmall Offline

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):

$('#smallarms').click(function() {
        $('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:

$("#22cal").click( function() {
        $("#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

07/03/2011
18:30
Avatar
TAlex
Member
Members
Forum Posts: 5
Member Since:
04/03/2011
sp_UserOfflineSmall Offline

I am having a similar problem as well.

My post is here /blog/?page_id=393/treegrid/how-to-handle-tree-grid-with-large-data-sets/

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
39 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information