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

RadDropDownButton within RadGridViewDataColumn

1 Answer 66 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Scott Nolen
Top achievements
Rank 1
Scott Nolen asked on 20 Sep 2010, 03:05 PM
I have a RadDropDownButton within a RadGridViewDataColumn. See the screenshots attached to see the undesired behavior. What I want is for the Row Height to never increase and the dropdown data to drop over the rows below it like a combo box works. The way i have it set up the Row height expands to accomodate the data within the dropdown. I want it to act as an overlay.

Screen1.jpg : Shows before selecting anything on the grid.
Screen2.jpg : Shows the Grid after selecting the email address on first row for editing.
Screen3.jpg : Shows after the DropDown has been clicked and the content grid is populated.

Markup:

<

 

 

telerikGridView:GridViewDataColumn Width="600" DataMemberBinding="{Binding emailaddress}" >

 

 

 

 

<telerikGridView:GridViewDataColumn.CellTemplate>

 

 

 

 

<DataTemplate>

 

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

 

<TextBlock Name="myemailDrop" Text="{Binding emailaddress}" Width="300" TextAlignment="Left" />

 

 

 

 

</StackPanel>

 

 

 

 

</DataTemplate>

 

 

 

 

</telerikGridView:GridViewDataColumn.CellTemplate>

 

 

 

 

<telerikGridView:GridViewDataColumn.CellEditTemplate>

 

 

 

 

<DataTemplate>

 

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

 

<TextBox Name="myemailDropEdit" Text="{Binding emailaddress, Mode=TwoWay}" Width="300" HorizontalAlignment="Left" />

 

 

 

 

 

<telerik:RadDropDownButton Name="btnDropEmailAddresses" VerticalAlignment="Center" Width="300" Click="btnDropEmailAddresses_Click" >

 

 

 

 

<telerik:RadDropDownButton.Content>

 

 

 

 

<telerikGridView:RadGridView x:Name="gvCustAddresses"

 

 

 

ItemsSource="{StaticResource AddressList}"

 

 

 

IsFilteringAllowed="False"

 

 

 

ShowGroupPanel="False"

 

 

 

ShowColumnFooters="True"

 

 

 

CanUserResizeColumns="False"

 

 

 

CanUserFreezeColumns="False"

 

 

 

CanUserReorderColumns="False"

 

 

 

CanUserSortColumns="False"

 

 

 

CanUserInsertRows="False"

 

 

 

CanUserDeleteRows="False"

 

 

 

AutoGenerateColumns="False"

 

 

 

 

IsSynchronizedWithCurrentItem="True"

 

 

 

SelectionUnit="FullRow"

 

 

 

CanUserSelect="True"

 

 

 

SelectionMode="Single"

 

 

 

SelectionChanged="gvCustAddresses_SelectionChanged"

 

 

 

>

 

 

 

 

<telerikGridView:RadGridView.Columns>

 

 

 

 

<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding EmailAddress}" IsReadOnly="True">

 

 

 

 

</telerikGridView:GridViewDataColumn>

 

 

 

 

</telerikGridView:RadGridView.Columns>

 

 

 

 

</telerikGridView:RadGridView>

 

 

 

 

</telerik:RadDropDownButton.Content>

 

 

 

 

</telerik:RadDropDownButton>

 

 

 

 

 

</StackPanel>

 

 

 

 

</DataTemplate>

 

 

 

 

</telerikGridView:GridViewDataColumn.CellEditTemplate>

 

</

 

 

telerikGridView:GridViewDataColumn>

 

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 23 Sep 2010, 09:39 AM
Hello Scott Nolen,

You may try to play along with setting the DropDownContent of the Button instead of its Content. More information about the RadDropDownButton can be found in our online documentation as well as in our demos.
 

Best wishes,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Buttons
Asked by
Scott Nolen
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or