Forum


19:13

12/12/2009

I did some tests about Navgrid.
I followed the indications from precedent topic about the recreateForm parameter and beforeInitData event.
I tried afterSubmit event too.
When I open the add form via Navgrid:
- the beforeInitData is fire (via setColProp cal I can column data);
- when I finished to compile form and I confirm via submit button the afterSubmit event fire and I can exec setColProp method;
- if the data (via editurl cgi) are entered without errors then the add form field is reset but the beforeInitData event is not fire.
I read the documentation but I have not found the event to fire before the field form is reset.
I possible call a method for trigger a particular event listed in argument?
Giovanni.
P.S. You have done a great job !!!
10:52

Moderators
30/10/2007

Hello,
Look here carefully
http://www.trirand.com/jqgridw.....ditgridrow
What about beforeSubmit event
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.
19:06

12/12/2009

Hello Tony thanks for your answer,
I tried to read the documentation again and I tried to make other test, but I could not solve the problem.
I saw that the execution of events is:
- First time via Add Navigator Button the events sequence is:
- 1) beforeInitData;
- 2) beforeShowForm;
- 3) Open form for add data;
- 4) onclickSubmit (when submit button is pressed);
- 5) afterSubmit;
- 6) reload of main grid and reset of fields add form data;
- 7) afterCompleted;
- 8) onClose; when I close the form add grid (opened in 3) step)
- In beforeInitData event the funtion exec jQuery("#list").setColProp('id_player',{editoptions:{value: SelezioneNominativi("httpd://localhost/id_not_in_grid.php") .... ;
- in the 3) step I can select the ID of player not is present int the main grid and add it into team table;
- in the 5) step the function exec jQuery("#list").setColProp('id_player',{editoptions:{value: SelezioneNominativi("httpd://localhost/id_in_grid.php"), in thi manner the reload of main grid is work well;
- Now if in 7) step I can exec jQuery("#list").setColProp('id_player',{editoptions:{value: SelezioneNominativi("httpd://localhost/id_not_in_grid.php") in the form add I continue to have the list of 5) step;
- in 7) step I tried to exec the trigger("reloadGrid") method but I have not effect.
After first insert record the events 1) and 2) is not fire.
I'm obviously doing something wrong.
Regards.
Giovanni.
19:19

12/12/2009

ERRATA CORRIGE.
Hello Tony thanks for your answer,
I tried to read the documentation again and I tried to make other test, but I could not solve the problem.
I saw that the execution of events is:
- First time via Add Navigator Button the events sequence is:
- 1) beforeInitData;
- 2) beforeShowForm;
- 3) Open form for add data;
- 4) onclickSubmit (when submit button is pressed);
- 5) afterSubmit;
- 6) reload of main grid and reset of fields add form data;
- 7) afterCompleted;
- 8) onClose; when I close the form add grid (opened in 3) step)
- In beforeInitData event the funtion exec jQuery(”#list”).setColProp('id_player',{editoptions:{value: SelezioneNominativi(”httpd://localhost/id_not_in_grid.php“) …. ;
- in the 3) step I can select the ID of player not is present int the main grid and add it into team table (EXAMPLE: player Jordan id added in the team);
- in the 5) step the function exec jQuery(”#list”).setColProp('id_player',{editoptions:{value: SelezioneNominativi(”httpd://localhost/id_in_grid.php“), in this manner the reload of main grid is work well;
- Now if in 7) step I can exec jQuery(”#list”).setColProp('id_player',{editoptions:{value:SelezioneNominativi(”httpd://localhost/id_not_in_grid.php”) in the form add I continue to have the list of 5) step (EXAMPLE: I continue to view the Jordan player while the return list of httpd://localhost/id_not_in_grid.php is correct.);
- in 7) step I tried to exec the trigger(”reloadGrid”) method but I have not effect.
After first insert record the events 1) and 2) is not fire.
I'm obviously doing something wrong.
Regards.
Giovanni.
Most Users Ever Online: 715
Currently Online:
49 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