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
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);
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).
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.