1. When I add .Scrollable() to the Grid the Custom Button column is missing (which is the last one).
2. When I Used cell.HtmlAttributes["style"] = "visibility:hidden"; to hide the column - the cell to the right looses it's border.
3 Answers, 1 is accepted
0
Dimo
Telerik team
answered on 11 May 2012, 09:13 AM
Hello Dani,
The first issue can occur if you have specified width to some columns, but not to others, and there is not enough horizontal space to accommodate all cells. In such cases, you should set explicit width to all columns, so that a horizontal scrollbar appears. Alternatively, set some width to the Grid table via TableHtmlAttributes().
Using a visibility:hidden style is not a correct and recommended way to hide columns. Please use Hidden() in the column configuration.
Greetings,
Dimo
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
thanks on the advice.
The hidden issue - can it be set dynamically ?
I used this attribute technique following one of Telerik's Admins answer to a question on conditional hiding of column based on another cell content....
Dani
0
Dimo
Telerik team
answered on 14 May 2012, 08:27 AM
Hello Dani,
Currently columns can be hidden client-side by using the column context menu or the hideColumn( index ) method of the Grid object.
Regards,
Dimo
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.