RadWindow Resizing for Client-Side Validation

2 posts, 0 answers
  1. Aaron Levin
    Aaron Levin avatar
    1 posts
    Member since:
    Nov 2009

    Posted 12 Mar 2010 Link to this post

    If I set the AutoSize property to true for a RadWindow it will not leave space for any errors which are displayed in the Validation Summary (Client Side Validation) at the bottom of the window.  To get around this I have hardcoded width and height properties for the window(s).  Ideally we would like to go back to Auto Sizing the window.  Does anyone know how to use AutoSize="true" and have the window resize dynamically to accomodate for a client-side validation summary?
  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 16 Mar 2010 Link to this post

    Hello Aaron,

    I have answered your support ticket on the same subject. For convenience I am pasting my reply below:

    RadWindow's AutoSize feature is fired automatically (when AutoSize=true) on page's load (e.g. when window.onload is fired) or can be called manually with JavaScript. The ValidationSummary control however does not support calling JavaScript function when validation fails - that is why AutoSize cannot be fired in such scenario. To be able to use AutoSize, you should use a custom client validator that fires a JavaScript function on validation fail and then you will be able to call the AutoSize() method there.

    All the best,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top