Forum


18:38

09/12/2011

Please help!! I am newbie on jggrid, loved it. However, there is a challenge. When I open a blank form to add new row to the grid, I need some fields on the form to be dynamically updated by going to the database to search for data if I change a field on the form. I found the code in the javascript to create a form for adding new row, may I change it to read from an external file (like an asp, php page) or is there any way to do it properly??
08:27

26/12/2011

18:00

20/08/2011

beforeShowForm: function(form){alert('before show form');},
The function syntax is correct and should work. You may have it in the wrong area. It should go into the navGrid section.
$('#tab3-grid').jqGrid('navGrid', '#tab3-pager',
{view:true, closeOnEscape:true}, // general parameters.
{jqModal:true, beforeShowForm: function(f){alert('hello');}}, // edit options.
{jqModal:true, beforeShowForm: dosomething}, // add options.
{jqModal:true, afterSubmit: serverMessage}, // del options.
{jqModal:true}, // search options.
{jqModal:true} // view options.
);var dosomething = function(formid){
// stuff to do.
}
Most Users Ever Online: 715
Currently Online:
51 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66