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
decreasing my jqGrid calls
22/09/2010
02:26
Avatar
Energetic Pixels
Lexington, OK, USA
Member
Members
Forum Posts: 40
Member Since:
12/04/2010
sp_UserOfflineSmall Offline

Ok. lets try ,this again.  My other post was too confusing.

I have a website where the site's menu is actually initiating jqGrid with varying static xml files and column models/onSelectRow actions.  I am trying to get this down to a minimum.  The person that updates this site may or may not be a web programmer.  Scary I know.

SOOO....

My original call to jqGrid works like a charm.  But to switch xml file source, I have to edit the js file that contains the call.  I have moved everything that differs from standard jqGrid and that will not change throughout my app over to jQuery.extend operation, as in this trirand's documentation.  But what remains is a extremely lengthy column model, onSelectRow and a short xmlReader.  I am going to have 41 web site menu buttons that will 'feed' jqGrid with configuration data.  Each button will feed jqGrid with slightly different config data from other buttons.  Is there a way to do this where it makes since.  My alternative is to repeat/restate the column model and onSelect row information and attach that to each button.  After 41 buttons, this will get quite lengthy js file.  My column model right now stands at 118 lines of code (just for one working button).  My onSelectRow is about 50 lines of code long.

there has to be a better way.  I thought about putting the column models and onSelectRow attributes into variables and feeding jqGrid those variables at the appropriate time through click functions from the site's buttons that activate jqGrid.  But I got confused and had to take a step back.

I would greatly any insight.  I know just enough to be dangerous of jQuery.  But willing to learn lots more. Here is my testing site.

TonyConfused

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
32 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