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

How to close popup usercontrol in treelist ?

4 Answers 127 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
namnn
Top achievements
Rank 1
namnn asked on 28 Sep 2011, 03:59 AM
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 %>"
                onclick="btnInsert_Click">
                <Icon PrimaryIconCssClass ="rbSave" />
        </telerik:RadButton>
        <telerik:RadButton ID="btnSave" runat="server" Text="Save"   Width="75px"
                CommandName ="Update"
                Visible ="<%#!(DataItem is Telerik.Web.UI.TreeListInsertionObject) %>"
                onclick="btnSave_Click">
              <Icon PrimaryIconCssClass ="rbSave" />
        </telerik:RadButton>
        <telerik:RadButton ID="btnCancel" runat="server" Text="Cancel"  Width="75px"
                CommandName ="Cancel"  CausesValidation="False">
                 <Icon PrimaryIconCssClass ="rbCancel" />
</telerik:RadButton>

4 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 28 Sep 2011, 08:44 AM
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
0
Oscar
Top achievements
Rank 1
answered on 24 May 2020, 11:24 PM
I have the same problema, when I use <ClientEvents  OnItemDragging = "itemDragging" OnItemDropping="itemDropping"/> and add the scripts
0
Doncho
Telerik team
answered on 27 May 2020, 04:15 PM

Hi Oscar,

To be able to provide you with an accurate answer I would need more details on the case. 

Please describe the steps you are trying to do but the error is preventing that from happening. Also, sharing additional details such as code snippets, screenshots, a video would be very helpful.

Kind regards,
Doncho
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Oscar
Top achievements
Rank 1
answered on 28 May 2020, 07:03 PM

Hi Doncho,

Now is ok. The problem was on another place on a javascript.

Regards.

Tags
TreeList
Asked by
namnn
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Oscar
Top achievements
Rank 1
Doncho
Telerik team
Share this question
or