columns.Select() events

1 Answer 20 Views
Grid
Mrinal
Top achievements
Rank 1
Mrinal asked on 31 Aug 2021, 08:45 PM

I have a columns.Select() in my kendo grid which shows checkboxes to select all the rows if I check the checkbox in the header. I need to override the behavior of this control to select only certain fields based on the values of another column.

Is there any way I can bind this any event and get it to work? I tried using jquery using the class I added, but I was not able to get the event to fire. Please suggest.

@(Html.Kendo().Grid<WMP.Models.Home.WorkFlowApprovalViewModel>()
            .Name("gridApprovals")
            .Columns(columns =>
            {

                    columns.Select().MinResizableWidth(5).HtmlAttributes(new { @class = "cmddestroy" });


                columns.Bound(c => c.PersonId).Filterable(ftb => ftb.Multi(true).Search(true));
                columns.Bound(c => c.UserName).Filterable(ftb => ftb.Multi(true).Search(true));
                columns.Bound(c => c.UserEmail).Filterable(ftb => ftb.Multi(true).Search(true));

}

                                                   

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Sep 2021, 10:39 AM

Hi Mrinal,

 

Thank you for writing to us.

Yes, this requirement is possible using your own Template column and implementing the following javascript solution:
https://docs.telerik.com/kendo-ui/knowledge-base/grid-selection-checkbox

Feel free to try this out and let me know if it is helpful to you.

 

Regards,
Eyup
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Mrinal
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or