RadWindowManager RadConfirm on Button Click Event with some Conditions

3 posts, 0 answers
  1. Jahangeer
    Jahangeer avatar
    19 posts
    Member since:
    Apr 2013

    Posted 01 Oct 2015 Link to this post

    Hello,

     I want to ask user Are you sure you still want to submit?? after some checks which they had provided while submitting the forms, for simplicity you can think of 

     

    protected void RadGrid1_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {

    if((userControl.FindControl("TaskName") as RadTextBox).Text==SomeMethodaWhichReturnDataFromSQLSelect())

    {

     // Here I want to Show user if this condition gets true 

    RadWindowManager1.RadConfirm();

    if( RadConfirm OK is Pressed)

    {

    // Insert statement

    }

    else     

    }

    }

     ​

  2. Jahangeer
    Jahangeer avatar
    19 posts
    Member since:
    Apr 2013

    Posted 01 Oct 2015 in reply to Jahangeer Link to this post

    in the last else if cancel is pressed then do nothing 
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 01 Oct 2015 Link to this post

    Hi Jahangeer,

    The following article explains how to do this: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/how-to/using-radconfirm-in-server-code.

    Regards,

    Marin Bratanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top