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
searchoptions : defaultValue problem
08/01/2010
11:45
Avatar
olaf
GRENOBLE (FRANCE)
Member
Members
Forum Posts: 27
Member Since:
08/01/2010
sp_UserOfflineSmall Offline

{name:'nom',index:'nom', width:220, stype: 'text', searchoptions:{sopt:['bw','cn'], searchhidden: true, defaultValue:'LAF'}, hidden: true},

No default showed in the dialog

Bests

08/01/2010
13:12
Avatar
gvnsbt
Member
Members
Forum Posts: 17
Member Since:
12/12/2009
sp_UserOfflineSmall Offline

Are you sure that with the  hidden option to true you can view the field nom in the search form?

Giovanni.

08/01/2010
13:29
Avatar
olaf
GRENOBLE (FRANCE)
Member
Members
Forum Posts: 27
Member Since:
08/01/2010
sp_UserOfflineSmall Offline

gvnsbt said:

Are you sure that with the  hidden option to true you can view the field nom in the search form?

Giovanni.


YES, it's the purpose of searchhidden: true otpion

08/01/2010
13:44
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

For the searchFilter use  dataInit instead of defaultValue. The defaultValue is only for the filterTollbar and filterGrid.

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.

08/01/2010
14:12
Avatar
olaf
GRENOBLE (FRANCE)
Member
Members
Forum Posts: 27
Member Since:
08/01/2010
sp_UserOfflineSmall Offline

Tony,

Thank you,

The doc say :

If set this function is called only once when the element is created. To this function we pass the element object.
dataInit: function(elem) {

do something

}

My options :

searchoptions:{sopt:['eq'], searchhidden:true, dataInit:function(elem) { return $(elem).html('1');}}

are not OK

08/01/2010
14:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Try to remove the return

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.

08/01/2010
14:30
Avatar
olaf
GRENOBLE (FRANCE)
Member
Members
Forum Posts: 27
Member Since:
08/01/2010
sp_UserOfflineSmall Offline

searchoptions:{sopt:['eq'], searchhidden:true, dataInit:function(elem) { $(elem).html('1');}} => NO

searchoptions:{sopt:['eq'], searchhidden:true, dataInit:function(elem) { $(elem).text('1');}} => NO

10/01/2010
12:49
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello

Try

searchoptions:{sopt:['eq'], searchhidden:true, dataInit:function(elem) { $(elem).val('1');}} =>YES Wink

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.

10/01/2010
14:06
Avatar
olaf
GRENOBLE (FRANCE)
Member
Members
Forum Posts: 27
Member Since:
08/01/2010
sp_UserOfflineSmall Offline

OK, Tony it's OK now.

I love your plug'in.

A splendid work.

Bests.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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