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
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
Rudy
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=" " />
</ItemTemplate>
<ItemStyle Width="30px" HorizontalAlign="Center" />
</telerik:GridTemplateColumn>
In addition the button images for the command items in the RadGrid will dissapear.
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 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