May 03, 2012, 8:44 PM
[CLOSED] PartialExtView and GridPanel SelectionModel
Hello,
The following code below generates the following error message in a PartialExtView over AJAX:
Here is the JavaScript returned:
Cheers,
Timothy
The following code below generates the following error message in a PartialExtView over AJAX:
TypeError: ownerContext.target.ownerLayout is undefined
a.Add(Html.X().GridPanel()
.Height(250)
.Title("Users")
...
.SelectionModel(model =>
model.Add(Html.X().RowSelectionModel())
)
)
If you remove the SelectionModel the error disappears.Here is the JavaScript returned:
Ext.net.addTo("TabSetupUser", [{border:false,xtype:"panel",items:[{html:"\r\n\t\t\t\t<h2>Users</h2>\r\n\t\t\t\t<p>Use the following section to manage the <i>Users</i> on the application:</p>\r\n\t\t\t",xtype:"container"},{store:{model:Ext.define(Ext.id(), {extend: "Ext.data.Model", fields:[{name:"Id"},{name:"FirstName",type:"string"},{name:"LastName",type:"string"},{name:"Email"}] }),storeId:"idba4bc96f66d3f8f8",autoLoad:true,proxy:{type:"ajax",reader:{type:"json",idProperty:"Id",root:"data"},url:"/Management/User/Get"}},height:250,plugins:[{ptype:"rowediting"}],xtype:"grid",title:"Users",columns:{items:[{flex:1,dataIndex:"Email",text:"Email"}]},selModel:window.App.idd3ef8586fb35e1e7=Ext.create("Ext.selection.RowModel",{proxyId:"idd3ef8586fb35e1e7",selType:"rowmodel"})}]}]);
Using the latest SVN build.Cheers,
Timothy
Last edited by Daniil; May 04, 2012 at 3:53 PM.
Reason: [CLOSED]