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

RadWindowManager RadConfirm on Button Click Event with some Conditions

2 Answers 55 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jahangeer
Top achievements
Rank 1
Jahangeer asked on 01 Oct 2015, 10:59 AM

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 Answers, 1 is accepted

Sort by
0
Jahangeer
Top achievements
Rank 1
answered on 01 Oct 2015, 11:01 AM
in the last else if cancel is pressed then do nothing 
0
Marin Bratanov
Telerik team
answered on 01 Oct 2015, 11:07 AM

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
Tags
Window
Asked by
Jahangeer
Top achievements
Rank 1
Answers by
Jahangeer
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or