Feb 04, 2014, 8:16 AM
[CLOSED] TreePanel direct event SelectionChange Get custom attributes server side
Hi,
I have a Treepanel with custom attributes on the nodes, how could I access to the custom attributes of the selected node on the selection_change direct event?
I tried but I can access only to proxy server side objects without the direct access to the custom attributes.
Thank you for your help!
Here above there is the code.. up to now.. very empty..
Here the code of the node custom attributes initialization..
I have a Treepanel with custom attributes on the nodes, how could I access to the custom attributes of the selected node on the selection_change direct event?
I tried but I can access only to proxy server side objects without the direct access to the custom attributes.
Thank you for your help!
Here above there is the code.. up to now.. very empty..
Here the code of the node custom attributes initialization..
Ext.Net.Node node = new Ext.Net.Node()
{
Text = Convert.ToString(r["DescriptionShort"]),
Icon = Icon.Folder,
Expandable = false
};
node.CustomAttributes.Add(new ConfigItem("Id_iNV2_AM", Convert.ToString(r["Id_iNV2_AM"])));
The direct method..
protected void TreeFiltered_SelectionChange(object sender, DirectEventArgs e)
{
string s = e.ExtraParams["Node"].ToString();
}
<ext:TreePanel ID="TreeFiltered"
runat="server"
EnableDrag="true"
DDGroup="tree2div"
Region="West"
Split="true"
Margins="5 0 5 5"
Width="200"
Title="Albero topologico"
AutoScroll="true"
Collapsible="true">
<DirectEvents> <SelectionChange OnEvent="TreeFiltered_SelectionChange">
<ExtraParams>
<ext:Parameter Name="Node" Value="node.attributes.Id_iNV2_AM" Mode="Raw" />
</ExtraParams>
</SelectionChange>
</DirectEvents>
</ext:TreePanel>
Last edited by Daniil; Feb 11, 2014 at 3:06 PM.
Reason: [CLOSED]