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

2 controls in 1 CellEditTemplate

0 Answers 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
SweNz
Top achievements
Rank 1
SweNz asked on 07 Jun 2012, 09:08 PM
This is my fault. I forgot to set column width , code working fine -___----!!

////////////////////////////

Hi telerik ,

Can anyone explain me how to add multiple controls into a cell ?
 
I need to add Label and RadButton into Cell (in-line editing mode) something like sniplet below

<telerik:GridViewDataColumn Header="Original" SortMemberPath="OriginalName" HeaderTextAlignment="Center" TextAlignment="Left" Width="80" DataMemberBinding="{Binding OriginalName}">
   <telerik:GridViewDataColumn.CellEditTemplate>
      <DataTemplate>
         <StackPanel Orientation="Horizontal">
             <Label Content="{Binding OriginalName,Mode=OneWay}"/> 
             <telerik:RadButton Name="Lookup" Click="Lookup_Click"/> 
                
<!-- this click event will popup lookup window then bind selected data to OriginalName -->
          </StackPanel>
      </DataTemplate>
   </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

looking for your response

Regards,
SweNz

No answers yet. Maybe you can help?

Tags
GridView
Asked by
SweNz
Top achievements
Rank 1
Share this question
or