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

[Solved] Grid Grouping Custom Styles

0 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aiyaz
Top achievements
Rank 1
Aiyaz asked on 18 Jun 2010, 12:20 AM
Hi there,
I have a multilevel grouping grid and want to apply conditional formatting on the top level grouping.  Would appreciate if any1 had a samples or could advise the best way to implement this?

<%=Html.Telerik().Grid<TaskMessage>()  
    .Name("TaskMessages")  
    
    .DataBinding (dataBinding => dataBinding.Ajax().Select("TaskMessagsByEmployee", "Task"))   
        .Groupable(g => g.Groups(c => c.Add(b => b.MessageCreatedDateTimeShort))  
                .Groups(h => h.Add(m => m.MessageIDWithSubject)))  
    .Pageable(p => p.PageSize(10).Style(GridPagerStyles.NextPreviousAndNumeric))  
     .Selectable()  
     .Sortable(s => s.OrderBy(f => f.Add(o => o.MessageCreatedDateTime)))  
     .Columns(columns => 
        {  
            columns.Bound(o => o.TaskID);  
            columns.Bound(o => o.CreatedDateTime).Title("Date").Format("{0:dd/MM/yyyy}");  
            columns.Bound(o => o.ProblemStatementShort)  
                .Title("Subject")  
                .ClientTemplate("<label alt='<#=ProblemStatement#>'><#=ProblemStatementShort#></label>");  
            columns.Bound(o => o.RaisedByEmployeeName).Title("Raised By");  
            columns.Bound(o => o.TaskStatusDescription).Title("Status");  
              
        })  
%> 
Tags
Grid
Asked by
Aiyaz
Top achievements
Rank 1
Share this question
or