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

radgrid Expand/Collapse Group

3 Answers 244 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Avik
Top achievements
Rank 1
Avik asked on 16 Jul 2008, 11:07 AM
Hi,
    I am using  a radgrid wherein i am allowing the user to Expand/Collapse a group.When i set the radgrid attribute showheader = false the Expand/Collapse functionality is not working and when i set it to true it starts working.But the problem is that when i set it to true ,Header gets displayed on the grid but the requirement is that the header should not be displayed.
Can anyone suggest me how to implement the Expand/Collapse functionality without showing the Header.

Thanks,
Avik.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Jul 2008, 12:09 PM
Hi Avik,

I tried Grouping with and without setting the ShowHeader property. It is working as expected. Which version of the Grid are you using? Mine is Grid(2008.1.415.20)

ASPX:
 <MasterTableView  ShowHeader="false"  DataSourceID="SqlDataSource1" EditMode="PopUp"
     <GroupByExpressions> 
        <telerik:GridGroupByExpression> 
         <GroupByFields> 
               <telerik:GridGroupByField  FieldName="Country" FieldAlias="Country" /> 
         </GroupByFields> 
         <SelectFields> 
              <telerik:GridGroupByField FieldName="Country" FieldAlias="Country" /> 
        </SelectFields> 
</GroupByExpressions> 


Thanks
Princy
0
Avik
Top achievements
Rank 1
answered on 16 Jul 2008, 01:03 PM
Hi Princy,
    Thanks for your reply.
    I am not sure with the version of Grid i am using but i noted a difference between your way of declaring the Gridgroupbyexpression and of mine.You are declaring it as Telerik:GridGroupByExpression where in i am declaring it as radG:GridGroupByExpression , i am not sure whether this is causing the problem.The code is as below.
                     

<

GroupByExpressions>
<radG:GridGroupByExpression>
 <SelectFields>
<radG:GridGroupByField FieldName="Segment" FieldAlias="Segment">
</radG:GridGroupByField>
</SelectFields>
<GroupByFields>
<radG:GridGroupByField FieldName="Segment" FieldAlias="Segment"></radG:GridGroupByField>
</GroupByFields>
</radG:GridGroupByExpression>
</GroupByExpressions>

Thanks,
Avik.


0
Princy
Top achievements
Rank 2
answered on 17 Jul 2008, 04:02 AM
Hi Avik,

You are using RadGrid for Asp.Net and mine is RadGrid for Asp.Net AJAX. I tried Grouping without Header in RadGrid for Asp.Net (5.1.1) and it is working as expected. If you are using an older version try upgrading to the latest version of the Grid.

Thanks
Princy.
Tags
Grid
Asked by
Avik
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Avik
Top achievements
Rank 1
Share this question
or