Title: TypeError: row[opts.textField] is null in firebug Post by: kush on February 17, 2015, 04:19:41 AM on typing of combobox text box.I am getting below error in fire bug.
TypeError: row[opts.textField] is null return row[opts.textField].toLowerCase().indexOf(q.toLowerCase())==0; I think due to that error once i filter the less data is loading in combo.If i click outside again the full records are shown. here is my syntax of combo box <input id="proj_Name" class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/?action=get_list',method:'get',hasDownArrow:false" style=""> Please help me to avoid this typeerror. Thank you, Kushnoor Title: Re: TypeError: row[opts.textField] is null in firebug Post by: stworthy on February 17, 2015, 08:31:17 AM What's the data returned from the '/?action=get_list'? Each record should have the 'id' and 'text' properties.
Title: Re: TypeError: row[opts.textField] is null in firebug Post by: kush on February 17, 2015, 11:15:44 AM Yes it has is and text to each record...
Title: Re: TypeError: row[opts.textField] is null in firebug Post by: kush on February 17, 2015, 11:17:35 PM [{"id":"1","text":"middle"},{"id":"2","text":"poor"},{"id":"3","text":"rich"}.........]
Title: Re: TypeError: row[opts.textField] is null in firebug Post by: stworthy on February 17, 2015, 11:55:30 PM If the 'text' property has no valid value, please use the 'loadFilter' function to convert it to a valid value. For more information, please refer to this example http://jsfiddle.net/0uh6zqb3/.
Title: Re: TypeError: row[opts.textField] is null in firebug Post by: kush on February 18, 2015, 12:11:08 AM Thank you for the response .It worked!! :)
|