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

I need to change back color of cells when the data is bound but don't want to display the data.

1 Answer 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
M
Top achievements
Rank 1
M asked on 27 Feb 2014, 01:04 AM
Hi, 

i've a grid with cells in a time interval of 15 mins. It's a 24 hours cycle.I'm trying to change the color of the cells based on the start and end time.

the cells should be coloured from start to end time.

Also I need to count the shaded cells per column and display it on a footer. 

please can someone suggest how can I achieve this functionality? 

Thanks

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Mar 2014, 12:23 PM
Hello,

To achieve this requirement, you can traverse the cells on ItemDataBound event handler and set their BackColor property depending on your specific condition:
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html

For calculating and displaying the content of the highlighted cells on the footer, you can use both server and client-side approach. I believe these resource will prove helpful:
http://www.telerik.com/help/aspnet-ajax/grid-totals-with-numerictextbox.html
http://www.telerik.com/help/aspnet-ajax/grid-totals-in-footers.html

Hope this helps.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
M
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or