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

GridClientSelectColumn CheckBox issue

6 Answers 201 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Balamurugan B
Top achievements
Rank 1
Balamurugan B asked on 18 Mar 2010, 09:36 AM
I have used the  GridClientSelectColumn in the RadGrid, The checkbox is not visible in the Grid both IE and Firefox,
I have verified the generated HTML code, The checkbox is there but That is not visible,

My code is given below....

 <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"  width="80%" height="275" AllowMultiRowSelection="true" >
                                <MasterTableView width="98%" NoMasterRecordsText="No records to display">
                                    <headerstyle HorizontalAlign="left" VerticalAlign="Middle" ></headerstyle>
                                    <alternatingitemstyle HorizontalAlign="Left"></alternatingitemstyle>
                                    <itemstyle HorizontalAlign="Left"></itemstyle>
                                     <columns>
                                         <telerik:GridTemplateColumn UniqueName="SrlNo" AllowFiltering="False" HeaderStyle-Width="30" ItemStyle-Width="30" HeaderText="SNo." >
                                              <itemtemplate>
                                                <asp:Label ID="lblSrlNo"  runat="server"  />&nbsp;&nbsp;                                                
                                              </itemtemplate>                                                                             
                                         </telerik:GridTemplateColumn>      
                                           <telerik:GridClientSelectColumn/>                                                                                                                                                               
                                          <telerik:GridTemplateColumn Visible="true" HeaderText ="Description">
                                              <ItemTemplate>
                                                <asp:HiddenField ID="hidTableid" runat="server" value='<%# Eval("Tableid") %>' />
                                                 <asp:Label ID="LblTblDesc" runat="server" Text=""><%#IIf(Eval("Description") = "", Eval("Name"), Eval("Description"))%></asp:Label>
                                              </ItemTemplate>
                                          </telerik:GridTemplateColumn>
                                         <telerik:GridBoundColumn DataField="Name" HeaderText="Table Name" UniqueName="TableName" Visible="false" HeaderStyle-HorizontalAlign ="left" ItemStyle-HorizontalAlign ="left" HeaderStyle-Width="200" ItemStyle-Width="200"></telerik:GridBoundColumn>                                         
                                         <telerik:GridBoundColumn DataField="TableID" UniqueName="TableID" Display ="false"></telerik:GridBoundColumn>                                       
                                    </columns>
                                  </MasterTableView>
                                   <ClientSettings EnableRowHoverStyle="true" Selecting-EnableDragToSelectRows="true">                                                               
                                        <Selecting AllowRowSelect="true" />                                                                   
                                    </ClientSettings>
                                    <SortingSettings  SortToolTip="Click here to sort"></SortingSettings>
                             </telerik:RadGrid>

6 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 19 Mar 2010, 07:45 AM
Hello Balamurugan,

We cannot reproduce anything wrong from the markup you provided. Any further implementation details we might consider? Do you show/hide any columns in the code-behind?

Sincerely yours,
Veli
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
Tsvetoslav
Telerik team
answered on 19 Mar 2010, 08:01 AM
Hi Balamurugan,

This behavior is not expected. Could you paste your whole mark-up and code-behind using the code-formatter tool of the ticket editor.

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
Kiran
Top achievements
Rank 1
answered on 13 Mar 2014, 06:39 PM
Even I having the same issue. I see the checkboxes inthe code behind, but its not showing up.Any help would be really appreciated.
Attached is the ASPX code

Thanks
Kiran
0
Kiran
Top achievements
Rank 1
answered on 13 Mar 2014, 06:40 PM
I failed to attach the code..

