Turn off validation check on RibbonBarButton click?

5 posts, 0 answers
  1. Kevin Neumann
    Kevin Neumann avatar
    29 posts
    Member since:
    Feb 2006

    Posted 18 Mar 2011 Link to this post

    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?
  2. Kevin Neumann
    Kevin Neumann avatar
    29 posts
    Member since:
    Feb 2006

    Posted 19 Mar 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 21 Mar 2011 Link to this post

    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
  5. First Name
    First Name avatar
    1 posts
    Member since:
    Apr 2011

    Posted 13 May 2011 Link to this post

    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?
  6. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 23 May 2011 Link to this post

    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.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017