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

NumericUpDown in RadGrid View

2 Answers 336 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Anil Kumar
Top achievements
Rank 1
Anil Kumar asked on 10 Aug 2016, 01:10 PM

I need to add different type of cells (NumericUpDown,TextBox,Combobox) to same column in RadDataGrid. Could someone please help its very urgent.......

 

Thanks.

2 Answers, 1 is accepted

Sort by
0
Luís Henrique
Top achievements
Rank 2
answered on 31 Jan 2018, 06:08 PM

Kinda late, but if anyone strumbles here:

You can place a NumericUpDown (or any other control) inside a GridViewDataColumn kinda like this.

 

01.<telerik:GridViewDataColumn Header="Header Title" DataMemberBinding="{Binding Value, Mode=TwoWay}" TextAlignment="Right">                                      
02.    <telerik:GridViewDataColumn.CellTemplate>
03.        <DataTemplate>
04.            <TextBlock Text="{Binding Value}" />
05.        </DataTemplate>
06.    </telerik:GridViewDataColumn.CellTemplate>
07.    <telerik:GridViewDataColumn.CellEditTemplate>
08.        <DataTemplate>
09.            <telerik:RadNumericUpDown Value="{Binding Value}"/>
10.        </DataTemplate>
11.    </telerik:GridViewDataColumn.CellEditTemplate>
12.</telerik:GridViewDataColumn>

 

0
Luís Henrique
Top achievements
Rank 2
answered on 31 Jan 2018, 06:10 PM
Detailed example can be found here: https://docs.telerik.com/devtools/wpf/controls/radgridview/columns/celltemplate-and-celledittemplate
Tags
NumericUpDown
Asked by
Anil Kumar
Top achievements
Rank 1
Answers by
Luís Henrique
Top achievements
Rank 2
Share this question
or