Dec 07, 2015, 8:29 PM
[CLOSED] GridPanel One-to-many V2.5 with Single rowSelectionModel and Extra Parameter
I am updating a VisualStudio project and moving from Coolite to Ext.Net 2.5. My model works in the old version but will not update the details grid in the new version.
I am using the GridPanel one-to-many example with a sqldatasource. I have data in both of my stores
I am using the GridPanel one-to-many example with a sqldatasource. I have data in both of my stores
<SelectionModel>
<ext:RowSelectionModel ID="rsmMyGroup" runat="server" Mode="Single" >
<DirectEvents>
<Select OnEvent="RowSelectGroup" Buffer="250">
<EventMask ShowMask="true" Target="Page" />
<ExtraParams>
<ext:Parameter Name="myGroupID" Value="this.getSelected().get('myGroupID')" Mode="Raw" />
<ext:Parameter Name="Values" Value="Ext.encode(#{gpMyGroups}.getRowsValues())" Mode="Raw" />
</ExtraParams>
</Select>
</DirectEvents>
</ext:RowSelectionModel>
</SelectionModel>
protected void RowSelectGroup(object sender, Ext.Net.DirectEventArgs e)
{
//Comment: Sets fields in Details Panel
string s = e.ExtraParams["Values"];
Dictionary<string, string> MyGroup = Ext.Net.JSON.Deserialize<Dictionary<string, string>[]>(s)[0];
string myGroupID = MyGroup["myGroupID"];
this.txtMyGroupID.Text = myGroupID; //textbox to hold myGroupID value
this.datasetPanel2.SelectParameters["myGroupID"].DefaultValue = myGroupID;
this.storePanel2.DataBind();
}
Any help as to why the new model doesn't bind the details panel would be appreciated.
Last edited by Daniil; Dec 22, 2015 at 4:52 PM.
Reason: [CLOSED]