If I make my page render larger by holding down ctrl and scrolling the mouse wheel (to make IE7 font size larger - browser must first be maximized so a scroll bar appears horizonatlly), it causes my grid to garble its contents after I have clicked add or edit to bring up the form and then hit cancel. I have to navigate away from the page and come back, and the grids contents are reset in their cells as normal.
Here is what it looks like:
Garbled RadGrid after hitting cancel from edit/add form
My code block on my ascx page:
Here is what it looks like:
Garbled RadGrid after hitting cancel from edit/add form
My code block on my ascx page:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ManageRoles.ascx.vb" | |
Inherits="Manager_Controls_ManageRoles" %> | |
<%@ Import Namespace="Engine.Components.Common" %> | |
<table width="100%" cellpadding="0" cellspacing="0" border="0"> | |
<tr> | |
<td> | |
<table width="100%" cellpadding="0" cellspacing="0" border="0"> | |
<tr> | |
<td colspan="2"> | |
<asp:Label ID="lblError" runat="server" Visible="false" EnableViewState="false" CssClass="red"><br /></asp:Label> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="2"> | |
<telerik:RadGrid ID="rgRoles" Skin="Office2007" GridLines="None" runat="server" AutoGenerateColumns="False" | |
Width="99%" AllowSorting="True" SortingSettings-SortedAscToolTip="/Manager/images/arrw_up.gif" | |
SortingSettings-SortedDescToolTip="/Manager/images/arrw_d.gif"> | |
<MasterTableView DataKeyNames="RoleName" Width="100%" CommandItemDisplay="Top" AllowPaging="True" | |
PageSize="<%# Config.AdminGridPageSize() %>" AllowMultiColumnSorting="True"> | |
<Columns> | |
<telerik:GridTemplateColumn UniqueName="TemplateColumn"> | |
<ItemTemplate> | |
| |
<asp:LinkButton ID="imgBtnEdit" runat="server" CommandName="Edit" Text="Edit" ForeColor="#044A7E" | |
CausesValidation="false" Visible='<%# DelButShow(DataBinder.Eval(Container.DataItem, "RoleName")) %>' /> | |
</ItemTemplate> | |
<HeaderStyle Width="7%" /> | |
</telerik:GridTemplateColumn> | |
<telerik:GridBoundColumn HeaderText="Role" UniqueName="RoleName" DataField="RoleName"> | |
<HeaderStyle HorizontalAlign="Left" Width="84%" /> | |
</telerik:GridBoundColumn> | |
<telerik:GridTemplateColumn UniqueName="TemplateColumn1"> | |
<ItemTemplate> | |
| |
<asp:LinkButton ID="imgBtnDelete" runat="server" CommandName="Delete" ForeColor="#044A7E" | |
Text="Delete" CausesValidation="false" Visible='<%# DelButShow(DataBinder.Eval(Container.DataItem, "RoleName")) %>' | |
OnClientClick="javascript:if(!confirm('This action will delete the selected role. Are you sure?')){return false;}"></asp:LinkButton> | |
</ItemTemplate> | |
<HeaderStyle Width="8%" /> | |
</telerik:GridTemplateColumn> | |
</Columns> | |
<EditFormSettings UserControlName="/Manager/Controls/RolesAddEdit.ascx" EditFormType="WebUserControl"> | |
<EditColumn UniqueName="EditCommandColumn1"> | |
</EditColumn> | |
</EditFormSettings> | |
<CommandItemTemplate> | |
<asp:LinkButton ID="lnkAddRole" runat="server" Text="Add New Role" ForeColor="#E8750F" | |
CommandName="InitInsert" Visible='<%# Not rgRoles.MasterTableView.IsItemInserted %>' | |
CausesValidation="false"></asp:LinkButton> | |
</CommandItemTemplate> | |
<ExpandCollapseColumn Visible="False"> | |
<HeaderStyle Width="19px" /> | |
</ExpandCollapseColumn> | |
<RowIndicatorColumn Visible="False"> | |
<HeaderStyle Width="20px" /> | |
</RowIndicatorColumn> | |
</MasterTableView> | |
<SortingSettings SortedAscToolTip="/Manager/images/arrw_up.gif" SortedDescToolTip="/Manager/images/arrw_d.gif" /> | |
</telerik:RadGrid> | |
</td> | |
</tr> | |
</table> | |
<asp:Label ID="lblDelError" runat="server" ForeColor="Red" Text="The Administrator/Case Administrator role can not be deleted" | |
Visible="False"></asp:Label> | |
<telerik:RadAjaxManager ID="RadAjaxManager145" runat="server"> | |
<AjaxSettings> | |
<telerik:AjaxSetting AjaxControlID="rgRoles"> | |
<UpdatedControls> | |
<telerik:AjaxUpdatedControl ControlID="lblError" /> | |
<telerik:AjaxUpdatedControl ControlID="rgRoles" /> | |
</UpdatedControls> | |
</telerik:AjaxSetting> | |
<telerik:AjaxSetting AjaxControlID="RadAjaxManager145"> | |
<UpdatedControls> | |
<telerik:AjaxUpdatedControl ControlID="lblError" /> | |
<telerik:AjaxUpdatedControl ControlID="rgRoles" /> | |
<telerik:AjaxUpdatedControl ControlID="lblDelError" /> | |
</UpdatedControls> | |
</telerik:AjaxSetting> | |
</AjaxSettings> | |
</telerik:RadAjaxManager> | |
</td> | |
</tr> | |
</table> |