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

RadFormDecorator and RadGrid

6 Answers 229 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Rudy
Top achievements
Rank 1
Rudy asked on 17 Apr 2008, 06:23 PM
Hi there,

When using a RadGrid in a form decorated with the RadFormDecorator, if the grid contains a column with centered radiobuttons, the alignment of the column changes to left aligned. In addition, the radiobuttons are cut off.

Any ideas?

6 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 21 Apr 2008, 05:41 AM
Hello Rudy,

Please, open a new support ticket and send us a small rinning project, so we are able to observe the problem and come up with a solution.

Kind regards,
Martin Ivanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Philip Senechal
Top achievements
Rank 1
answered on 22 Apr 2008, 06:40 PM
FYI - I experience the same issue with a checkbox in a grid column with the HorizontalAlign property set to Center.
0
Rudy
Top achievements
Rank 1
answered on 23 Apr 2008, 02:51 PM
I have opened a new support ticket for this problem and attached a demo test project.

Rudy
0
Martin Bussieres
Top achievements
Rank 1
answered on 24 Apr 2008, 12:58 PM
Hi. I have the same issue. A workaround is to place a non breakable space in the text of the radio/checkbox

The indicator (small black triangle) for the orderable column doesn't show up when using a decorator.

<telerik:GridTemplateColumn ShowSortIcon="true" UniqueName="colActif" HeaderText="Actif">
<ItemTemplate>

<asp:RadioButton ID="chkActif" runat="server" Checked='<%# Eval("ind_actif") %>' Text="&nbsp;" />

</ItemTemplate>

<ItemStyle Width="30px" HorizontalAlign="Center" />

</telerik:GridTemplateColumn>

0
Rudy
Top achievements
Rank 1
answered on 24 Apr 2008, 01:25 PM
That's do not solve the alignment problem, though. If the column is horizontally aligned to the center, when using the RadFormDecorator, the radio/check buttons will show left aligned.

In addition the button images for the command items in the RadGrid will dissapear.
0
Martin
Telerik team
answered on 25 Apr 2008, 04:58 AM
Hello Rudy,

The issue you have reported is a frequent one since RadFormDecorator was released and we are still working on solving it. It is caused by the lack of label associated with each checkbox. Currently, the solution I can suggest is to use the DecoratedZoneId property of RadFormDecorator and thus exclude RadGrid's form controls to be decorated.

The other solution is to use JavaScript to loop through the checkboxes in the particular cells and use the adjacentHTML method to generate a label with &nbsp; and associate it with each checkbox.

Kind regards,
Martin Ivanov
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
Tags
FormDecorator
Asked by
Rudy
Top achievements
Rank 1
Answers by
Martin
Telerik team
Philip Senechal
Top achievements
Rank 1
Rudy
Top achievements
Rank 1
Martin Bussieres
Top achievements
Rank 1
Share this question
or