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
custom form
23/03/2009
10:31
Avatar
csetzkorn
UK
Member
Members
Forum Posts: 11
Member Since:
14/03/2009
sp_UserOfflineSmall Offline

Hi,

I think surl only works for search. Is this is still correct? Or is it also possible to create custom forms (form editing mode) where, for example, the drop-down list for certain 'select columns' are populated according to the current state of the database as can be done using surl.

It would be really nice to be able to create more sophisticated forms for edit and add! 

Or are there ways to intercept the creation of the form? I am using ASP.NET MVC.

Looking forward to any feedback. Many thanks in advance!

Best wishes,

 

Christian

24/03/2009
02:43
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Yes - surl is only for search, but with little code you can do the same in formediting. Look in this forum and you will see how easy is this.

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.

24/03/2009
10:31
Avatar
csetzkorn
UK
Member
Members
Forum Posts: 11
Member Since:
14/03/2009
sp_UserOfflineSmall Offline

Thanks. I have found:

http://the-wagyu.ddo.jp/web_te.....tbutt.html

I will have to write my own stuff to add a new item. I am just wondering:

How can I trigger a "rebind" of the jqgrid after I have added a new item/row to the database using homegrown javascript?

Thanks.

C

26/03/2009
03:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You can use FormToGrid method.

Regards

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.

26/03/2009
04:39
Avatar
csetzkorn
UK
Member
Members
Forum Posts: 11
Member Since:
14/03/2009
sp_UserOfflineSmall Offline

Hi,

 

Unfortunately, the form is more complicated than the 'fraction' of data depicted in the jqgrid. So I guess it would not work? Are there alternatives? Thanks and sorry for being a pain.

 

Christian

 

26/03/2009
05:05
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You can construct then own array and use addRowData or setRowData methods. See docs.

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.

26/03/2009
05:05
Avatar
csetzkorn
UK
Member
Members
Forum Posts: 11
Member Since:
14/03/2009
sp_UserOfflineSmall Offline

easier than I thought:

$(

"#list").trigger("reloadGrid");

26/03/2009
11:26
Avatar
csetzkorn
UK
Member
Members
Forum Posts: 11
Member Since:
14/03/2009
sp_UserOfflineSmall Offline

Just noticed that the latter does not work in Firefox ... :

$("#list").trigger("reloadGrid"); 

Also I have noticed that my ajax post submits the form 1+n times where n is (form_submission - 1). That might however be my fault.

C

30/03/2009
02:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

setTimeout(function() { $(”#list”).trigger(”reloadGrid”); },500);

To submit every time 🙂

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