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
Search Select Dropdown not Work in New 4.0
13/05/2011
21:19
Avatar
jerry2011
Member
Members
Forum Posts: 4
Member Since:
27/04/2011
sp_UserOfflineSmall Offline

If setup search in grid:

stype:"select",editoptions:{value:"1:Yes;0:No"},searchoptions:{sopt:["eq","ne"]}

The search for drop down list is empty. It doesn't pick up anything in editoptions. Work well in 3.8.2. Any advice on how to fix it.

Thanks

Jerry

17/05/2011
16:11
Avatar
dluis
Member
Members
Forum Posts: 19
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

Try this: 

search: true, searchoptions: {value:'True:True;False:False'}, stype: 'select'

For me in 4 it works, but I'm having a layout problem with the window layout.

18/05/2011
05:53
Avatar
jerry2011
Member
Members
Forum Posts: 4
Member Since:
27/04/2011
sp_UserOfflineSmall Offline

Yes. I find as well. But the value in editoption should work as well. In the example, the value is set inside editoption. Also the defaultValue for select is not working. New issue:)

19/05/2011
20:02
Avatar
rmvenancio
Portugal
Member
Members
Forum Posts: 12
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

On edit the select option (automatically select the saved value) don't work on IE (works with Firefox and Chrome). This is a 4.0 issue.

19/05/2011
22:54
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks.

The expression of type "does not work" is the most used when es goes to describe the problem.

In order to help me, and help you,  you must proof what you desscribe or with other words a test case is needed - otherviewse nobody can replay.

Thank you

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

20/05/2011
12:07
Avatar
rmvenancio
Portugal
Member
Members
Forum Posts: 12
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

Tony,

Totally agree.Sorry to be to short in the last problem description.

I don't have a public webpage to do a prof of concept of it, but the problem is simple to reproduce.

I have a column like this :

{

name: 'Country', index: 'Country', align: 'left', sortable: true,
                 editable: true, edittype: "select", editoptions: { value: GetCountries() }, width: 160,
                 searchoptions: { sopt: ['cn', 'eq', 'bw', 'ew', 'nc', 'ne'] }
},

When the page with the grid is loaded, the column HTML is the following :

<td aria-describedby="list_Country" title="Hungary" style="text-align:left;" role="gridcell">Hungary</td>

And the GetCountries returns:

56:Belgium;276:Germany;348:Hungary;

724:Spain;752:Sweden

When I press edit. The window with the selected record is totally populated, but the dropdown selected value is Belgium instead of Hungary.

This problem only occurs with IE (tested with version 8 and 9). With firefox and Chrome the Hungary is automatically selected on the edit.

This is a bit stranger. Because in some of my controllers it works at the second time I open the edit window (IE behaviour). Other controllers with exacly the same implementation, i can press the edit button several times and the saved value is never selected in the dropdown select box.

I have changed to jqgrid src with all the bug fixes.

I hope the explanation was enlightening

Best regards,

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
33 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