RadToolBar inside RibbonBarTemplateItem

3 posts, 0 answers
  1. Richard
    Richard avatar
    28 posts
    Member since:
    Jun 2010

    Posted 03 Apr 2015 Link to this post


     I have a ribbon bar that has a ribbon bar template item.  Inside the template is a RadToolBar.  When I load my page in Chrome, I get a client error.  I don't receive the same error when using Internet Explorer.  If I take the radtoolbar out, the error no longer occurs.  The error is causing my page to stop loading.  I have attached a simple example below.  If you run this page in Chrome you will see the error via the F12 developer console.  It says "Value must not be null for Controls and Behaviors".  Any help with this would be greatly appreciated.  


    Thank you!



    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebTestApplication.Default" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <form id="form1" runat="server">
            <asp:ScriptManager runat="server"></asp:ScriptManager>
        <telerik:RadRibbonBar ID="TestRibbonBar" runat="server"
            Visible="True" Skin="Windows7" Width="100%"
            Height="100px" CssClass="RadToolBarHeight">
            <telerik:RibbonBarTab ID="rbtTest" Width="250px">
                <telerik:RibbonBarGroup ID="rbgSearch" Text="Search Tests" Value="TestSearch"
                    BorderStyle="None" CssClass="TestSearchBar">
                        <telerik:RibbonBarTemplateItem ID="rbtItem" BorderStyle="None" CssClass="TestSearchBar" >
                                <telerik:RadToolBar ID="tlbSearch" runat="server" CausesValidation="False" AutoPostBack="True"
                                    CssClass="TestSearchBar" Skin="Windows7" BorderStyle="None" >
                                        <telerik:RadToolBarButton CommandName="SearchBy" CommandArgument="none" runat="server"
                                            Text="" CausesValidation="false" CssClass="TestSearchBar_SearchByBtn">

  2. Ivan Danchev
    Ivan Danchev avatar
    788 posts

    Posted 08 Apr 2015 Link to this post


    Could you please try removing the <Template> so the RadToolBar is embedded directly in the RibbonBarTemplateItem. You can see this approach used in our Templates demo and at my side it works without js errors.

    Ivan Danchev

    See What's Next in App Development. Register for TelerikNEXT.

  3. DevCraft R3 2016 release webinar banner
  4. Richard
    Richard avatar
    28 posts
    Member since:
    Jun 2010

    Posted 08 Apr 2015 Link to this post

    Hi Ivan, 

    Thank you very much that worked!


Back to Top