Forum
03:17
12/12/2009
Hi, I have a problem with select cell type.
I have read the document and I did this test.
If I use the for example in colModel: 'ID',index:'name', width:70, align:'left', formatter:'select', editable: true, edittype: 'select', editoptions:{value:”2009/2010:One;2:Two”}, I have not problem.
But if I replace the editoptions:{value:”2009/2010:One;2:Two”} with editoptions: { dataUrl: '/select.php'} I have not js error but the cell of grid remains blank.
In the edit form I have not problem.
The output format of select.php is : <select><option value='2'> Two </option></select>, the jqgrid version is 3.6.1.
Regards.
Giovanni.
17:56
Moderators
30/10/2007
Hello,
All editing modules includiing celledit use the same function for creating the element - i.e. dataUrl option too.
Check in FireBug what is the response when you edit a cell, or maybe you forgot in colModel to add edittype : 'select' for the grid with cell editing.
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.
18:37
12/12/2009
Thanks for your answer.
The problem I encountered is not in edit mode, but when I use the formatter: 'select' option.
With this option the editoptions:{value:”1:One;2:Two”} the grid works well, I can view One or Two value in the field of table in view mode and when (via navgrid method) I invoke edit mode I have not problem.
If I try to use editoptions:{dataUrl: 'cgibin.php'} in view mode the field is blank but in edit mode work well ( via navgrid method).
I am new to jqgrid and certainly I'm doing something wrong. Is possibile that formatter: 'select' option is not campatible with dataUrl?
Regards.
Giovanni.
18:38
Moderators
30/10/2007
Hello,
Yes this is true and I can not remember if it is described into the docs. In order to do ths maybe you just need to call
'cgibin.php' to obtain the value and then call the creation of the grid.
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.
Most Users Ever Online: 715
Currently Online:
83 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