3 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 08 Sep 2009, 07:38 AM
Hi Rahul,
Try the following code snippet to add RadComboBox to the Group panel of RadGrid
CS:
Princy.
Try the following code snippet to add RadComboBox to the Group panel of RadGrid
CS:
RadComboBox GroupPanelCombo = new RadComboBox(); |
GroupPanelCombo.ID = "GroupPanelCombo"; |
RadGrid2.GroupPanel.Controls.Add(GroupPanelCombo); |
Princy.
0
Rahul
Top achievements
Rank 1
answered on 08 Sep 2009, 09:04 AM
Hello Thanks for reply
<GroupByExpressions>
<telerik:GridGroupByExpression>
<GroupByFields>
<telerik:GridGroupByField FieldName="ProdName" />
</GroupByFields>
<SelectFields>
<telerik:GridGroupByField FieldName="ProdName" HeaderText="Product" />
<telerik:GridGroupByField Aggregate="Min" FieldAlias="Budget Balance: $"
FieldName="Budget" HeaderValueSeparator="" />
<telerik:GridGroupByField Aggregate="Count" FieldAlias="Proposal Count" FieldName="ProdName" />
<telerik:GridGroupByField Aggregate="Sum" FieldAlias="Total" FieldName="EstCost"
FormatString="{0:c}" />
<telerik:GridGroupByField Aggregate="Sum" FieldAlias="Trials" FieldName="EstTrials" />
</SelectFields>
</telerik:GridGroupByExpression>
<telerik:GridGroupByExpression>
<GroupByFields>
<telerik:GridGroupByField FieldName="ProposalGrpVal" />
</GroupByFields>
<SelectFields>
<telerik:GridGroupByField FieldName="ProposalGrpVal" FieldAlias="Proposal:" HeaderValueSeparator=""
FormatString=" " />
</SelectFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
I need the combo box inside this grouping ............................ Is this posible to add the combo in side th group panel ???
<GroupByExpressions>
<telerik:GridGroupByExpression>
<GroupByFields>
<telerik:GridGroupByField FieldName="ProdName" />
</GroupByFields>
<SelectFields>
<telerik:GridGroupByField FieldName="ProdName" HeaderText="Product" />
<telerik:GridGroupByField Aggregate="Min" FieldAlias="Budget Balance: $"
FieldName="Budget" HeaderValueSeparator="" />
<telerik:GridGroupByField Aggregate="Count" FieldAlias="Proposal Count" FieldName="ProdName" />
<telerik:GridGroupByField Aggregate="Sum" FieldAlias="Total" FieldName="EstCost"
FormatString="{0:c}" />
<telerik:GridGroupByField Aggregate="Sum" FieldAlias="Trials" FieldName="EstTrials" />
</SelectFields>
</telerik:GridGroupByExpression>
<telerik:GridGroupByExpression>
<GroupByFields>
<telerik:GridGroupByField FieldName="ProposalGrpVal" />
</GroupByFields>
<SelectFields>
<telerik:GridGroupByField FieldName="ProposalGrpVal" FieldAlias="Proposal:" HeaderValueSeparator=""
FormatString=" " />
</SelectFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
I need the combo box inside this grouping ............................ Is this posible to add the combo in side th group panel ???
0
Princy
Top achievements
Rank 2
answered on 08 Sep 2009, 09:29 AM
Hello Rahul,
If I understand you correctly, I suppose you are trying to add a Combobox control to each GroupHeader of your grid. If thats the case, then you would have to add the combobox to the group header inside the ItemCreated and ItemDataBound event handlers. Refer to the application attached with the following code library submission which demonstrates a similar approach:
Selecting all items in a group with a checkbox in the group header item
Regards
Princy.
If I understand you correctly, I suppose you are trying to add a Combobox control to each GroupHeader of your grid. If thats the case, then you would have to add the combobox to the group header inside the ItemCreated and ItemDataBound event handlers. Refer to the application attached with the following code library submission which demonstrates a similar approach:
Selecting all items in a group with a checkbox in the group header item
Regards
Princy.