开发者

Start a Countdown timer in a Telerik RadGridView upon Button Click

开发者 https://www.devze.com 2022-12-28 20:43 出处:网络
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 colu

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.


You can start a timer in the event handler of the button column, and update the DataItem acordingly. Also if the class you are binding implements INotifyPropertyChanged you don't need to rebind, it'll update automatically.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号