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_TopicIcon
How can I use a custom form with navGrid?
12/12/2008
09:46
Avatar
a222493
Member
Members
Forum Posts: 3
Member Since:
21/11/2008
sp_UserOfflineSmall Offline

Hi,

I would like to be able to "customize" the built-in form editor. 

I need to:

1) Only display certian fields from the grid when Adding.  (But post them alll back to the server)

2) Make some fields "disabled" or "Read-Only" when Editing.

3) Populate combo boxes on the fly in the form.

I looked at the "editGridRow" method, but I think that I need to build my own custom form to perform edits.  I think that I could do this by using getGridParam('selrow') and editGridRow(gr, ...), but I'd like to use the navGrid buttons. 

  1. Can I use the “Edit” button on the navGrid to call my form and suppress the auto generated form?
  2. Do I have access to the colModel?  In particular the editable and editoptions properties?

I'm new to jQuery, so any example you could provide would be very helpful!

Thanks!

Dave

16/12/2008
02:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello Dave,

1. You can use addButtonNav (see docs) to add custom action

on the pager where onclick you can use your custom generated form.

2. Also please first read the docs. getColProp and setColProp will give

you the desired result.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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