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

Button Click in a GridView to change the GridViewRowColumn Data

2 Answers 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Syed Nadeem
Top achievements
Rank 1
Syed Nadeem asked on 26 Apr 2010, 01:23 PM
Hi,

I have a Start Button as one of the RadGridView columns. Upon clicking it, I need to update another a Status Column value in that particular row with a value as started and another column as Time Remaining which should show a countdown Timer value (in minutes) decreasing and auto updates/refreshes its value Every Minute. 

How can I achieve this? Also whenever I update the Status Column and assign the TimeRemaining timer value, is it possible to only update a particular row or shall all the rows be rebound?

Any help with suggestions or a sample solution would be appreciated.

Cheers,
Syed.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Apr 2010, 01:27 PM
Hi Syed,

If the objects bound to the grid are INotifyPropertyChanged you can change desired value at source level and the grid cell binding will react immediately.

Greetings,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Syed Nadeem
Top achievements
Rank 1
answered on 27 Apr 2010, 09:49 AM
Hi,

I have got this thing started for a single thread. Please refer the attached image where I have a Start Button for each Task in Each GridViewRow. I will have to create and start a new DispatcherTimer object for every task that is started. How can I create something like an array of DispatcherTimer objects where I can refer to each object as  lets say dispatcherObject[i].Start()  where 'i' is the Id of that current Task(GridViewRow).


Regards,
Syed.
Tags
GridView
Asked by
Syed Nadeem
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Syed Nadeem
Top achievements
Rank 1
Share this question
or