This is a migrated thread and some comments may be shown as answers.

RadFileExplorer causes validation to fire

6 Answers 125 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Jeff Adkisson
Top achievements
Rank 1
Jeff Adkisson asked on 02 Apr 2009, 11:00 PM
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

6 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 06 Apr 2009, 02:57 PM
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.
0
Chris
Top achievements
Rank 1
answered on 18 Jun 2009, 10:47 PM
Has there been any progress on this? I have the latest build, and the upload button still triggers page validation...
0
Fiko
Telerik team
answered on 19 Jun 2009, 01:38 PM
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.
0
Chris
Top achievements
Rank 1
answered on 19 Jun 2009, 03:22 PM
Thanks for the workaround.
I actually ended up using a validation group on my page. :-)
0
Brad
Top achievements
Rank 1
answered on 11 May 2010, 08:27 PM
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?
0
Fiko
Telerik team
answered on 14 May 2010, 09:26 AM
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.
Tags
FileExplorer
Asked by
Jeff Adkisson
Top achievements
Rank 1
Answers by
Lini
Telerik team
Chris
Top achievements
Rank 1
Fiko
Telerik team
Brad
Top achievements
Rank 1
Share this question
or