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

[Solved] RADGRIDViewCombo Box datagrid col + selecteion changed event

4 Answers 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nikhil
Top achievements
Rank 1
Nikhil asked on 25 Jul 2009, 12:35 AM
Hi  Experts,

I have a very simple problem , I have a Datagrid as below , it has GridViewComboBoxColumn   ...but for Comboboxcolumn in RADGRID there is no Selection changed / Selected indext  event., I need to update some data based on the item selected in the Dropdown list for that row  
. i basically  need to  capture  "Selection changed / Selected indext change for the Comboxcolumn.
 
Can you please help me with  way to achicve the same. Any code sample would be great help..



 

 

<telerikGridView:RadGridView Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="5" HorizontalAlignment="Left"

 

 

Name="grdPOReceipt" ShowGroupPanel="False" IsFilteringAllowed="False" AutoGenerateColumns="False" ColumnsWidthMode="Fill"

 

 

RowIndicatorVisibility="Collapsed"

 

 

CanUserFreezeColumns="False"

 

 

CanUserReorderColumns="False"

 

 

ColumnBackground="White"

 

 

UseAlternateRowStyle="True"

 

 

FontSize="10"

 

 

Width="1150"

 

 

MinHeight="180"

 

 

MaxHeight="180"

 

 

Style="{StaticResource BPRadGridViewStyle}"

 

 

RowStyle="{StaticResource RowStyle}"

 

 

ScrollMode="RealTime"

 

 

AlternateRowStyle="{StaticResource RowStyle_Alternate}"

 

 

DataLoaded="RadGridView1_DataLoaded"

 

 

>

 

 

 

<telerikGridView:RadGridView.Columns>

 

 

 

 

 

<telerikGridView:GridViewDataColumn HeaderText="Unit" DataMemberBinding="{Binding Unit}" Width="60" IsReadOnly="True"/>

 

 

 

<telerikGridView:GridViewDataColumn HeaderText="Deli.Completed" Width="100">

 

 

 

 

<telerikGridView:GridViewDataColumn UniqueName="BatchNo" HeaderText="Batch No" DataMemberBinding="{Binding BatchNo}" Width="144" Background="#2000FF00" IsVisible="True" />

 

 

 

<telerikGridView:GridViewDataColumn UniqueName="Comments" HeaderText="Comments" Width="144" Background="#2000FF00" />

 

 

 

</telerikGridView:RadGridView.Columns>

 

 

 

</telerikGridView:RadGridView>

 

4 Answers, 1 is accepted

Sort by
0
Nikhil
Top achievements
Rank 1
answered on 26 Jul 2009, 11:42 PM
Hi Telerik Experts,

Can you please help me with the problem below?
0
Nikhil
Top achievements
Rank 1
answered on 27 Jul 2009, 04:25 PM
Hi,
this is very urgent and would highly appreciate if somebody can please look into it?

Thansk in advance
Nikhil
0
Nikhil
Top achievements
Rank 1
answered on 28 Jul 2009, 05:48 PM
Can some body help?
0
Pavel Pavlov
Telerik team
answered on 29 Jul 2009, 01:00 PM
Hi Nikhil,

I would recommend  the following approach :

The underlying business object should correctly implement the INotifyPropertyChanged. This way the RadGridView will automatically update the underlying value and update the UI.
For example :
If we bind the grid to a List of Employee objects  e.g. RadGridView.ItemsSource = new List<Employee>()

the Employee object should implement the INotifyPropertyChanged interface thus allowing the RadGridView to perform automatic updates.

If that is not suitable to your project you may try to subscribe to the CellEditEnded event of the RadGridView and perform updates to the underlying business object explicitly in code.

Regards,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Nikhil
Top achievements
Rank 1
Answers by
Nikhil
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or