Add Radcombo in Group Panel

4 posts, 0 answers
  1. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 08 Sep 2009 Link to this post

    can we add the Radcombo box or datalist of asp.net inside  grouping panel ?

    Is it possible reply please

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Sep 2009 Link to this post

    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.
  3. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 08 Sep 2009 Link to this post

    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 ???
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Sep 2009 Link to this post

    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.
Back to Top