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

RadGrid doesn't scrool after grouping

4 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
André
Top achievements
Rank 1
André asked on 06 Dec 2012, 08:30 PM
Hi Guys!

I'm beginner in .NET development. But I've learned how to save time with this technology. I'm very impressed with the power of Telerik too.
Well, here is my trouble for now:

I've a grid that show many columns. I need show all the content columns without wrap lines with horizontal scrool activated, like this.
But when I'll configure a grouped column, the horizontal scrool bar disappears and the column content are cropped, like can see here.

Here the grouping code:
         
<GroupByExpressions>
  <telerik:GridGroupByExpression>
    <SelectFields>
      <telerik:GridGroupByField FieldAlias="Evento" FieldName="Evento" FormatString="{0:D}" HeaderValueSeparator=": ">
        </
telerik:GridGroupByField>
    </SelectFields>
     <GroupByFields>
      <telerik:GridGroupByField FieldName="EVENTO" SortOrder="Ascending"></telerik:GridGroupByField>
     </GroupByFields>
   </telerik:GridGroupByExpression>
</GroupByExpressions>


Can anybody help me?

Andre.

4 Answers, 1 is accepted

Sort by
0
André
Top achievements
Rank 1
answered on 10 Dec 2012, 12:08 PM
Someone?

Please!
0
Shinu
Top achievements
Rank 2
answered on 11 Dec 2012, 05:12 AM
Hi,

In order to display horizontal scroll for navigation, you need to make sure that the total width of the columns either auto-generated or declaratively set exceeds the width of the grid. Make sure that you have set the Height of the grid and Width of mastertableview.

Thanks,
Shinu.
0
André
Top achievements
Rank 1
answered on 11 Dec 2012, 12:22 PM
Hi Shinu,

Thanks to answer. Yes, if I set a with value to MasterTableView the horizontal scroolbar is showed. But the data fields yet shown clipped :(
There is another way to do this without cut the column contents  like happens when there is no grouped columns?

Thank you again.
Waiting.

Cheers.
Andre.

0
Shinu
Top achievements
Rank 2
answered on 26 Dec 2012, 06:38 AM
Hi,

Unfortunately I cannot replicate the issue at my end. Here is the sample code that I tried which worked as expected.
C#:
<telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="false" DataSourceID="SqlDataSource1" runat="server">
  <MasterTableView Height="80px" Width="1800px">
   <Columns>
     . . .
   </Columns>
   <GroupByExpressions>
      <telerik:GridGroupByExpression>
        <GroupByFields>
          <telerik:GridGroupByField FieldName="UnitsInStock"/>
        </GroupByFields>
        <SelectFields>
           <telerik:GridGroupByField FieldName="UnitsInStock" />
        </SelectFields>
      </telerik:GridGroupByExpression>
    </GroupByExpressions>
   </MasterTableView>
   <ClientSettings><Scrolling AllowScroll="true" /></ClientSettings>
</telerik:RadGrid>

Thanks,
Shinu.
Tags
Grid
Asked by
André
Top achievements
Rank 1
Answers by
André
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or