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

Alternate Group Row Style

3 Answers 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Juliano Ramos
Top achievements
Rank 1
Juliano Ramos asked on 24 Aug 2011, 09:24 PM
I have 2 group levels and I need that each group level has a diferent color... It's possible?

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 25 Aug 2011, 08:46 AM
Hello Eduardo Bonato,

I am sending you a sample project illustrating how you may achieve similar behavior. Let me know whether it corresponds to your requirements.
 

Regards,
Maya
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Juliano Ramos
Top achievements
Rank 1
answered on 05 Sep 2011, 08:08 PM
Alternate group ok. Tks..

It's possible create a Style Selector to alternate IndentCell, image attach.
0
Vanya Pavlova
Telerik team
answered on 05 Sep 2011, 09:17 PM
Hello Eduardo,

 

I have already replied to your previous thread. For those who might be interested in your case I am pasting the answer below:


If you take a look at the default template of GridViewRow you may see a PART_IndentPresenter, which is responsible to display GridViewIndentCell in each row. Actually you do not have direct access to the IndentCells from the template of GridViewRow. Once you have accessed a particular row, find the GridViewIndentCells contained in it using the ChildrenOfType extension method and set the corresponding style.


In order to keep our future support communication clean and consistent I would recommend you to keep only a single thread opened on a corresponding topic.


Kind regards,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Juliano Ramos
Top achievements
Rank 1
Answers by
Maya
Telerik team
Juliano Ramos
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or