Dropdown buttons in a toolbar in a radgrid commanditem template - problem

6 posts, 0 answers
  1. Kenneth
    Kenneth avatar
    70 posts
    Member since:
    Feb 2008

    Posted 21 Jun 2008 Link to this post

    If I put a toolbar in a radgrid command item template, and then add a dropdown button, the dropdown will not display (it looks like it's getting clipped). Any solutions?

    ASPX:

    <%

    @ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" Title="Untitled Page" EnableTheming="false" %>

    <%

    @ 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">

    <

    html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >

    <

    head id="Head1" runat="server">

    <title></title>

    </

    style>

    </

    head>

    <

    body >

    <form id="form2" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>

    <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Vista">

    <

    MasterTableView commanditemdisplay="Top">

    <

    RowIndicatorColumn Visible="False">

    <

    HeaderStyle Width="20px"></HeaderStyle>

    </

    RowIndicatorColumn>

    <

    ExpandCollapseColumn Visible="False" Resizable="False">

    <

    HeaderStyle Width="20px"></HeaderStyle>

    </

    ExpandCollapseColumn>

    <

    EditFormSettings>

    <

    PopUpSettings ScrollBars="None"></PopUpSettings>

    </

    EditFormSettings>

    <CommandItemTemplate>

    <telerik:RadToolBar ID="RadToolBar1" Runat="server">

    <CollapseAnimation Duration="200" Type="OutQuint" />

    <Items>

    <telerik:RadToolBarButton runat="server" Text="Button 0">

    </telerik:RadToolBarButton>

    <telerik:RadToolBarDropDown runat="server" Text="DropDown 0">

    <Buttons>

    <telerik:RadToolBarButton runat="server" Text="Child Button 1">

    </telerik:RadToolBarButton>

    <telerik:RadToolBarButton runat="server" Text="Child Button 2">

    </telerik:RadToolBarButton>

    <telerik:RadToolBarButton runat="server" Text="Child Button 3">

    </telerik:RadToolBarButton>

    </Buttons>

    </telerik:RadToolBarDropDown>

    <telerik:RadToolBarSplitButton runat="server" Text="SplitButton 0">

    <Buttons>

    <telerik:RadToolBarButton runat="server" Text="Child Button 1">

    </telerik:RadToolBarButton>

    <telerik:RadToolBarButton runat="server" Text="Child Button 2">

    </telerik:RadToolBarButton>

    <telerik:RadToolBarButton runat="server" Text="Child Button 3">

    </telerik:RadToolBarButton>

    </Buttons>

    </telerik:RadToolBarSplitButton>

    </Items>

    </telerik:RadToolBar>

    </CommandItemTemplate>

    </

    MasterTableView>

    </telerik:RadGrid>

    </form>

    </

    body>

    </

    html>

    Codebehind:

    using

    System;

    using

    System.Collections;

    using

    System.Collections.Generic;

    using

    System.Configuration;

    using

    System.Data;

    using

    System.Linq;

    using

    System.Web;

    using

    System.Web.Security;

    using

    System.Web.UI;

    using

    System.Web.UI.HtmlControls;

    using

    System.Web.UI.WebControls;

    using

    System.Web.UI.WebControls.WebParts;

    using

    System.Xml.Linq;

    public

    partial class Default2 : System.Web.UI.Page

    {

    protected void Page_Load(object sender, EventArgs e)

    {

    if (!IsPostBack)

    {

    List<String> ls = new List<string>();

    ls.Add(

    "test1");

    ls.Add(

    "test2");

    ls.Add(

    "test3");

    ls.Add(

    "test4");

    RadGrid1.DataSource = ls;

    }

    }

    }

  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 24 Jun 2008 Link to this post

    Hi Kenneth,

    I tested the setup that you mentioned, with a toolbar nested in the command item template, as well as one directly above the grid outside any other containers. Both controls behaved the same way.
    Attached to this message, is the sample application which I used for testing.
    Let me know if I am leaving something out.

    Best wishes,
    Yavor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kenneth
    Kenneth avatar
    70 posts
    Member since:
    Feb 2008

    Posted 24 Jun 2008 Link to this post

    Are you saying that the dropdown button control worked?

    I used the code you provided and it didn't work. Any ideas on what the difference could be?
  5. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 25 Jun 2008 Link to this post

    Hi Kenneth,

    The sample sent previously, shows the same behavior, for the toolbar nested in the grid, and the toolbar outside the grid - I am looking to confirm this, in order to isolate the cause in the grid, or the ToolBar control. Let me know if this behavior is consistent with your local observations.

    Sincerely yours,
    Yavor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Kenneth
    Kenneth avatar
    70 posts
    Member since:
    Feb 2008

    Posted 02 Jul 2008 Link to this post

    Yes. they both worked the same, and neither of them worked correctly.
  7. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 07 Jul 2008 Link to this post

    Hello Kenneth,

    Can you please isolate a modified version of the previous example, illustrating the issues, and send them enclosed to a formal support ticket? We will examine your complete code logic in detail and will get back to you with more info on the subject.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017