PDA

View Full Version : Jsonstore with HTML content



choncona1
6 Oct 2010, 6:53 PM
Good morning, guys
I am having a problem with Jsonstore, please help me with this issue.
I created a store


var msgStore=new Ext.data.JsonStore({
root: 'rootMsg',
fields: ['MessageId','Message'],
totalProperty: 'totalMsg',
url: 'rPages/rUInternetMsg.aspx',
baseParams: {
m: 'msgstore'
}
});

and I am trying to make a paging combo box


var cboMsg=new Ext.form.ComboBox({
xtype: 'combo',
width: 650,
id: 'cboMsg',
store: msgStore,
displayField: 'Message',
valueField: 'MessageId',
minChars: 0,
enableKeyEvents: true,
pageSize: 35,
minListWidth: 220,
forceSelection: true
selectOnFocus: true
});

my problem comes from the fact that the store's content contains some HTML format such as

<font color=blue> Sorry For The Inconvenience Caused!!!
after I chose such a message and try to open the combo box for selecting another message,
it causes me error in ext-base.js

htmlfile:Unspecified error
This error doesn't appear when I use a normal store instead of Jsonstore.
I am newbie, so please kindly assist me with this problem.
I am really appreciated for your time

8 Aug 2012, 2:35 AM
Hi ,
Please do clear the store of combo box before u load it again.
this solves ur problem.

Regards
Anil

sword-it
13 Aug 2012, 4:03 AM
Hi

did you try autoLoad:true property for store?

Regards