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

AllowMultiRowSelection is not working

3 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 31 Aug 2009, 05:04 PM

Greetings,

I have a RadGrid that does not select multiple rows correctly when using the 'cntrl key.'   The first row can be selected using the mouse and this action will highlight the entire row.  However, when the next row is clicked by simultaneously holding the 'cntrl' key, only the * text *  of this next row (or subsequent rows) will also be selected instead of the row. 

There is a distinct difference between a row being selected/highlighted and the row's text being selected or highlighted. 

Below is the code I have to declare the RadGrid.  The most important property settings I could imagine are:

*  AllowMultiRowSelection="true"
* AllowRowSelect="True"

Outside of these two properties, is there something I am missing that keeps this from working right? 

Thanks!
-----------------------------------------------------------------------------------------------------------------------
<telerik:RadGrid ID="rgGrpNotice" runat="server"  AutoGenerateColumns="false"
        AllowMultiRowSelection="true"  BorderColor="Gray" BorderWidth="1px" >
        <ClientSettings AllowColumnHide="True">
                    <Selecting AllowRowSelect="True"></Selecting>
                    <Scrolling AllowScroll="true" SaveScrollPosition="true" />               
        </ClientSettings>
        <PagerStyle Mode="NextPrevAndNumeric" />
        <MasterTableView DataKeyNames="entitynotice_id,level" AllowMultiColumnSorting="True">
             <Columns>  

                                <telerik:GridBoundColumn SortExpression="EntityNotice_Id" HeaderText="EntityNotice_Id" HeaderButtonType="TextButton"
                                    DataField="EntityNotice_Id" UniqueName="EntityNotice_Id" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="level" HeaderText="level" HeaderButtonType="TextButton"
                                    DataField="level" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn UniqueName="GridCheckBoxColumn" HeaderText="Check" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15px"> 
                                    <ItemTemplate> 
                                        <asp:CheckBox ID="MaintCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="CheckChanged" />             
                                    </ItemTemplate> 
                                    <ItemStyle HorizontalAlign="Center" />
                                </telerik:GridTemplateColumn> 
 
                                <telerik:GridBoundColumn SortExpression="Template Name" HeaderText="Template Name" HeaderButtonType="TextButton"
                                    DataField="Template Name">
                                </telerik:GridBoundColumn>
                                 <telerik:GridBoundColumn SortExpression="Owner" HeaderText="Owner" HeaderButtonType="TextButton"
                                    DataField="Owner" >
                                </telerik:GridBoundColumn>
                                 <telerik:GridBoundColumn SortExpression="Author" HeaderText="Author" HeaderButtonType="TextButton"
                                    DataField="Author">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Created" HeaderText="Created" HeaderButtonType="TextButton"
                                    DataField="Created">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Last Edit" HeaderText="Last Edit" HeaderButtonType="TextButton"
                                    DataField="Last Edit">
                                </telerik:GridBoundColumn>
                                 <telerik:GridBoundColumn SortExpression="Primary Relation" HeaderText="Primary Relation" HeaderButtonType="TextButton" DataField="Primary Relation" Visible="false">
                                </telerik:GridBoundColumn>
            </Columns>
    <RowIndicatorColumn>
    <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>

    <ExpandCollapseColumn>
    <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
    </MasterTableView>
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <EditItemStyle BorderColor="Gray" BorderWidth="1px" />
    </telerik:RadGrid>

-----------------------------------------------------------------------------------------------------------------------

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 02 Sep 2009, 03:59 PM
Hi John,

I followed your scenario in order to replicate the issue you are facing but to no avail. Please find attached a simple runnable application that demonstrates the desired functionality. Give it a try and see if it works for you.

I hope this helps.

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John
Top achievements
Rank 1
answered on 03 Sep 2009, 07:24 PM
Pavlina,

Thanks very much for the project.  Believe it or not it does the exact same thing.  I unzipped the file, opened up the project in VS 2008 and ran it.

The first row selects as it should (high-ligted completely solid).  When I use the Cntrl key and select other rows, only the text of those rows get high-lighted, not the entire row(s)

Please advise.  Thanks!

John
0
Pavlina
Telerik team
answered on 04 Sep 2009, 02:40 PM
Hi John,

I tested the sample page and it works fine on my end. Could you please check this video and let me know if I missed something while testing?

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
John
Top achievements
Rank 1
Share this question
or