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
Using jqGrid in regular forms
18/07/2008
14:17
Avatar
pero
Member
Members
Forum Posts: 3
Member Since:
18/07/2008
sp_UserOfflineSmall Offline

Hi,

for our current project we needed a non-obtrusive grid. By default jqGrid isn't so we added some functionality. First of all, we build up a colModel and rowData + selection from an existing table. Then we create the jqGrid.

Additionally to that we made jqGrid add a hidden input field with the current value if singleSelect and gave all checkboxes a name and value if multiselect. So everything works fine on form submit.

If you are interested I could share some code (it really isn't that much).

jqGrid is simply awesome, btw! There are still some issues (like dynamic width, resizing) but it is one of the best grids out there. Keep up the good work!

Cheers

Peter

20/07/2008
04:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Peter,

Thank you. Any additions and improvments are welcome. Will be glad to see this and incorporate to jqGrid (where aplicable). 

You can write me to tony at trirand dot com.

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.

20/07/2008
10:56
Avatar
Reg
Calgary, Canada
Member
Members
Forum Posts: 92
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

Hello Peter,

Are you saying that you have it so that when you submit your form the contents of the jqGrid are accessible?

This sounds like the solution to a problem I have -- I have a form with many fields, developed long before I knew about jQuery, that I want to be able to submit so I can access both normal form fields plus what's in jqGrid. (I actually have dozens, of forms like this and I don't want to rewrite everything using the form plugin).

So if your approach works to solve my problem, I would be delighted to see a sample of your code.

Thanks

Reg

20/07/2008
16:26
Avatar
pero
Member
Members
Forum Posts: 3
Member Since:
18/07/2008
sp_UserOfflineSmall Offline

Reg,

yes, with my patch jqGrid integrates seamlessly with regular forms making jqGrid completely non-obtrusive. I already sent the patch to Tony. The changes are minimal, btw.

If you want me to send you the patch, drop me an email to pr-jqgrid[AT]optivo[DOT]de.

Greetings

Peter

20/07/2008
16:40
Avatar
Reg
Calgary, Canada
Member
Members
Forum Posts: 92
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

Peter,

That is really good news. I have very little experience in writing javascript so I'm going to wait for Tony to incorporate it into the package (that way I also do not have to keep making the change when I am testing new releases).

Thanks very much

Reg

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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