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

custom RadWindow instead of radconfirm

3 Answers 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
Xander
Top achievements
Rank 1
Xander asked on 16 Feb 2009, 01:32 AM
I need to use a RadWindow that works like a radconfirm (in the sense that it returns true/false) but I need more than just simple text on the confirm dialogue (which is why I can't use a radconfirm).  How can I acheive this (as well as have it "block" the page until a yes/no is clicked)?

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 16 Feb 2009, 06:14 AM
Hello Xander,

The radfconfirm function does not block the execution thread - that is why a Callback function is used. I am not quite sure what exactly you want to achieve, but please note that radconfirm, radprompt and radalert accept HTML as first argument (text),
e.g.
radconfirm("<strong><em>radconfirm question</em></strong>", CallbackFn);



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Xander
Top achievements
Rank 1
answered on 16 Feb 2009, 02:25 PM
Right, but I've read on some forums a "workaround" for the radconfirm that does block execution thread.  My problem is that I cannot use the radconfirm because I need more control over what is displayed in the confirm window since my requirements demand more information to be displayed than just a single line of text (i.e. I need a gridview on the window).
0
Georgi Tunev
Telerik team
answered on 19 Feb 2009, 10:02 AM
Hello Xander,

This workaround is for radconfirm only and it works only on elements that have click event - e.g. buttons and links. In your case however, since you want to display a gridview, you need to use a RadWindow with a content page.

What I can suggest in scenario like yours is to use Ajax requests. For your convenience I attached a small sample that shows such approach.


All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Xander
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Xander
Top achievements
Rank 1
Share this question
or