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
Navgrrid Events.
21/12/2009
19:13
Avatar
gvnsbt
Member
Members
Forum Posts: 17
Member Since:
12/12/2009
sp_UserOfflineSmall Offline

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 !!!

22/12/2009
10:52
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

23/12/2009
19:06
Avatar
gvnsbt
Member
Members
Forum Posts: 17
Member Since:
12/12/2009
sp_UserOfflineSmall Offline

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.

23/12/2009
19:19
Avatar
gvnsbt
Member
Members
Forum Posts: 17
Member Since:
12/12/2009
sp_UserOfflineSmall Offline

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.

24/12/2009
14:15
Avatar
gvnsbt
Member
Members
Forum Posts: 17
Member Since:
12/12/2009
sp_UserOfflineSmall Offline

I found this workaround, I set closeAfterAdd parameter to true.

In this manner when the data is added the add grid is closed and when I insert new record I open the grid again.

In this manner all evets are fires again.

Regards.

Giovanni.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information