OnNodeClick gives Sys.ParameterCountException sometimes

2 posts, 0 answers
  1. Chris
    Chris avatar
    7 posts
    Member since:
    Dec 2012

    Posted 23 May 2013 Link to this post

    I am using a rad tree to display a list of clickable menu items. But half of the time when i perform a click i get this:

    1. Uncaught Sys.ParameterCountException: Sys.ParameterCountException: Parameter count mismatch. ScriptResource.axd:222
      1. Error$parameterCountScriptResource.axd:398
      2. Function$emptyMethodScriptResource.axd:52
      3. Sys$Net$XMLHttpExecutor$abortScriptResource.axd:4920
      4. Sys$WebForms$PageRequestManager$abortPostBackScriptResource.axd:296
      5. Sys$WebForms$PageRequestManager$_onFormSubmitScriptResource.axd:869
      6. Sys$WebForms$PageRequestManager$_doPostBackScriptResource.axd:484
      7. (anonymous function)ScriptResource.axd:47
      8. (anonymous function)
      9. a.RadTreeView._postbackScriptResource.axd:1151
      10. a.RadTreeView._postClickCommandScriptResource.axd:1443
      11. a.RadTreeView._clickScriptResource.axd:1669
      12. Telerik.Web.UI.EventMap._onDomEventScriptResource.axd:488
      13. (anonymous function)ScriptResource.axd:47
      14. g

    I navigated in the console to RadTreeView._postClickCommand and the method "h._getHierarchicalIndex()" appears to be returning the correct parameters (ex 0:0:1)
    I am using version 2012.1.411.35 of Web.UI and i have a RadAjaxManager and ScriptManager on the page. 

    TreeViewCode:
    <telerik:RadTreeView ID="treeFolders" runat="server" Skin="skyrouter" EnableEmbeddedSkins="false" EnableDragAndDrop="false" AllowNodeEditing="true"
                            OnNodeClick="treeFolders_NodeClick1" OnNodeDataBound="treeFolders_NodeDataBound"
                            OnNodeEdit="treeFolders_NodeEdit"  OnContextMenuItemClick="treeFolders_ContextMenuItemClick"
                            OnClientContextMenuItemClicking="onClientContextMenuItemClicking"
                            OnClientContextMenuShowing="onClientContextMenuShowing" OnClientNodeClicking="Tree_onNodeClicking"
                            OnClientMouseOver="Tree_onNodeMouseOver" OnClientMouseOut="Tree_onNodeMouseOut"
                            OnClientNodeEditStart="TreeNodeEditStart" OnClientNodeEditing="TreeNodeEditing">
                            <ContextMenus>
                                <telerik:RadTreeViewContextMenu ID="mailTreeViewContextMenu" Skin="skyrouter" runat="server"
                                    meta:resourcekey="mailTreeViewContextMenu" EnableEmbeddedSkins="false">
                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                    <Items>
                                        <telerik:RadMenuItem runat="server" Text="New Folder" Value="NewFolder" ImageUrl="~/images/Communicate/Img/OutLook/12.gif"
                                            meta:resourcekey="RadMenuItem1" />
                                        <telerik:RadMenuItem runat="server" Text="Delete" Value="Delete" ImageUrl="~/images/Communicate/Img/OutLook/7.gif"
                                            meta:resourcekey="RadMenuItem2" />
                                        <telerik:RadMenuItem runat="server" Text="Rename" Value="Rename" PostBack="false"
                                            ImageUrl="~/images/Communicate/Img/OutLook/rename.gif" meta:resourcekey="RadMenuItem3" />
                                    </Items>
                                </telerik:RadTreeViewContextMenu>
                                <telerik:RadTreeViewContextMenu ID="RadTreeViewContextMenu_Trash" Skin="skyrouter"
                                    runat="server" meta:resourcekey="RadTreeViewContextMenu_Trash" EnableEmbeddedSkins="false">
                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                    <Items>
                                        <telerik:RadMenuItem runat="server" Text="New Folder" Value="NewFolder" ImageUrl="~/images/Communicate/Img/OutLook/12.gif"
                                            meta:resourcekey="RadMenuItem1" />
                                        <telerik:RadMenuItem runat="server" Text="Delete" Value="Delete" ImageUrl="~/images/Communicate/Img/OutLook/7.gif"
                                            meta:resourcekey="RadMenuItem2" />
                                        <telerik:RadMenuItem runat="server" Text="Rename" Value="Rename" PostBack="false"
                                            ImageUrl="~/images/Communicate/Img/OutLook/rename.gif" meta:resourcekey="RadMenuItem3" />
                                        <telerik:RadMenuItem runat="server" Text="Empty Trash" Value="EmptyFolder" PostBack="true"
                                            ImageUrl="~/images/Communicate/2DeletedItems.gif" meta:resourcekey="RadMenuItem4" />
                                    </Items>
                                </telerik:RadTreeViewContextMenu>
                            </ContextMenus>
                            <CollapseAnimation Duration="100" Type="OutQuint" />
                            <ExpandAnimation Duration="100" />
                        </telerik:RadTreeView>

  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 27 May 2013 Link to this post

    Hi Chris,

    The provided code snippet is not enough to reproduce this behavior. I have created small sample based on it, but there was no such error. Please refer to this video, demonstrating the behavior at my end. 
    The best would be if you can create a new support ticket and attach runnable sample with steps to reproduce.

    Regards,
    Hristo Valyavicharski
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top