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

[Solved] Hide the sub group header property

2 Answers 201 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 28 Aug 2009, 12:17 PM
I want to hide the header of sub group property.
<GroupByExpressions>
                            <telerik:GridGroupByExpression>
                                <GroupByFields>
                                    <telerik:GridGroupByField FieldName="ProdName" />
                                </GroupByFields>
                                <SelectFields>
                                    <telerik:GridGroupByField FieldName="ProdName" HeaderValueSeparator=" : " HeaderText="Product Name" />
                                </SelectFields>
                            </telerik:GridGroupByExpression>
                            <telerik:GridGroupByExpression>
                                <GroupByFields>
                                    <telerik:GridGroupByField FieldName="TerritoryName" />
                                    <telerik:GridGroupByField FieldName="CropName" />
                                </GroupByFields>
                                <SelectFields>
                                    <telerik:GridGroupByField FieldName="TerritoryName" HeaderValueSeparator=" : " HeaderText="Territory : " />
                                    <telerik:GridGroupByField FieldName="CropName" HeaderValueSeparator=" : " HeaderText="Crop : " />

                                </SelectFields>
                            </telerik:GridGroupByExpression>
                        </GroupByExpressions>


How to hide ? when i am not setting the propery that time it give error selectfields error.

I want to hide the above bold content  header text. It only show the first one header ....

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Aug 2009, 09:26 AM
Hello Rahul,

Try removiong the whole of the SelectFields tag rather than not setting the properties as shown below and see if it helps:
aspx:
<GroupByExpressions> 
      <telerik:GridGroupByExpression> 
           <GroupByFields> 
                 <telerik:GridGroupByField FieldName="ProdName" /> 
           </GroupByFields> 
           <SelectFields> 
                 <telerik:GridGroupByField FieldName="ProdName" HeaderValueSeparator=" : " HeaderText="Product Name" /> 
           </SelectFields> 
      </telerik:GridGroupByExpression> 
      <telerik:GridGroupByExpression> 
           <GroupByFields> 
                 <telerik:GridGroupByField FieldName="TerritoryName" /> 
                 <telerik:GridGroupByField FieldName="CropName" /> 
           </GroupByFields>            
      </telerik:GridGroupByExpression> 
</GroupByExpressions> 

Hope this helps...
Princy.
0
Rahul
Top achievements
Rank 1
answered on 31 Aug 2009, 10:06 AM
Hello Princey above solution is working fine when the page is loaded first time , after the post back it will not grouping the sub group content is will directly group by the first group section .................... Means sub grouping removing automatically after page post back. And
If we put the Select fields it working properly .... group properly after page post back......


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