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

RadComboBox inside RadGrid CommandItemTemplate rendering problem

3 Answers 140 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Hossam
Top achievements
Rank 1
Hossam asked on 17 Apr 2009, 05:08 AM
Hi,
I have placed a RadComboBox inside a grid CommandItemTemplate, the combo functions as expected but renders incorrectly as shown here, my code as follows is straight forward and no special css applied.

I know I can override the default css and attach my own CommandItem style in the Grid.ItemDataBound event, but I would need to re-write all the style to preserve the Grid applied skin, not so elegant for sure.

I don't know if this is a bug or I'm missing something, appreciate any help

Thanks,
Hossam

    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div> 
    <h2>My Title</h2> 
    <telerik:RadGrid ID="gr" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="CountryDS" GridLines="None">  
        <MasterTableView CommandItemDisplay="Top" DataKeyNames="CountryId" DataSourceID="CountryDS">  
            <CommandItemTemplate> 
                MyCompoBox :   
                <telerik:RadComboBox ID="CatSelector"  DataTextField="CityName"  Skin="Default" Width="200px"   
                    DataValueField="CityId" runat="server" DataSourceId="CityDS">  
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </telerik:RadComboBox> 
            </CommandItemTemplate>           
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
               ..................  
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid> 
 
    <data:CountryDataSource ID="CountryDS" runat="server">  
    </data:CountryDataSource> 
    <data:CityDataSource ID="CityDS" runat="server">  
    </data:CityDataSource>      
    </div> 
    </form> 

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 17 Apr 2009, 07:08 AM
Hello Hossam,

Are you using the current official version 2009.1.402? What you are getting should be addressed there. If not you can try the current internal build.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Hossam
Top achievements
Rank 1
answered on 17 Apr 2009, 02:16 PM
Hello Albert,

Yes, Im using the latest official version 2009.402.35, and applied the latest hotfix 2009.416.35 correctely, but still no go!
0
Alex Gyoshev
Telerik team
answered on 20 Apr 2009, 01:43 PM
Hi Hossam,

The problem is caused by conflicting styles between the RadGrid and the RadComboBox. You can work-around them using the following CSS:
div.RadGrid tr.rgCommandRow td td
{
    padding: 0;
}

We'll strive to include this solution for the next release. Thank you for reporting it, your Telerik points have been updated.

Sincerely yours,
Alex
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Hossam
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Hossam
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or