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

Calling Alert() on RadWindowManager from ItemCommand method during Insert

1 Answer 42 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Fred
Top achievements
Rank 1
Fred asked on 03 Feb 2015, 08:23 PM
I am using a RadTreeList control on an ASPX page.   When Inserting a new node on the tree, I am validating what the user entered in the editbox.  However, when I call the alert() and then cancel the event, the alert dialog is not displayed.

I have similar code for the Edit it works just fine.  The only difference is the message being displayed.  The errorString variable built based upon the errors found in the validation of the control.

SiteAspNetMaster samInsert = (SiteAspNetMaster)Page.Master;
if (samInsert != null)
{
           samInsert.Alert(errorString, 400, 100, "Alert");
}
e.Canceled = true;


Thank you.


1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 06 Feb 2015, 10:02 AM
Hello Fred,

The provided information is not sufficient enough and we can not speculate on the reasons behind this behavior.

May I ask you to open a regular support ticket and provide a sample, runnable project that replicates the problem, so we can inspect it locally?

Currently, the only thing that I could suggest is that you debug your code and see if you are hitting the line where you call the Alert method. Additionally, you could elaborate on what exactly that Alert method does. If you have enabled AJAX for some controls, you could also try to temporarily disable it and see if the alert will be displayed.


Best Regards,
Konstantin Dikov
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
TreeList
Asked by
Fred
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or