Hi all,
I have a RadTreeView which I'm binding to a SiteMapDataSource. When I click on a node, it navigates to the page URL in the SiteMap. Normally, this would likely be the behavior that one would want. However, in my case, I'm trying to use the control to allow the user to modify the tree. I don't want the control to navigate to the URL corresponding to the node when the user clicks on the node. I just want them to select the node. Does anyone know if there is a way to prevent it from navigating? I'm guessing I'm running into this problem since I'm binding to a SiteMapDataSource. I was thinking maybe I could set a Handled property on the EventArgs to the NodeClick event to override the navigation, but, it doesn't look like that is supported.
Jon
I have a RadTreeView which I'm binding to a SiteMapDataSource. When I click on a node, it navigates to the page URL in the SiteMap. Normally, this would likely be the behavior that one would want. However, in my case, I'm trying to use the control to allow the user to modify the tree. I don't want the control to navigate to the URL corresponding to the node when the user clicks on the node. I just want them to select the node. Does anyone know if there is a way to prevent it from navigating? I'm guessing I'm running into this problem since I'm binding to a SiteMapDataSource. I was thinking maybe I could set a Handled property on the EventArgs to the NodeClick event to override the navigation, but, it doesn't look like that is supported.
<
asp:SiteMapDataSource
ID
=
"SiteMapDataSource1"
runat
=
"server"
/>
<
telerik:RadTreeView
ID
=
"RadTreeView1"
runat
=
"server"
DataSourceID
=
"SiteMapDataSource1"
Height
=
"200px"
onnodeclick
=
"RadTreeView1_NodeClick"
>
</
telerik:RadTreeView
>
Jon