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

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

5 Answers 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 1
Kenneth asked on 21 Jun 2008, 02:34 PM
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;

}

}

}

5 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 24 Jun 2008, 06:56 AM
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
0
Kenneth
Top achievements
Rank 1
answered on 24 Jun 2008, 07:30 PM
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?
0
Yavor
Telerik team
answered on 25 Jun 2008, 07:32 AM
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
0
Kenneth
Top achievements
Rank 1
answered on 02 Jul 2008, 07:01 PM
Yes. they both worked the same, and neither of them worked correctly.
0
Sebastian
Telerik team
answered on 07 Jul 2008, 07:20 AM
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
Tags
Grid
Asked by
Kenneth
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Kenneth
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or