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

Turn off validation check on RibbonBarButton click?

4 Answers 95 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Kevin Neumann
Top achievements
Rank 1
Kevin Neumann asked on 19 Mar 2011, 01:59 AM
First off, awesome 2011 Q1 release.  The new RibbonBar control is awesome!  I do have one question/issue though.

I have a pretty basic RibbonBar setup:

<telerik:RadRibbonBar ID="RibbonBar" runat="server">
        <telerik:RibbonBarTab Text="Home">
        </telerik:RibbonBarTab>
        <telerik:RibbonBarTab Text="Issue Tracker">
            <telerik:RibbonBarGroup>
                <Items>
                    <telerik:RibbonBarButton Text="Project Summary" ID="btnIssueTracker_ProjectSummary"
                        runat="server" Size="Large" />
                    <telerik:RibbonBarButton Text="Add Issue" ID="btnIssueTracker_AddIssue" runat="server"
                        Size="Large" />
                </Items>
            </telerik:RibbonBarGroup>
        </telerik:RibbonBarTab>
        <telerik:RibbonBarTab Text="Administration">
        </telerik:RibbonBarTab>
    </telerik:RadRibbonBar>

On the page below the RibbonBar, I have some controls (dropdowns, textboxes, etc) with validators attached to them.  However if I am on a page with validators and click on a different tab, it triggers a validation check.  I am using the RibbonBar as a sort of navigation menu so I need to be able to click any of the tabs without validating the page.  I didn't find a CausesValidation method on the control or button, am I missing it somewhere?

4 Answers, 1 is accepted

Sort by
0
Kevin Neumann
Top achievements
Rank 1
answered on 20 Mar 2011, 03:25 AM
Nevermind.  Once I switched from the built in validators to the PeterBlum DES validation controls, the problem went away.  Maybe I had something screwed up with the original validators.
0
Simon
Telerik team
answered on 21 Mar 2011, 06:46 PM
Hi Kevin Neumann,

This is caused by the internal RadTabStrip inside RadRibbonBar. Once we remove the former (which we plan to do for the Service Pack) any validation-triggering functionality will disappear.

Please excuse us for the inconvenience caused by this.

Best wishes,
Simon
the Telerik team
0
First Name
Top achievements
Rank 1
answered on 13 May 2011, 11:16 PM
I do not have any type of RadTabStrip control on my Ribbon bar and am having the same issue. It would be wonderful to have this solved real quick. When will the service pack be available?
0
Simon
Telerik team
answered on 23 May 2011, 09:31 AM
Hi there,

Unfortunately we did not manage to remove RadTabStrip from RadRibbonBar for the Service Pack.

Until we finally do that you can disable validation on the internal RTS in this way:
var tabStrip = (RadTabStrip)RadRibbonBar1.FindControl(RadRibbonBar1.ID + "_TabStrip");
tabStrip.CausesValidation = false;

I hope this helps.

Best wishes,
Simon
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
RibbonBar
Asked by
Kevin Neumann
Top achievements
Rank 1
Answers by
Kevin Neumann
Top achievements
Rank 1
Simon
Telerik team
First Name
Top achievements
Rank 1
Share this question
or