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

[Solved] Changing cell value dynamically

1 Answer 148 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.
sulagna
Top achievements
Rank 1
sulagna asked on 10 Dec 2010, 02:23 PM
Hi,
I have a grid with some columns.I am getting a value.
How to change a data in a cell dynamically in client side on the same grid by changing date value of another cell of that grid.
I have attached the jpeg for your ref.By changing the EndDate the the WorkingDays (Red circle) should change dynamically means it(working days value) should increase/decrease depending on the end date selection.

In which event I should handle that?I am getting the value of "working days" by calling a method.Now I need to set the value of the working days column next to end date column cell wise(if I change the end date).

Thanks,
Sulagna

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Dec 2010, 02:27 PM
Hi,

 You should do this in your data model directly - the grid should not be involved in such cases if you want to avoid problems. The preferred way in both WPF and Silverlight is MVVM and in this case you can implement such logic using property setters - if your object is INotifyPropertyChanged the grid will be updated automatically. 

Kind regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
sulagna
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or