This is a migrated thread and some comments may be shown as answers.

AfterClientCallBackError - JS Function was not called

1 Answer 52 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
randz
Top achievements
Rank 1
randz asked on 21 Oct 2009, 02:12 AM
I am having a problem with the AfterClientCallBackError. I expect my function to get executed after a callback error was raised but my function was not called, and a default javascript error message was shown instead. (I am seeing something like "UnAuthorized[]_$$_") in the javascript alert. Are there any other event(s) that I can subscribe to to handle the callback error?

I am using Telerik.Web.UI (2008.1.619.20). The AfterClientCallBackError function was defined like this:

function AfterClientCallBackError(node) 
   alert("The error occured when you tried to expand the " + node.Text + " node"); 

The nodes' ExpandMode were set to ServerSideCallBack and I already tried putting the function before and after the treeview markup but both had the same problem.

<telerik:RadTreeView ID="_uscRadTrvtAuthority" runat="server" AfterClientCallBackError ="AfterClientCallBackError" OnClientContextMenuShowing="ClientContextMenuShowing" EnableDragAndDrop="true" AllowNodeEditing="true" OnNodeEdit="_uscRadTrvtAuthority_NodeEdit" Skin="Web20" ShowLineImages="False" CssClass="RadTreeView" OnClientNodeEditing="OnClientNodeEditing_uscRadTrvtAuthority" OnClientContextMenuItemClicking='OnClientContextMenuItemClicking'
                            <ContextMenus> 
                                <telerik:RadTreeViewContextMenu ID="ContextMenu1"
                                    <Items/> 
                                </telerik:RadTreeViewContextMenu> 
                            </ContextMenus> 
                            <CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation> 
                            <ExpandAnimation Duration="100"></ExpandAnimation> 
                        </telerik:RadTreeView> 

Please help.

1 Answer, 1 is accepted

Sort by
0
randz
Top achievements
Rank 1
answered on 21 Oct 2009, 03:39 AM
Never mind. I figured it out. I subscribed to OnClientNodePopulateFailed event instead.
Tags
TreeView
Asked by
randz
Top achievements
Rank 1
Answers by
randz
Top achievements
Rank 1
Share this question
or