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

ExpandCollapseColumn Display/Visible

4 Answers 348 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lucania
Top achievements
Rank 1
Lucania asked on 22 Feb 2012, 12:47 AM
I've found quite a few threads talking about the Display and Visible properties of ExpandCollapseColumn. Several describe work-arounds for hiding this column, but none explain why 2 properties which the documentation says should show/hide the column seem to do nothing at all.

http://www.sitefinity.com/help/developer-manual/radgrid.net2-telerik.webcontrols.gridexpandcolumn_members.html 

Please, either make sure these properties do what the documentation says, or fix the documentation. I should not have to write code to do what the documentation says can be done by setting a property.

Thanks

Ross Crawford

4 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 24 Feb 2012, 11:23 AM
Hi Ross,

I tried to reproduce the described issue, but to no avail. The Visible and the Display properties works exactly as it described into our documentation:

Visible property  gets or sets a value indicating if the column and all corresponding cells would be rendered.
Display property gets or sets a value indicating whether the cells corresponding to a column would be rendered with a 'display:none' style attribute (end-user-not-visible). To completely prevent cells from rendering, set the GridColumn.Visible property to false, instead of the Display property.


Also please note that the GridExpandColumn is an automatically generated and automatically placed column that appears when the grid has a hierarchical structure.More information you could find here:
http://www.telerik.com/help/aspnet-ajax/grid-structure-overview.html (GridExpandColumn section)

I am sending you a simple example which demonstrates that. Also on the following link I attached a small video which demonstrates how the example works on my side.

Please check it out and let me know if it helps you.

Greetings,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Lucania
Top achievements
Rank 1
answered on 27 Feb 2012, 01:36 AM
Apologies, my post sounded a bit terse.

Thanks for your example and video. They both use back-end code to set the property, and that is how I currently do it. What I was referring to is the ExpandCollapseColumn item within MasterTableView and GridTableView in the front end. If I put:
<ExpandCollapseColumn Visible="false" />
in the front end, I expect the column to not be rendered, but that is not the case. Setting Display="false" likewise appears to have no effect.

I am using version 2011.1.519, maybe this issue has been fixed since then?

Regards

Ross Crawford
0
Shinu
Top achievements
Rank 2
answered on 27 Feb 2012, 05:06 AM
Hello Ross,

Try the following CSS to hide ExpandCollapseColumn.
CSS:
.rgExpandCol
{
   display:none !important;
}

-Shinu.


0
Accepted
Radoslav
Telerik team
answered on 29 Feb 2012, 11:15 AM
Hi Ross,

Indeed I verified the described issue exists in the current version of RadGrid, however I forwarded it to our developers. At a meantime to avoid the described exception you could try using the suggested approaches in the previous posts.

Regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Lucania
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Lucania
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or