This is a migrated thread and some comments may be shown as answers.
RadPrompt as RadConfirm
1 Answer 50 Views
This is a migrated thread and some comments may be shown as answers.
Mike Kretzler
Top achievements
Rank 2
Mike Kretzler asked on 04 Jun 2009, 12:35 AM
In a financial system that I am creating I have a list of invoices in a Telerik RadGrid.  one of the requirements of the application is the ability to void an invoice if there is some flaw with it.  What I have done is to include the void button on the grid listing all of the invoices for a receivable.  I would like to have a RadPrompt window pop up when a user clicks on the void button to provide a reason for voiding the invoice, with the ability to cancel out of the process at that point.  Is this possible?

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 09 Jun 2009, 07:04 AM
Hello Mike Kretzler,

RadWindow can easily be used for a prompt dialog as you require. For your reference, I have attached a small project demonstrating this functionality. You can note that I have custom GridTemplateColumn with a link button inside. The client-side click event of the button opens up a radprompt() dialog, and details on how to setup the RadWindow is given in this article from  the online documentation.

Please, note, that RadPrompt is a non-blocking prompt window, meaning it cannot block the thread of execution. Therefore, if you do not cancel your link button's client-side click event, the control will post back without waiting for the prompt window to close. Therefore we return false on the client-side click event and use the prompt's callback handler to post the message back to the server.

Sincerely yours,
Veli
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.
Asked by
Mike Kretzler
Top achievements
Rank 2
Answers by
Veli
Telerik team
Share this question
or