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

scrolling get disappeared when i put gridgroupbyfield

6 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 10 Nov 2008, 02:05 PM
i automatically generate the colunmns and rows by using radgrid1.datasource = .......
this works fine and i could see the scroll up down and left right bar. however, when i add in group by expression i don't see it any more. i still could scroll using my scroll button on the mouse but that's it. also i could see the scroll bar at loading when i try to go to the next page. could you help me out please? here is the code of how i add the groupby

radgrid1.datasource = .......

RadGrid1.AllowPaging =

True

 

RadGrid1.AutoGenerateColumns =

True

 

RadGrid1.AllowSorting =

True

 

 

Dim expression As GridGroupByExpression = New GridGroupByExpression

 

 

Dim gridGroupByField As GridGroupByField = New GridGroupByField

 

gridGroupByField =

New GridGroupByField

 

gridGroupByField.FieldName =

"section"

 

gridGroupByField.HeaderText =

"Section: "

 

expression.SelectFields.Add(gridGroupByField)

expression.GroupByFields.Add(gridGroupByField)

RadGrid1.MasterTableView.GroupByExpressions.Add(expression)

 

RadGrid1.ClientSettings.Scrolling.AllowScroll = True

 

RadGrid1.ClientSettings.Scrolling.UseStaticHeaders =

True

 

RadGrid1.DataBind()

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Nov 2008, 07:18 AM
Hi Duy,

I tried implementing scrolling with and without Grouping and it is working as expected. Try rebinding the Grid instead of calling DataBind.

  RadGrid1.Rebind(); 

Bind the Grid using AdvanceDataBinding techniques.

Shinu
0
appdev
Top achievements
Rank 1
answered on 11 Nov 2008, 02:48 PM
Hi,
i tried rebind but that does the same thing. however, if i resize my column to much bigger size, the vertical and horizontal bar show up. Even if there is no horizontal scroll bar, my records always show up alot, so the veritical bar should be there.
0
appdev
Top achievements
Rank 1
answered on 12 Nov 2008, 03:43 AM
please help me thank you.
0
Shinu
Top achievements
Rank 2
answered on 12 Nov 2008, 07:53 AM
Hi Duy,

Try setting TableLayout to fixed and see if the scrolling is working.

ASPX:
<MasterTableView DataSourceID="SqlDataSource1"  TableLayout="fixed"     > 
  


Shinu.
0
appdev
Top achievements
Rank 1
answered on 12 Nov 2008, 11:35 AM
tablelayout='fixed' still doesn't fix the problem. the scroll bar still not show up until you resize the column, any column. you still could scroll just won't see it
0
appdev
Top achievements
Rank 1
answered on 12 Nov 2008, 01:19 PM
any other idea guys? thank you.
Tags
Grid
Asked by
appdev
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
appdev
Top achievements
Rank 1
Share this question
or