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

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

1 Answer 33 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
bluetea55z
Top achievements
Rank 1
bluetea55z asked on 24 Sep 2014, 06:32 AM
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">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
    </UpdatedControls>
</telerik:AjaxSetting>

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

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();?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 25 Sep 2014, 01:02 PM
Hi,

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.

Regards,
Maria Ilieva
Telerik
 

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.

 
Tags
Ajax
Asked by
bluetea55z
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or