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

Possible to hide the Expand/Collapse Column of a Detail Grid?

4 Answers 1143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Landon
Top achievements
Rank 2
Landon asked on 20 Jun 2013, 08:20 PM
Hi,

I currently have a Grid nested in the Detail Template of another Grid. I'm automatically expanding all of the Detail items, and plan to always have these open. Since my app will be used on a tablet 50% of the time, it would be very helpful if I could hide the Expand/Collapse column to give me an extra 20-35 pixels to work with.  I've provided an example image.

Is it possible to completely hide the Expand/Collapse column of a detail grid? 

4 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 24 Jun 2013, 12:31 PM
Hi Landon,

 
Basically removing the Expand/Collapse column is not supported out-of-the-box, however you can remove it manually using jQuery for example:

//use the DataBound event:
function dataBound() {
    var grid = this;
 
    //expand all detail rows
    grid.tbody.find("tr.k-master-row").each(function () {
        grid.expandRow($(this));
    })
 
    //remove hierarchy cells and column
    $(".k-hierarchy-cell").remove();
    $(".k-hierarchy-col").remove();
}

Also I would suggest to share your idea at KendoUI UserVoice to allow other users vote for it. Most voted ideas are included in next KendoUI releases.

Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Landon
Top achievements
Rank 2
answered on 24 Jun 2013, 06:28 PM
Hi Vladimir,

This solution worked perfect! I will definitely look into posting on UserVoice as well, as I wasn't aware of this section.

Thanks again!
0
Quynh
Top achievements
Rank 1
answered on 02 Apr 2015, 06:33 PM
Hi the expand row arrow is kind of hard to see, is there a way to change it to another image kind of icon of at least make it bigger?
Thanks
0
Vladimir Iliev
Telerik team
answered on 03 Apr 2015, 09:23 AM
Hello,

For more information about how to modify the default look of Kendo UI widgets I would suggest to check the following help article:

Regards,
Vladimir Iliev
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
Landon
Top achievements
Rank 2
Answers by
Vladimir Iliev
Telerik team
Landon
Top achievements
Rank 2
Quynh
Top achievements
Rank 1
Share this question
or