Problem with Editor Grid
Posted on Jan 08, 2009 under xn--zqqs84h3is.com | editi have simple EditorGrid.
When i doubleclick a row i get this:
[Exception... "'Die Erlaubnis für das Lesen der Eigenschaft HTMLDivElement.nodeType wurde verweigert' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "
The Pulldown apears. But when i select an item. THe Grid Shows the id instead of the name/label of the item.
The Code
editor: new Ext.form.ComboBox({
allowBlank: false,
displayField: 'name',
valueField: 'id',
mode: 'local',
width: colType.InputWidth,
listWidth: colType.InputListWidth,
selectOnFocus: true,
listClass: 'x-combo-list-small',
store: type_datastore,
typeAhead: true,
triggerAction: 'all',
lazyRender: true,
//
})
Ok, how about checking the response as seen by firebug for the store associated with your combo.
what does the code for the store look like?
What does the head of your html page look like?
I use the same store in my add-item panel of that page. here its working.
/**
* Setup Type Datastore
*/
type_datastore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: '/types?format=ext_json',
method: 'GET'
}),
reader: new Ext.data.JsonReader({
root: 'types',
id: 'id',
totalProperty: 'results'
}, [{
name: 'id',
mapping: 'id'
}, {
name: 'name',
mapping: 'name'
}]),
autoLoad: true,
});
What does the head of your html page look like?
I would wonder if this is the problem:
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag "ext/adapter/prototype/ext-prototype-adapter.js" %>
<%= javascript_include_tag "ext/ext-all-debug.js" %>
<%= javascript_include_tag "ext/source/locale/ext-lang-en.js" %>
<%= stylesheet_link_tag '../javascripts/ext/resources/css/ext-all.css' %>
<%= stylesheet_link_tag "layout.css" %>
#If you have any other info about this subject , Please add it free.# |