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

[Solved] Select all check box in the header

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mohamed Salah Al-Din
Top achievements
Rank 1
Mohamed Salah Al-Din asked on 29 Dec 2009, 07:02 AM

Dear Sir,
As you can see in the attached image, the GridClientSelectColumn is still selected even if i deselect on row.
which is not an expected behaviour.
can you tell me how to solve this issue?

<telerik:RadGrid   
    ID="GRD_Instances_Private"   
    Skin="Vista"   
    AutoGenerateColumns="False" 
    AllowMultiRowSelection="True"   
    runat="server"   
    GridLines="None">  
    <MasterTableView   
            ShowFooter="false"   
            CommandItemDisplay="Top"   
            DataKeyNames="ActivityUID,InstanceUID,Activity,Process" 
            ShowHeadersWhenNoRecords="true"   
            Dir="RTL"   
            HorizontalAlign="Center">  
            <Columns> 
                    <telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn">  
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" /> 
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" /> 
                    </telerik:GridClientSelectColumn> 
        </Columns> 
    </MasterTableView> 
        <ClientSettings EnableRowHoverStyle="true" EnableAlternatingItems="true">  
            <Selecting AllowRowSelect="True" /> 
            <ClientEvents OnRowContextMenu="RowContextMenu_Private" OnRowDblClick="RowDblClick" /> 
        </ClientSettings> 
</telerik:RadGrid> 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 Dec 2009, 08:07 AM
Hello Mohamed,

Check out the follwoing code library submission which demonstrates on setting the "Select All" checkbox unchecked, if a single check box (row) is unchecked (unselected). The solution allows you to extract the client ids of each SelectAll checkbox from the tables in the grid hierarchy and later use it on the client.
GridClientSelectColumn -- (un)check "Select All" check box automatically

Thanks
Princy.
Tags
Grid
Asked by
Mohamed Salah Al-Din
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or