This is a migrated thread and some comments may be shown as answers.
master detail checkbox
1 Answer 6 Views
This is a migrated thread and some comments may be shown as answers.
pcs
Top achievements
Rank 1
pcs asked on 19 Mar 2021, 05:26 PM

Hi,

Could i know if there is an slave content for disabling "arrow" ?

 

Regards

1 Answer, 1 is accepted

Sort by
0
Mihaela
Telerik team
answered on 24 Mar 2021, 12:48 PM

Hi,

The arrow of the detail master grid could be disabled with the stopImmediatePropagation() method of its 'click' event, as per the example below (the selection of the arrow element is highlighted in yellow):

$("#grid").kendoGrid({
	...
	dataBound: function(e) {
		$('.k-hierarchy-cell a').css({
                  opacity: 0.3,
                  cursor: 'default'
                 }).click(function(e) {
        	  e.stopImmediatePropagation();
                  return false;
                 });
        }
	...
});

It is implemented in the dataBound() event of the master grid, where you could insert additional logic if you would like to disable the detail grid, based on the master grid data. For example, in the KB article below, the detail grid is visible, based on the value of the data field "passed":

https://docs.telerik.com/kendo-ui/knowledge-base/disable-detail-rows-with-checkboxes

Let me know if you have any other questions. I would be happy to explain further.

 

Regards, Mihaela Lukanova Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
pcs
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or