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

kendoGridDetailTemplateShowIf broken after

2 Answers 412 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aidan
Top achievements
Rank 1
Aidan asked on 11 Dec 2018, 12:46 PM

Hi,

   I have a master detail grid, using a method called using kendoGridDetailTemplateShowIf, to determine if the details expansion should be shown.  Since 3.10.0 this seems to no longer work.  Has there been a change to the way this is used?  My current code looks like this

<ng-template kendoGridDetailTemplate let-dataItem [kendoGridDetailTemplateShowIf]="rowHasChildren">
    <children-details [parentId]="dataItem.vsId"></children-details>
</ng-template>

 

calling the simple method

public rowHasChildren(dataItem: any, index: number): boolean {
   console.log(index + " dataItem: " + dataItem);
   return dataItem.hasChildren;
   return true;
}

 I after 3.10 I no longer see this method being called at all.

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 12 Dec 2018, 09:45 AM
Hello Aidan,

The function seems to be called as expected with the latest (3.10.2) version of the Grid package:

https://stackblitz.com/edit/angular-ec3yd3?file=app/app.component.ts

Can you please try with this version, and if the issue persists, please send us a similar isolated runnable project where it can be observed, so we can inspect it further and determine what might be causing it? Thank you in advance.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Aidan
Top achievements
Rank 1
answered on 17 Dec 2018, 02:36 AM

Thanks, Dimiter,

Looks like I had accidentally included my kendoGridDetailTemplate within my looping kendo-grid-column (running off configured column list).  Must have gotten away with due to some loophole that went away 3.10.

 

Thanks for your help.

 

 

Tags
General Discussions
Asked by
Aidan
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Aidan
Top achievements
Rank 1
Share this question
or