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

Opening a rad window from client side script

1 Answer 92 Views
Window
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 01 Jul 2008, 04:01 PM
I am trying to set up a page so that when the user clicks on the Add to cart button, it will validate the contents and if everything is okay. Then bring up the window that will allow the user to customize the selected item. And if it is not okay, then don't bring up the window.

Right now my code is validating the contents of the form, and regardless if it is okay or not, bringing up the radWindow.

I have set up a radWindowManger and inside that a number of radWindows, that will be used on the page.

If there is a way to check to see it is okay to display it, then I would really like to be able to do that. Thanks.

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 01 Jul 2008, 04:14 PM
Hi John,

I suggest to open the window from the server, after the validation has successfully passed.

Once possible solution is to set the RadWindow's VisibleOnPageLoad property to true.

Another option is to execute a script which opens a RadWindow from the server. This can be done in several ways, which are explained here

Greetings,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
John
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or