PDA

View Full Version : ItemSelector does not displayed



Anver
15 Dec 2012, 1:45 PM
Hi! I have a strange problem.
I'm using an ItemSelector in my project with following definition:


xtype: 'itemselector',
id: Suprema.distribution.socialCategoriesId,
width: parseInt(panelWidth) - 20,
margin: '10 10 10 10',
height: 235,
buttons: ['add', 'remove'],
fromTitle: 'from test',
toTitle: 'to test',
buttonsText: {
add: '<bean:message bundle="mrn" key="distributions.creation.parameters.social_category.add"/>',
remove: '<bean:message bundle="mrn" key="distributions.creation.parameters.social_category.remove"/>'
},
store: {
model: 'Suprema.distribution.Model',
autoLoad: true,
proxy: {
type: 'ajax',
url: '<html:rewrite action="/distribution/socialcategories" />',
reader: {
type: 'json',
root: 'results'
}
}
},
displayField: 'val',
valueField: 'key',
value: '',
allowBlank: true
When page is loaded, ajax request (specified in the store definition) is performed, and all required data is got from server, but, an ItemSelector is not shown on the page. Moreover - in DOM structure I can see the result of rendering process - correct html elements for item selector. I've checked for css style problems, but it looks okay.

Can you help me?

Anver
15 Dec 2012, 1:47 PM
And one more thing - browser console is clean. There are no any errors in console.