How to close popup usercontrol in treelist ?

2 posts, 0 answers
  1. namnn
    namnn avatar
    1 posts
    Member since:
    Jul 2010

    Posted 27 Sep 2011 Link to this post

    I am trying to insert/edit items in the TreeList using a pop-up usercontrol.And when finish insert/update, user control can not close .Please tell me how to close Popup user control.Thank u .

    Here is my code in User control :

    <telerik:RadButton ID="btnInsert" runat="server" Text="Insert"   Width="75px"
                    CommandName ="PerformInsert"
                    Visible ="<%#DataItem is Telerik.Web.UI.TreeListInsertionObject %>"
                    <Icon PrimaryIconCssClass ="rbSave" />
            <telerik:RadButton ID="btnSave" runat="server" Text="Save"   Width="75px"
                    CommandName ="Update"
                    Visible ="<%#!(DataItem is Telerik.Web.UI.TreeListInsertionObject) %>"
                  <Icon PrimaryIconCssClass ="rbSave" />
            <telerik:RadButton ID="btnCancel" runat="server" Text="Cancel"  Width="75px"
                    CommandName ="Cancel"  CausesValidation="False">
                     <Icon PrimaryIconCssClass ="rbCancel" />

  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 28 Sep 2011 Link to this post

    Hi Namnn,

    A possible reason for the edit form not to close is if server-side exception is thrown when inserting/updating. Can you try running the page in debug mode and see if this is the case? If not, you can share the whole page code for further check.

    Kind regards,
    Iana Tsolova
    the Telerik team
    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
Back to Top