<telerik:RadAjaxPanel runat="server" ID="ReviewRadAjaxPanel" Visible="false" Width="900px">
        <h3>Real-time list of all outstanding reviews</h3>
        <telerik:RadGrid ID="RadReviewsGridView" runat="server" AllowAutomaticUpdates="True" AllowMultiRowSelection="True"
            AllowFilteringByColumn="true" AllowSorting="true" AutoGenerateColumns="True" BorderColor="Black"
            AutoGenerateEditColumn="False" CellSpacing="0" GridLines="None" GroupingSettings-CaseSensitive="false"
            ShowGroupPanel="false" Width="900px" ShowHeader="true" VirtualItemCount="5000">
            <MasterTableView AllowFilteringByColumn="true" AllowPaging="true" AllowSorting="true" 
                AutoGenerateColumns="False" EditFormSettings-EditFormType="Template" PageSize="50">
                <CommandItemSettings ExportToExcelText="Export to Excel" RefreshText="Refresh Realtime Review Status">
                </CommandItemSettings>
                <CommandItemTemplate>
                </CommandItemTemplate>
                <PagerStyle AlwaysVisible="true" BackColor="#eaeaea" ForeColor="Black" Mode="NextPrevAndNumeric"
                    Position="Bottom" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridClientSelectColumn UniqueName="SelectReviewColumn" ></telerik:GridClientSelectColumn>                  
                    <telerik:GridTemplateColumn AllowFiltering="false" FilterControlAltText="Filter column column" 
                        Groupable="false" HeaderStyle-Width="100px" HeaderText="" UniqueName="Links">
                        <ItemTemplate>
                            <asp:LinkButton ID="LnkbtnReassign" runat="server" CausesValidation="False" CommandName="Reassign"
                                ForeColor="Navy" OnClientClick="return confirm('Are you sure you want to reassign this review?');">Reassign</asp:LinkButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                            
                    <telerik:GridTemplateColumn AllowFiltering="false" FilterControlAltText="Filter column column"
                        Groupable="false" HeaderStyle-Width="120px" HeaderText="Reassign Review" UniqueName="ReassignReviews">
                        <ItemTemplate>
                            <telerik:RadNumericTextBox ID="TextBoxReassignReviews" Type="Number" MinValue="0"
                                runat="server" Width="100px">
                                <IncrementSettings InterceptArrowKeys="false" />
                                <NumberFormat GroupSeparator="" DecimalDigits="0" />
                            </telerik:RadNumericTextBox>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="ClientName" FilterControlAltText="Filter column column"
                        HeaderStyle-Width="120" HeaderText="ClientName" UniqueName="clientName" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProjectID" FilterControlAltText="Filter column column"
                        HeaderStyle-Width="120" HeaderText="ProjectID" UniqueName="ProjectID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ID" FilterControlAltText="Filter column column"
                        HeaderStyle-Width="120" HeaderText="ID" UniqueName="ID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="ReviewID" FilterControlWidth="70"
                        HeaderStyle-Width="110" HeaderText="Review ID" UniqueName="ReviewID">
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="Pursuit" FilterControlWidth="30"
                        HeaderStyle-Width="70" HeaderText="Pursuit" UniqueName="Pursuit">
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="ReviewSubTypeName"
                        FilterControlWidth="300" HeaderStyle-Width="350" HeaderText="Review Type" UniqueName="ReviewSubTypeName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="ReviewerID" FilterControlWidth="70"
                        HeaderStyle-Width="110" HeaderText="Reviewer ID" UniqueName="ReviewerID">
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="FirstName" HeaderStyle-Width="120"
                        HeaderText="First Name" UniqueName="FirstName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="LastName" HeaderStyle-Width="120"
                        HeaderText="Last Name" UniqueName="LastName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="NumImages" FilterControlWidth="70"
                        HeaderStyle-Width="120" HeaderText="Num Images" UniqueName="NumImages">
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings AllowDragToGroup="false">
                <Scrolling AllowScroll="true"  UseStaticHeaders="true" SaveScrollPosition="true" EnableVirtualScrollPaging="true" />
                <Selecting AllowRowSelect="true"  UseClientSelectColumnOnly="true" />
            </ClientSettings>
            <ExportSettings ExportOnlyData="true" FileName="RealtimeReviewStatus" HideStructureColumns="true"
                IgnorePaging="true" OpenInNewWindow="true">
            </ExportSettings>
        </telerik:RadGrid>
    </telerik:RadAjaxPanel>
0
Vasil
Telerik team
answered on 18 Mar 2014, 05:14 PM
Hello Kiran,

Your markup looks correct, check the code behind in case you change the settings there.

Regards,
Vasil
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Kiran
Top achievements
Rank 1
answered on 18 Mar 2014, 05:23 PM
Thanks Vasil for the reply.
I was playing with my code by removing/replacing some XML parameters. Found that this issue happens when i have the SaveScrollPosition="true" (Scrolling property) set. It works fine if I completely remove that.

~regards
Kiran

Tags
Grid
Asked by
Balamurugan B
Top achievements
Rank 1
Answers by
Veli
Telerik team
Tsvetoslav
Telerik team
Kiran
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or