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

Radgrid RowSpan and Frozen column problem

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Iron
Iron
Vincent asked on 17 Sep 2019, 02:05 PM

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>

 

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 20 Sep 2019, 08:20 AM

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.
Tags
Grid
Asked by
Vincent
Top achievements
Rank 1
Iron
Iron
Answers by
Attila Antal
Telerik team
Share this question
or