RadFormDecorator and RadGrid

7 posts, 0 answers
  1. Rudy
    Rudy avatar
    5 posts
    Member since:
    Apr 2008

    Posted 17 Apr 2008 Link to this post

    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?
  2. Martin
    Admin
    Martin avatar
    585 posts

    Posted 21 Apr 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Philip Senechal
    Philip Senechal avatar
    152 posts
    Member since:
    Apr 2008

    Posted 22 Apr 2008 Link to this post

    FYI - I experience the same issue with a checkbox in a grid column with the HorizontalAlign property set to Center.
  5. Rudy
    Rudy avatar
    5 posts
    Member since:
    Apr 2008

    Posted 23 Apr 2008 Link to this post

    I have opened a new support ticket for this problem and attached a demo test project.

    Rudy
  6. Martin Bussieres
    Martin Bussieres avatar
    2 posts
    Member since:
    Mar 2006

    Posted 24 Apr 2008 Link to this post

    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>

  7. Rudy
    Rudy avatar
    5 posts
    Member since:
    Apr 2008

    Posted 24 Apr 2008 Link to this post

    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.
  8. Martin
    Admin
    Martin avatar
    585 posts

    Posted 24 Apr 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017