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

Grid grouping column click event

1 Answer 222 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dharmesh
Top achievements
Rank 1
dharmesh asked on 15 Jun 2015, 06:31 AM

Hello Friends,

 

Good Morning.

 

I am using Kendo UI with ASP.Net MVC 4.0

I have bind grid using helper and used kendo grid grouping functionality. but the issue is I want to add some functionality while clicking on grouping column but the text value for all grouping label will be different. I have attached image and also a code sample can you please help me.

//Code Sample//

 <div id="dvPayrollReportGrid" class="kendo-responsive-grid-content">
@(Html.Kendo().Grid<Models.Productr>()
.Name("gridpayrollreport")
.Columns(columns =>
{
    columns.Bound(payroll => payroll.CheckDate).Format("{0:dd/MM/yyyy}");
columns.Bound(payroll => payroll.FromDate).Format("{0:dd/MM/yyyy}");
columns.Bound(payroll => payroll.ToDate).Format("{0:dd/MM/yyyy}");
        
    })
.Pageable(pageable => pageable
.Messages(messages => messages.Display("Payroll Reports {0} - {1} of {2}"))
)
.Sortable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Read(read => read.Action("Action", "Controller"))
.Group(groups =>
{
groups.Add(payroll => payroll.CompanyName);


})
)
)

</div>

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 17 Jun 2015, 06:12 AM
Hi dharmesh,

This could be achieved by using a group header template in which the links are generated based on the values.

Regards,
Alexander Popov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
dharmesh
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or