When I drag a file node onto a folder node, I want the folder node expanded on the PostBack display.
On drop, the NodeDrop server event fires. I update my database table then set e.DestDragNode.Expanded to true (a breakpoint shows it was true anyhow). BTW, on PageLoad, I do not re-databind if IsPostBack.
I use the NodeDataBind event and this seems to fire even when IsPostBack is true. This fires after the NodeDrop and at this point, the Expanded property is false.
Is the NodeDataBind interfering with this property setting or am I missing something? Do I need client-side support for this? I don't think so since if I breakpoint within the NodeDataBind and manually set a few folder nodes Expanded property to true, they do display expanded when continuing from the breakpoint.
This is the control:
<telerik:radtreeview id="radTree" runat="server"
allownodeediting="True"
datafieldid="RowID"
datafieldparentid="ParentID"
datasourceid="sqlDataSourceCustomerContent"
datatextfield="ContentID"
datavaluefield="RowID"
enabledraganddrop="True"
multipleselect="True"
onclientcontextmenuitemclicking="onClientContextMenuItemClicking"
onclientdoubleclick="onClientDoubleClick"
oncontextmenuitemclick="radTree_ContextMenuItemClick"
onnodedatabound="radTree_NodeDataBound"
onnodedrop="radTree_NodeDrop"
onnodeedit="radTree_NodeEdit"
skin="Outlook">
[.... context menus ....]
<CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>
<ExpandAnimation Type="OutQuart" Duration="100"></ExpandAnimation>
</telerik:radtreeview>
Also, it would be nice if all currently expanded nodes remained expanded.
Can I wrap this in an Ajax panel so the "drop" postback is handled without the page-redisplay?
Thanks,
Gary Davis