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

Excute the flow after user selects input in radprompt

1 Answer 26 Views
Window
This is a migrated thread and some comments may be shown as answers.
vishal
Top achievements
Rank 1
vishal asked on 03 Mar 2015, 10:32 AM
Hello All,

I have one button click event, in which I need to perform some database validation and if the validation is true I need to open one prompt window with drop down box having three options,

And on selection of options I need to perform further code execution on server side. Please suggest how to achieve that?

protected void button1_Click(object sender, EventArgs e)
{
    if(SomeValidation() == true)
      RadWindowManager1.RadPrompt("Selection Option");
   
    if(option1 is selected) then
     do something
  else if (option2 is selected) then
     do something
 else
    do somenting
}

I need to hold the execution of code till the user selected any options from RadPrompt. Please suggest how to achieve that.

Thank you!
Vishal Patel

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 Mar 2015, 01:11 PM

Hello Vishal,

The following article explains how to do that: http://www.telerik.com/help/aspnet-ajax/window-using-radconfirm-in-server-code.html. If you need a custom dropdown, you may want to consider the third approach where a RadWindow with itsContentTemplate is used.

Regards,

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