EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
June 02, 2024, 04:37:37 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
TypeError: row[opts.textField] is null in firebug
Pages: [
1
]
« previous
next »
Print
Author
Topic: TypeError: row[opts.textField] is null in firebug (Read 7733 times)
kush
Newbie
Posts: 29
TypeError: row[opts.textField] is null in firebug
«
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
Re: TypeError: row[opts.textField] is null in firebug
«
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
Re: TypeError: row[opts.textField] is null in firebug
«
Reply #2 on:
February 17, 2015, 11:15:44 AM »
Yes it has is and text to each record...
Logged
kush
Newbie
Posts: 29
Re: TypeError: row[opts.textField] is null in firebug
«
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
Re: TypeError: row[opts.textField] is null in firebug
«
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
Re: TypeError: row[opts.textField] is null in firebug
«
Reply #5 on:
February 18, 2015, 12:11:08 AM »
Thank you for the response .It worked!!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...