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

[Solved] 2 Possible bugs - Custom button disappears when .Scrollable is applied.

3 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
dani
Top achievements
Rank 1
dani asked on 11 May 2012, 03:43 AM
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

Sort by
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.
0
dani
Top achievements
Rank 1
answered on 12 May 2012, 02:33 PM
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.
Tags
Grid
Asked by
dani
Top achievements
Rank 1
Answers by
Dimo
Telerik team
dani
Top achievements
Rank 1
Share this question
or