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

Add Radcombo in Group Panel

3 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 08 Sep 2009, 07:07 AM
can we add the Radcombo box or datalist of asp.net inside  grouping panel ?

Is it possible reply please

3 Answers, 1 is accepted

Sort by
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:
 
       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&nbsp;Balance:&nbsp;$"
                                                    FieldName="Budget" HeaderValueSeparator="" />
                                                <telerik:GridGroupByField Aggregate="Count" FieldAlias="Proposal&nbsp;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.
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