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

Opening a Details template using a button

3 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
VasVas
Top achievements
Rank 1
VasVas asked on 09 Feb 2015, 09:02 AM
Dear Sir,

I have an application that I am modenizing .
In the original web app clicking a button at the end of the row would taggle the details of the row.

Using the samples I Used the .ClientDetailTemplateId and I can show the details fine, this is done by clicking the arrows at the side of the grid.
Is there a way to add a custom command button to open the details and could the colum holding the arrows be hidden from sight?

Yours,

Ariel

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 10 Feb 2015, 11:50 AM

Hello Ariel,

You could collapse/expand the details through the Grid API methods - expandRow/collapseRow by invoking them in the custom command click handler.

The second requirement - hiding the arrows column is not supported.

Let me know if this information helps or I could provide further assistance.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sarvesh
Top achievements
Rank 1
answered on 13 May 2015, 05:19 PM

Hi,

 For the second requirement you could try applying the below style.

 .k-hierarchy-cell  .k-icon{

     display:none; 

}

0
Dimiter Madjarov
Telerik team
answered on 14 May 2015, 10:59 AM

Hello Sarvesh,

Indeed this approach is viable if only the icons should be hidden. What I meant in the previous answer was that hiding the whole column holding the expand/collapse icons is not supported.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
VasVas
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Sarvesh
Top achievements
Rank 1
Share this question
or