RadPrompt as RadConfirm

2 posts, 0 answers
  1. Mike Kretzler
    Mike Kretzler avatar
    5 posts
    Member since:
    Apr 2008

    Posted 03 Jun 2009 Link to this post

    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?
  2. Veli
    Veli avatar
    2002 posts

    Posted 09 Jun 2009 Link to this post

    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,
    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.
Back to Top