EasyUI Forum
June 02, 2024, 04:37:37 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: TypeError: row[opts.textField] is null in firebug  (Read 7733 times)
kush
Newbie
*
Posts: 29


View Profile Email
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
kush
Newbie
*
Posts: 29


View Profile Email
« Reply #2 on: February 17, 2015, 11:15:44 AM »

Yes it has is and text to each record...
Logged
kush
Newbie
*
Posts: 29


View Profile Email
« Reply #3 on: February 17, 2015, 11:17:35 PM »

[{"id":"1","text":"middle"},{"id":"2","text":"poor"},{"id":"3","text":"rich"}.........]
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #4 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/.
Logged
kush
Newbie
*
Posts: 29


View Profile Email
« Reply #5 on: February 18, 2015, 12:11:08 AM »

Thank you for the response .It worked!! Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!