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
formatter:'select'
12/12/2009
03:17
Avatar
gvnsbt
Member
Members
Forum Posts: 17
Member Since:
12/12/2009
sp_UserOfflineSmall Offline

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. 

13/12/2009
17:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

13/12/2009
18:37
Avatar
gvnsbt
Member
Members
Forum Posts: 17
Member Since:
12/12/2009
sp_UserOfflineSmall Offline

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.

15/12/2009
18:38
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information