Calling Alert() on RadWindowManager from ItemCommand method during Insert

2 posts, 0 answers
  1. Fred
    Fred avatar
    7 posts
    Member since:
    Jan 2015

    Posted 03 Feb 2015 Link to this post

    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.


  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 06 Feb 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top