Excute the flow after user selects input in radprompt

2 posts, 0 answers
  1. vishal
    vishal avatar
    11 posts
    Member since:
    Jul 2014

    Posted 03 Mar 2015 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 04 Mar 2015 Link to this post

    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.

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