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
Extra dialog before editGridRow form
09/10/2009
20:08
Avatar
Romyn
Member
Members
Forum Posts: 45
Member Since:
13/06/2009
sp_UserOfflineSmall Offline

Hi,

I'd like to have an extra dialog form that would come up before the editGridRow (new) dialog when adding a new row.

I'd like this to look just like the jqGrid dialogs but to have a title, a bit of explanatory text and then 2 buttons - "Proceed to Add New" and "Do something else"

I found this thread

http://www.trirand.com/blog/?p.....8;search=1

which gave some clues to how to achieve this - using the createModal and viewModal functions in grid.formedit.js but to be honest I'm a little bit lost on what to do with them - I'm a bit of a javascript novice I'm afraid.

Could anyone help set me straight on what I'd need to do to produce this intermediary dialog that has the same look and feel as the jqGrid ones - or point me to any examples.

As always any assistance would be greatly appreciated.

Thanks

Romyn

12/10/2009
11:59
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I have modified the info_dialog function which simplify this process. The function will be ready for 3.6 release and will have only two buttons Ok and Cancel, where you can apply a callbacks to them.

By the way if you use jQuery UI you can use a dialog widget.

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.

15/10/2009
09:29
Avatar
Romyn
Member
Members
Forum Posts: 45
Member Since:
13/06/2009
sp_UserOfflineSmall Offline

Thanks for that Tony,

Got the ui-dialog working ok - bit fiddly getting the position correct but got there in the end. Only need to get the buttons looking similar now but I'm sure I'll get there.

Cheers and regards

Romyn

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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