How to prevent dialog closing?

3 posts, 1 answers
  1. Tayger
    Tayger avatar
    182 posts
    Member since:
    Jan 2015

    Posted 18 May Link to this post

    Hello

    I'm using a dialog widget. By default the dialog closes on clicking on any defined action buttons. I would like to prevent that and close the dialog programmatically. How can I set the defined action buttons to not close after clicking on them?

    Regards

  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    1566 posts

    Posted 22 May Link to this post

    Hello Tayger,

    The buttons can be prevented from closing the Dialog if you return false in their action functions. As for closing the Dialog programmatically, this can be done by calling its close API method. The following dojo example demonstrates both.

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Tayger
    Tayger avatar
    182 posts
    Member since:
    Jan 2015

    Posted 22 May Link to this post

    Hello Ivan

    Excellen, thank you! Sometimes it can be that simple! :o)

    Regards

Back to Top