Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
820
Selection for groups
posted

Hi,

Is it possible to prevent selection of group headers?

I want allow user to select only rows (not group header)

Thanks,

Aliaksei

Parents
  • 2355
    Suggested Answer
    Offline posted

    Hi Aliaksei,

    Thank you for posting in our forums! Every group row has an attribute called “data-grouprow” and it’s true. You can get this attribute in rowSelectionChanging event of the Selection feature and if it’s true you cancel the event. You can refer to the code snippet below:

    rowSelectionChanging: function(evt, args) {
    	if(args.row.element.attr('data-grouprow') === "true"){
    		evt.preventDefault()
    	}
    }
    

    Please let me know if this works for you!

    Kind regards,
    Petko Zhekov
    Software Engineer

Reply Children
No Data