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

GridClientSelectColumn Header Check box Issue

7 Answers 200 Views
Grid
This is a migrated thread and some comments may be shown as answers.
saket mohanty
Top achievements
Rank 1
saket mohanty asked on 17 May 2010, 03:22 AM
I have a RadGrid with GridClientSelectColumn  to select and unselect row(s) client-side. I am using it to select/unselect all the rows using the check box at the header. If  the check box in the header is checked,  all the check boxes are checked (all rows selected). But the issue is that,  even if a single check box (row) is unchecked (unselected) the "Select All" check box  in the header is still checked. Is there any way to mark the header check box unchecked in the above case ?
I don't want to use RowSelected/RowDeselected client events to achieve this as it causes performance issues if the grid has many items.
Any immedaite help is appreciated.

7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 May 2010, 06:26 AM
Hello Saket,

The GridClientSelectColumn worked as expected in my end (RadControls version 2010, 1, 309, 35). I guess you are using an older version of RadControls which might cause the issue.

Try downloading the latest version of RadControls and check whether it helps.
Updating RadControls for ASP.NET to another version or license

-Shinu.
0
saket mohanty
Top achievements
Rank 1
answered on 17 May 2010, 02:48 PM
Hi Shinu,

Thanks for your reply. I am using  version 2009.3.1314.35.  The mentioned issue seems to be a bug in this version. Our product is in the verge of release and we don't want to take a latest version at this point of development.  Any workaround for this issue ?

-Saket 
0
Tsvetoslav
Telerik team
answered on 17 May 2010, 04:14 PM
Hi saket,

We do not provide fixes for older releases or internal builds as the idea behind the latest one is to offer all fixes and improvements made to the controls up to this point. I am afraid the only alternative (given that you don't want to use the RowSelected/Deselected events) is to upgrade.

Greetings,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
saket mohanty
Top achievements
Rank 1
answered on 18 May 2010, 03:59 PM
Hi Tsvetoslav,

Thanks for replying!   I downloaded the latest version of Telerik (2010.1.415) and I could see a rather strange behavior with respect to Header check box. I have a RadGrid with GridClientSelectColumn  to select and unselect row(s) client-side. This is my code for the Grid:

<asp:SqlDataSource ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"

            ID="DataSource1" runat="server" SelectCommand="SELECT * FROM [MyLocation_RV]"

        ></asp:SqlDataSource>

        <telerik:RadGrid ID="RadGrid1" runat="server" ShowGroupPanel="True" GridLines="None"

            DataSourceID="DataSource1" AllowMultiRowSelection="true" AllowFilteringByColumn="true" PageSize="25" AutoGenerateColumns="False" ShowFooter="false"

            Skin="Windows7" AllowSorting="True"  >

            <HeaderContextMenu>

                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

            </HeaderContextMenu>

            <MasterTableView GroupLoadMode="client" AutoGenerateColumns="False"

                DataKeyNames="ID">

                <Columns>

                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" >

                 <HeaderStyle Width="25px" />

                        <ItemStyle Width="25px" />

                 </telerik:GridClientSelectColumn>

                <telerik:GridBoundColumn DataField="ID" DataType="System.Int64" HeaderText="ID"

                    ReadOnly="True" SortExpression="ID" UniqueName="ID">

                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="City" HeaderText="City"

                    SortExpression="City" UniqueName="City">

                </telerik:GridBoundColumn>

                </Columns>

            </MasterTableView>

            <ClientSettings AllowDragToGroup="True">

            <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />

            <Scrolling AllowScroll="true" UseStaticHeaders="true" />

            </ClientSettings>

            <FilterMenu>

                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

            </FilterMenu>

        </telerik:RadGrid>

With the above code, the old issue still exists i.e , even if a single check box (row) is unchecked (unselected) the "Select All" check box  in the header is still checked. But strangely, if I remove the scrolling property  UseStaticHeaders="true" , it works fine!
Sounds like a bug ? Please let me know on this.

-Saket
0
Tsvetoslav
Telerik team
answered on 19 May 2010, 02:14 PM
Hello saket,

Thanks for turning our attention to this issue. I have logged it into our bug-tracking system and our development team will be addressing it in due time.

Regards,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
saket mohanty
Top achievements
Rank 1
answered on 20 May 2010, 03:10 PM
Hi Tsvetoslav,

Can I have any workaround for this issue ? Again, I would like to mention that I don't want to use RowSelected/RowDeselected client events because of performance issues. I want to use static header and also the check box coloumn to behave properly.

-Saket
0
Tsvetoslav
Telerik team
answered on 21 May 2010, 11:18 AM
Hi saket,

I am afraid, the only work-around possible would have included the use of the RowSelected/RowDeselected client events.

Best wishes,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
saket mohanty
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
saket mohanty
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or