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

Miniture grid on load

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 08 Oct 2012, 12:54 PM

So far I've not seen this problem anywhere else, and all of the other developers who have a lot more experience with this than I have never seen it either.

I have a grid on a .aspx page, that has data associated with it.  When the page loads there is a VERY small area for the data grid lines(turns out it is 10px).  When I right-click and "refresh" the page, the grid is correctly showing (170px).  The area for the grid appears to be rendering fine, and actually the grid area itself appears to be the correct size, just the data lines (and a miniture scrollbar) show on the initial load, the page refresh shows it just fine. When I debug the page, the correct data is in the grid.

Here is the radWindow definition for the page: 

<rad:RadWindow ID="ctlEmailSubmittals" runat="server" ClientCallBackFunction="RadWindowCallBack"  

Height="700px" Left="" Modal="true" SkinsPath="~/RadControls/Window/Skins"  

Title="Submittal Generated" Top="" VisibleStatusbar="False" Width="1200px"  

Behavior="Close" /> 


And the html:

<form i

d="form1" runat="server"

 

<rad:RadAjaxManager ID="ctlAjaxMgr" runat="server">   

 

<AjaxSettings>  

 

<rad:AjaxSetting AjaxControlID="ctlAjaxMgr">  

 

<UpdatedControls>  

 

<rad:AjaxUpdatedControl ControlID="rgEmailAddresses" />  

 

</UpdatedControls>  

 

</rad:AjaxSetting>  

 

<rad:AjaxSetting AjaxControlID="rgEmailAddresses">  

 

<UpdatedControls>  

 

<rad:AjaxUpdatedControl ControlID="rgEmailAddresses" />  

 

</UpdatedControls>  

 

</rad:AjaxSetting>  

 

<rad:AjaxSetting AjaxControlID="ctlABLDirtyFlagLite" />  

 

</AjaxSettings> 

 

<ClientEvents OnRequestStart="DoRequestStartEvents();" OnResponseEnd="DoResponseEndEvents();" />  

 

</rad:RadAjaxManager>  


...some other html for other parts of the page:
then the grid definition: 

<tr>  

 

<td> 

 

<span>TO:</span>  

 

<rad:RadGrid ID="rgEmailAddresses" runat="server" AutoGenerateColumns="False" Skin="ABL_Std"  

 

DataSourceID="odsContacts" AllowMultiRowSelection="True" Height="170px">  

<MasterTableView CommandItemDisplay="Top" TableLayout="Fixed">  

 

<RowIndicatorColumn Visible="False">  

 

</RowIndicatorColumn>  

 

<Columns>  

 

<rad:GridTemplateColumn UniqueName="SELECT">  

 

<HeaderStyle Width="22px" />  

 

<HeaderTemplate>  

 

<asp:CheckBox ID="chkHeaderSelect" runat="server" onclick="SelectAllCheckedChanged();" />  

 

</HeaderTemplate>  

 

<ItemTemplate>  

 

<asp:CheckBox ID="chkSelect" runat="server" onclick="SingleCheckboxCheckedChanged();" /> 

 

</ItemTemplate>  

 

</rad:GridTemplateColumn>  

 

<rad:GridBoundColumn DataField="COMPANY_TYPE" DataType="System.String" HeaderText="Company Type"  

 

ReadOnly="True" SortExpression="COMPANY_TYPE" UniqueName="company_type">  

 

<HeaderStyle Width="142px" />  

 

</rad:GridBoundColumn>  

 

<rad:GridBoundColumn DataField="COMPANY" DataType="System.String" HeaderText="Company"  

 

ReadOnly="True" UniqueName="company">  

 

<HeaderStyle Width="170px" />  

 

</rad:GridBoundColumn>  

 

<rad:GridBoundColumn DataField="COMPANY_CONTACT_DATA" DataType="System.String" HeaderText="Contact"  

 

ReadOnly="True" UniqueName="company_contact_data">  

 

<HeaderStyle Width="145px" />  

 

</rad:GridBoundColumn>  

 

<rad:GridBoundColumn DataField="CONTACT_EMAIL_ADDRESS" DataType="System.String" HeaderText="Email Address"  

 

ReadOnly="True" UniqueName="contact_email_address"

 

<HeaderStyle Width="175px" />  

 

</rad:GridBoundColumn>  

 

</Columns>  

 

<CommandItemTemplate>  

 

<div>  

 

<a href="javascript:void(0);" onclick="AddSelectedEmails();">Add Emails</a>  

 

</div> 

 

</CommandItemTemplate>  

 

<NoRecordsTemplate>  

 

<asp:Label ID="label1" Text="No records to display." runat="server"></asp:Label>  

 

</NoRecordsTemplate>  

 

</MasterTableView>  

 

<ClientSettings> 

 

<Selecting AllowRowSelect="False" /> 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="170px" />  

</ClientSettings>  

 

</rad:RadGrid>  

 

</td>  

 

</tr> 


Anyone have any idea of what may be going on?  Been fighting this one for a couple of days now.

Thanks.
Rich

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 11 Oct 2012, 04:13 PM
Hello,

Refer to the support ticket post you have opened on the same matter for additional information. To avoid duplicate posts, we can continue our communication there.

Regards,
Pavlina
the Telerik team
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 their blog feed now.
Tags
Grid
Asked by
Rich
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or