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

Radgrid column widths not assigned on Chrome

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
cha
Top achievements
Rank 1
cha asked on 08 Jan 2014, 05:02 PM
I have a very simple RadGrid (no filters or edit template) inside a RadAjaxpanel and it renders fine on IE. But on Chrome the column widths are not assigned at all and the whole table expands assuming some random widths for the columns. Here is my grid declaration.
I've also attached how it looks on both IE and Chrome.

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" OnAjaxRequest="RadAjaxPanel1_AjaxRequest">
    <div id="DivDetailGrid" style=" height:210px; display:none">
        <asp:Panel ID="Panel2" runat="server">  
            <telerik:RadGrid ID="SeriesGrid" runat="server" Skin="Gray" EnableViewState="false" AutoGenerateColumns="False" EnableEmbeddedSkins="False" AllowPaging="False" AllowSorting="true" GridLines="None" OnNeedDataSource="SeriesGrid_NeedDataSource" OnItemDataBound="SeriesGrid_ItemDataBound" Height="380px">
                <ClientSettings>
                    <Selecting AllowRowSelect="false" />
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="false" />
                    <ClientEvents OnGridCreated="detailCreated" />
                </ClientSettings>
                <MasterTableView TableLayout="Fixed" ClientDataKeyNames="Cusip" >
                    <Columns>                                                
                        <telerik:GridBoundColumn DataField="Cusip" HeaderText="Cusip" HeaderStyle-Width="82px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Links" UniqueName="links" HeaderText="Links" HeaderStyle-Width="62px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Coupon" HeaderText="Cpn" HeaderStyle-Width="42px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="MaturityDate" HeaderText="Stated Maturity" HeaderStyle-Width="92px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="NextCallDate" HeaderText="Next Call Date" HeaderStyle-Width="92px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="RefundStat" HeaderText="Refund Stat" HeaderStyle-Width="57px" ></telerik:GridBoundColumn>                                                            
                        <telerik:GridBoundColumn DataField="EffectiveMaturityDate" HeaderText="Effective Maturity" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="muni_issue_yld" HeaderText="Issue Yld" HeaderStyle-Width="58px" ></telerik:GridBoundColumn>                                                            
                        <telerik:GridBoundColumn DataField="spread_to_mmd" HeaderText="Spread to MMD" HeaderStyle-Width="66px"  DataFormatString="{0:N0}" ></telerik:GridBoundColumn>  
                        <telerik:GridBoundColumn DataField="MaturitySize" HeaderText="Maturity Size (000s)" HeaderStyle-Width="82px"  DataFormatString="{0:N0}" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="AMT_OUTSTANDING" HeaderText="Amt Outst (000s)" HeaderStyle-Width="87px" DataFormatString="{0:N0}" ></telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </asp:Panel>
    </div>
</telerik:RadAjaxPanel>

1 Answer, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 13 Jan 2014, 10:58 AM
Hello Cha,

I have tested your code and it works as expected on my side. Please refer to the attached test project. Is there anything else that should be added/modified in this sample in order to replicate the issue? I have also noticed that a custom skin is used. It will be good if you send it too. There might be something relevant to the problem. Please also tell us which version of the RadControls do you use. It is important to test with the same versions.

Regards,
Venelin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
cha
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Share this question
or