Home › Forums › Guriddo jqGrid JS › Help › searchoptions : defaultValue problem
{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
Are you sure that with the
gvnsbt said: Are you sure that with the
gvnsbt said:
Hello,
For the searchFilter use
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
Try to remove the return
searchoptions:{sopt:['eq'], searchhidden:true, dataInit:function(elem) { $(elem).html('1');}} => NO
searchoptions:{sopt:['eq'], searchhidden:true, dataInit:function(elem) { $(elem).text('1');}} => NO
Hello
Try
searchoptions:{sopt:['eq'], searchhidden:true, dataInit:function(elem) { $(elem).val('1');}} =>YES
Regards
Tony
OK, Tony it's OK now.
I love your plug'in.
A splendid work.
Bests.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS