<system.web.extensions> <scripting> <webServices> <jsonSerialization maxJsonLength="2147483644" /> </webServices> </scripting> </system.web.extensions>but with no luck.
protected void rtvMain_NodeExpand(object sender, RadTreeNodeEventArgs e)
{
// Logic/Breakpoint here
}
function ExpandSelectedNode() {
var tree = $find("<%= rtvMain.ClientID %>");
if (tree.get_selectedNode() != null) {
var selectedNode = tree.get_selectedNode();
selectedNode.expand();
}
}
After the ajax/partial postback I call the javascript function by registering a startup script. I use ScriptManager.RegisterStartupScript and call my javascript function "ExpandSelectedNode()"
In the treeview I see the default loading animation appear on the selected node, which would indicated it is performing an asynchronous operation. The problem is that the server side handler "rtvMain_NodeExpand()" never gets called.
However, when I click the [+] next to the treeview item the postback is fired and it calls "rtvMain_NodeExpand()" as it should. This tells me that my treeview and its nodes are configured properly. So I have to assume there is a bug in the RadTreeNode.expand() client side method that is preventing it from firing the server side callback.
Protected Sub RadGrid1_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated If (TypeOf e.Item Is GridCommandItem) Then Dim commandItem As GridCommandItem = CType(e.Item, GridCommandItem) commandItem.Visible = False End If End Sub