RadFileExplorer causes validation to fire

7 posts, 0 answers
  1. Jeff Adkisson
    Jeff Adkisson avatar
    6 posts
    Member since:
    Dec 2007

    Posted 02 Apr 2009 Link to this post

    It appears that RadFileExplorer causes validation to fire when you click the Upload button... There isn't a property to disable validation. I have a validation summary in my master page and it lights up with the form validation controls every time I click upload. I worked around it, but thought I'd report it.

    Regards - Jeff
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 06 Apr 2009 Link to this post

    Hi Jeff,

    Thanks for reporting this. We will set the upload button's CausesValidation property to false so it does not trigger the client validation when trying to upload files from the FileExplorer control.

    Greetings,
    Lini
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris
    Chris avatar
    20 posts
    Member since:
    Jan 2009

    Posted 18 Jun 2009 Link to this post

    Has there been any progress on this? I have the latest build, and the upload button still triggers page validation...
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 19 Jun 2009 Link to this post

    Hello Chris,

    We fixed the behavior that Jeff reported in the newer versions (after 2009.1 402).
    In your case I suppose that you get error message of the Validation summary, when you click the "Upload" button on the ToolBar. If so, you can use the following code in order to set the CauseValidation="false" of the buttons in the toolbar.

    protected void Page_Load(object sender, EventArgs e) 
        foreach (RadToolBarItem item in RadFileExplorer1.ToolBar.Items) 
        { 
            RadToolBarButton button = item as RadToolBarButton; 
            if (button != null
            { 
                button.CausesValidation = false
            } 
        } 

    I hope this helps.

    Best wishes,
    Fiko
    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.
  6. Chris
    Chris avatar
    20 posts
    Member since:
    Jan 2009

    Posted 19 Jun 2009 Link to this post

    Thanks for the workaround.
    I actually ended up using a validation group on my page. :-)
  7. Brad
    Brad avatar
    35 posts
    Member since:
    Feb 2006

    Posted 11 May 2010 Link to this post

    The same behavior is caused by the Create New Folder button as well.  This seems like something that really should be incorporated as a bug fix in your current tools considering this issue was reported more than a year ago.  No?
  8. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 14 May 2010 Link to this post

    Hi Brad,

    This is the expected behavior and it is by design. For the time being we do not plan to change it and I recommend you to use the provided code in order to disable validation for RadToolBar, embedded in RadFileExplorer:
    protected void Page_Load(object sender, EventArgs e)
    {
        foreach (RadToolBarItem item in RadFileExplorer1.ToolBar.Items)
        {
            RadToolBarButton button = item as RadToolBarButton;
            if (button != null)
            {
                button.CausesValidation = false;
            }
        }
    }

    I hope this helps.

    All the best,
    Fiko
    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
UI for ASP.NET Ajax is Ready for VS 2017