Radgrid RowSpan and Frozen column problem

2 posts, 0 answers
  1. Vincent
    Vincent avatar
    9 posts
    Member since:
    Feb 2016

    Posted 17 Sep Link to this post

    Hi from France !

    In my project i've got problem with this situation :

    I've got a radgrid, x columns.

    My first column is used for generate my rowSpan.
    <telerik:GridBoundColumn UniqueName="idMaille" DataField="idMaille" Display="false"></telerik:GridBoundColumn>    

    while idMaille is the same, Merge my gridTemplate column : "M0" 

    i've set Freezecolumn to 2

    HTML generate is like this :

    Row 1 :
    <tr>
     <td>FirstColumn(idMaille) not displayed</td>
     <td rowspan="2">My Text rowspanned </td>
     <td> next column </td>
    </tr>

    Row 2 :
    <tr>
     <td>FirstColumn(idMaille) not displayed</td>
     <td> next column </td>
    </tr>

    But because rowspan is set in my 2nd row, my 2nd column is in reality the third !
    and when i move scrollbar, javascript set "display:none"

    i think this problem can it resolved if we can specify fixed columns (id/property) and generate a css class for reference for javascript.
    i'm remember in old project with infragistics, we specify columns who want freeze.

     

    <ClientSettings><Scrolling AllowScroll="true" FrozenColumnsCount="2" UseStaticHeaders="true" /></ClientSettings>
    <MasterTableView HeaderStyle-HorizontalAlign="Center" ShowHeadersWhenNoRecords="False" >
      <Columns>        
    <telerik:GridBoundColumn UniqueName="idMaille" DataField="idMaille" Display="false"></telerik:GridBoundColumn>               
                    <telerik:GridTemplateColumn UniqueName="M0">
                        <ItemTemplate>
                            <div class="rw0">
                                    test                              
                            </div>
                        </ItemTemplate>   
                    </telerik:GridTemplateColumn>
      <telerik:GridTemplateColumn UniqueName="M1">
                        <ItemTemplate>
                            <div class="rw1">
                                    test 1
                            </div>
                        </ItemTemplate>   
                    </telerik:GridTemplateColumn>
      </Columns>        
    </MasterTableView>

     

  2. Attila Antal
    Admin
    Attila Antal avatar
    426 posts

    Posted 20 Sep Link to this post

    Hi Vincent,

    In order to use Frozen Columns, the Grid must have Scrolling enabled with Static headers. Once Scrolling is enabled with static headers, the columns must define a static width using HeaderStyle.Width. This is mentioned in the bottom of the Scroll with Static Headers documentation article.

    Please note that having row span in RadGrid is an unsupported scenario for which we cannot guarantee support, however, if you share a runnable sample with me which can show me how you have implemented this, I could take a look and see if I can advise.

    Kind regards,
    Attila Antal
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top