Hi,
I have a datagrid. In the grid i need to have a combo box that will fill with values from a service called. On the Select change event i need to call the second service to bind the second combo box. how to fill the first combo box in page load and second combo in select change of second combo box.Both are inside the datagrid.
Thanks,
Vaijy
Loading
Priya LingePosted Dec 21, 2011, 5:57 AM
Please check attached code file.
Hope this will help you.
Thanks.
Farooque AliPosted Dec 21, 2011, 4:26 AM
<telerik:GridViewComboBoxColumn Header="Reason" DataMemberBinding="{Binding Reason}" UniqueName="Reason"
DisplayMemberPath="Reason" SelectedValueMemberPath="Reason" Width="*">
<telerik:GridViewComboBoxColumn.CellTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="*">ColumnDefinition>
Grid.ColumnDefinitions>
<TextBlock Text="{Binding Reason}">TextBlock>
Grid>
DataTemplate>
telerik:GridViewComboBoxColumn.CellTemplate>
telerik:GridViewComboBoxColumn>
Code for bind the values in the Combobox inside the grid
DirectCast
(Me.AdGrid.Columns("Reason"), GridViewComboBoxColumn).ItemsSource = e.Result