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

Problem with GridClientSelectColumn in combination with RadFormDecorator

7 Answers 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marja
Top achievements
Rank 1
Marja asked on 12 Dec 2013, 11:51 PM
I have a RadGrid with a GridClientSelectColumn.

When I put a RadFormDecorator on the page with DecoratedControls="all", the checkboxes in the GridClientSelectColumn do not get checked when clicked upon, nor when simply clicking the row itself.
As soon as I remove the RadFormDecorator from the page, the checkboxes in the GridClientSelectColumn in the RadGrid work as expected.

I would really like to use the RadFormDecorator, so what can I do about this issue with the checkboxes in the GridClientSelectColumn?

Best regards, Marja



7 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Dec 2013, 06:38 AM
Hi Marja,

I tried a sample with RadFormDecorator and GridClientSelectColumn and it works fine at my end. Can you try adding ControlsToSkip="CheckBoxes".

ASPX:
<telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
<telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All"
 ControlsToSkip="CheckBoxes" />

Thanks,
Princy

0
Marja
Top achievements
Rank 1
answered on 16 Dec 2013, 09:05 AM
Yes, it works when I exclude checkboxes from RadFormDecorator. But is that the only way to prevent this issue?
0
Princy
Top achievements
Rank 2
answered on 17 Dec 2013, 05:21 AM
Hi Marja,

I was not able to replicate the issue, the checkbox was checked when using RadFormDecorator, DecoratedControls="All". Below is the sample i tried, please try it and if this doesn't help, provide your full code snippet with the version you are using.

ASPX:
<telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
<telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" />
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" DataSourceID="SqlDataSource1" AllowPaging="true">
    <MasterTableView DataKeyNames="OrderID">
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="GridClientSelectColumn"/>          
            <telerik:GridBoundColumn UniqueName="OrderID" DataField="OrderID" HeaderText="OrderID"/>          
            <telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" UniqueName="ShipCity" />
        </Columns>
    </MasterTableView>
    <ClientSettings Selecting-AllowRowSelect="true">
    </ClientSettings>
</telerik:RadGrid>

Thanks,
Princy
0
Denis
Top achievements
Rank 1
answered on 27 Dec 2013, 10:12 PM
I confirm the issue, it appears only in IE 11.
Setting ControlsToSkip='CheckBoxes' solves the problem, but I have to use RadFormDecorator on the page.
Seems like there's something with the styles.
- Grid rows seems to be selected;
- Checkboxes property 'checked' is set to 'true' (or 'checked'). But checkboxes looks like they're unchecked.
0
Viktor Tachev
Telerik team
answered on 02 Jan 2014, 12:14 PM
Hello,

There is a known issue related to GridClientSelectColumn and RadFormDecorator. Our developers will provide a fix as soon as possible. You could check the status of the bug in our feedback portal here. You could also vote for it to increase its priority.

As a temporary solution I would suggest setting the ControlsToSkip property of RadFormDecorator to "CheckBoxes":

<telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" DecoratedControls="All" ControlsToSkip="CheckBoxes" />


Regards,
Viktor Tachev
Telerik
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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Denis
Top achievements
Rank 1
answered on 02 Jan 2014, 08:03 PM
Disabling FormDecorator is not an option, but there's another workaround: select rows on the server. Need to add following code to OnItemDataBound event handler of target RadGrid:

        protected void RadGrid1_OnItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridHeaderItem)
            {
                var h = e.Item as GridHeaderItem;
                var cb = (CheckBox)h["GridClientSelectColumn"].Controls[0];
                cb.AutoPostBack = true;
            }

This cause the postback when user clicks on the header's checkbox. When rows are selected on the server side the checkboxes are displaying correctly.
0
Viktor Tachev
Telerik team
answered on 07 Jan 2014, 02:23 PM
Hello,

Thank you for sharing this workaround with the community. I hope that our developers will provide a fix for the issue soon.


Regards,
Viktor Tachev
Telerik
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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Marja
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Marja
Top achievements
Rank 1
Denis
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or