-
13 Dec 2010 11:20 PM #1
How do Ext.form.Combo could accepts data begin/end with "<" and/or ">" char ?
How do Ext.form.Combo could accepts data begin/end with "<" and/or ">" char ?
Hi all, i have a combo with json data such as:
Take a look at "cust_name" column. Its value sometime contain "<" and/or ">" char and sometime dont.Code:{ "success": true, "total_rows": 144, "root": [ {"cust_name": "<MICHELE>"}, {"cust_name": "HERONA"}, {"cust_name": "<MATTHEW"}, ..... ] }
The bad news is, that combo only render "HERONA" only, the rest is blank.
So, how do Ext.form.Combo could accepts data begin/end with "<" and/or ">" char ?
-
13 Dec 2010 11:40 PM #2
-
14 Dec 2010 2:21 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
It does show the <> signs when you select the item, just not in the dropdown.
You can fix that with:
Code:tpl: '<tpl for="."><div class="x-combo-list-item">{myDisplayField:htmlEncode}</div></tpl>'
-
14 Dec 2010 10:22 PM #4
Similar Threads
-
[DUPE-447] Ext.data.TreeStore firing "read" not "load"
By benwhite in forum Sencha Touch 1.x: BugsReplies: 1Last Post: 3 Nov 2010, 1:32 PM -
[CLOSED][3.0] SetValue shows "valueField" instead of "displayField". mode "local".
By galdaka in forum Ext 3.x: BugsReplies: 3Last Post: 28 Oct 2009, 6:38 AM -
"datafield" and " radio" with load data in a Form
By launort in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 10 Aug 2009, 7:03 AM -
replace the "south" with the "new Ext.StatusBar" in "layout:'border'"
By ealpha in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 18 May 2008, 8:28 PM


Reply With Quote