Unable to rebind my RadTreeList due to my RadAjaxManager (RadContextMenu OnItemClick)

2 posts, 0 answers
  1. bluetea55z
    bluetea55z avatar
    3 posts
    Member since:
    May 2014

    Posted 24 Sep 2014 Link to this post

    I am using a RadTreeList to display items, a RadContextMenu (Insert, Update, Delete) for when right clicking on a Tree Item and a RadWindowManager to help open a popup window on RadContextMenu ItemClick. When they click Insert or Update a dialog window opens smoothly they save, the dialog closes, treelist rebinds perfectly. When they click Delete I do not need to open a Window just run the code for deleting and then RadTreeList.Rebind();

    Rebind will not work because of this item in my RadAjaxManager. The reason it is in here is so the dialogs open smoothly when the context menu is clicked:
    <telerik:AjaxSetting AjaxControlID="rcMenu">
            <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>

    Here is how I have my Context Menu setup:
    <telerik:RadContextMenu ID="rcMenu" runat="server" OnItemClick="rcMenu_ItemClick" EnableRoundedCorners="true" EnableShadows="true">
                        <telerik:RadMenuItem Text="Insert" Value="Insert"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Modify" Value="Edit"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Delete" Value="Delete"></telerik:RadMenuItem>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" VisibleOnPageLoad="true" EnableViewState="false">

    Does anyone know of any workarounds so I can get the smooth dialog openings for Insert and Update, and for delete the page will still rebind the treelist when I call RadTreeList.Rebind();?
  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 25 Sep 2014 Link to this post


    I would suggest you to wrap the RadContextMenu, the RadWindowManager and the RadTreeList controls into one common container(asp Panel for example) and add this container to update itself in the RadAjaxManager settings.
    Give this suggestion a try and verify how it goes.

    Maria Ilieva

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top