<script language="javascript" type="text/javascript">
function ScrollToSelectedNode()
{
var treeView = <%=radTreeView1.ClientID %>;
var selectedNode = treeView.SelectedNode;
if (selectedNode != null)
{ document.getElementById(selectedNode.ClientID).scrollIntoView(); }
}
</script>
When the user selects a node from the combobox this event fires:
protected
void cmbAllNodes_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
{
string id = e.Value;
RadTreeNode node = radTreeView1.FindNodeByValue(id);
node.Selected =
true;
}
In the aspx file the combobox looks like this:
<
telerik:RadComboBox ID="cmbAllNodes" runat="server" Skin="Outlook" Width="160px" AutoPostBack="True" onselectedindexchanged="cmbAllNodes_SelectedIndexChanged" onclientselectedindexchanged="ScrollToSelectedNode">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
So as you can see, when the selected index is changed the selected node of the treeView is changing but the scroll does not.
I call the client side method ScrollToSelectedNode when the user has selected a node from the combobox but the treeView does not scroll to it.
The help is much appreciated.
Thank you.
EDIT: I found out that var treeView = <%=radTreeView1.ClientID %>; does not return my instance of the RadTreeView but in fact it returns a DIV. What am i doing wrong?
Is there a simple way to display the RadProgressArea within a RadAjax Loading Panel or AJAX ModalPopup control so that User can not click around the page while the files are still uploading?
I have tried disabling the controls / buttons on the page while the file is uploading using the RadProgressmanager’s OnClientSubmitting & OnClientProgressStarted attributes, but got undesirable results.
| <telerik:RadComboBox ID="rcCS" runat="server" AllowCustomText="true" Width="200px"> |
| </telerik:RadComboBox> |
| |
| <asp:ImageButton ID="ibSelect" runat="server" ImageUrl="../images/ffwd.gif" ImageAlign="Middle" |
| ToolTip="Click to perform search"></asp:ImageButton> |
| CommandItemStyle-BackColor="red" |
of detailtable of radgrid..but its not working..
| <telerik:RadNumericTextBox style="width:5px; |
but its also not working.
plz help me...
Thanks