|
|
Hi,
It seems that the RadEditor steals the focus from a textbox setup on pageLoad. This only happens on IE7 and IE8. It behaves as expected on all other browsers.
This is a sample code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadEditor.aspx.cs" Inherits="Application_Test_Telerik_RadEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function pageLoad()
{
$get("txt").focus();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager" runat="server" >
</asp:ScriptManager>
<input id="txt" type="text" />
<telerik:radeditor runat="server" ID="RadEditor" SkinID="BasicTools" Width="100%" Height="350px" EditModes="Design" Enabled="true" >
</telerik:radeditor>
</form>
</body>
</html>

| <add key="Telerik.Dock.DockZone.EnableEmbeddedSkins" value="false" /> |
| <add key="Telerik.DockZone.EnableEmbeddedSkins" value="false" /> |
| <add key="Telerik.Dock.RadDockZone.EnableEmbeddedSkins" value="false" /> |
| <add key="Telerik.Zone.EnableEmbeddedSkins" value="false" /> |
| <telerik:RadDockZone runat="server" id="RadDockZone1" EnableEmbeddedSkins="False"> |
| <telerik:RadDock id="RadDock1" Collapsed="true" Skin="MySkin" EnableEmbeddedSkins="false" EnableDrag="false" DefaultCommands="ExpandCollapse" runat="server"> |
| <TitlebarTemplate> |
| <asp:Image ImageUrl="~/images/Info_Icon.gif" ImageAlign="AbsMiddle" runat="server" /> |
| <asp:Label Text="<% $ Resources:Resource, lblHelpHeader %>" runat="server" /> |
| </TitlebarTemplate> |
| <ContentTemplate> |
| <p align="justify"><asp:Label ID="lblText" runat="server" /></p> |
| </ContentTemplate> |
| </telerik:RadDock> |
| </telerik:RadDockZone> |

| Dim uxStartDate As RadDateTimePicker = New RadDateTimePicker |
| uxStartDate.DbSelectedDate = CDate(startDate) |
| uxStartDate.ID = "uxStartDate_" & rowID |
| uxStartDate.Width = 180 |
| uxStartDate.CssClass = "dateCol" |
| uxStartDate.SharedCalendarID = "uxSharedCal" |
| uxStartDate.SharedTimeViewID = "uxSharedTimeView" |
| uxStartDate.DateInput.DisplayDateFormat = "ddd dd/MM/yy HH:mm:ss" |
| uxStartDate.AutoPostBack = True |
| uxStartDate.AutoPostBackControl = Telerik.Web.UI.Calendar.AutoPostBackControl.Both |
| Protected Sub SelectedDateChange(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs) |
| ' Do some stuff here |
| End Sub |
| uxRadAjaxManager.AjaxSettings.AddAjaxSetting(uxStartDate , uxEndDate) |

I have aspx page(which contains master page), inside that user control is there(.ascx), inside this user control one more user control is there. Inside this user control, I have parent repeater in that i have image button and child repeater, inside the child repeater i have link button, i did ajaxification for image button. below is the detail code
<
asp:Repeater ID="ParentRepeater" runat="server">
<ItemTemplate>
<asp:ImageButton ID="ExpandCollapseImageButton"
runat="server"
CssClass="dimensionExpCol"
ImageUrl='<%#Eval("ImageUrl")%>'
OnClientClick='<%#Eval("Args", "OnClientClick(\"{0}\");return false;")%>'
/>
<asp:Repeater ID="ChildRepeater" runat="server" DataSource='<%#Eval("LinkValues")%>'>
<ItemTemplate>
<div class="dimensionValueWrapper">
<asp:LinkButton ID="ChildRepeaterLinkButton"
runat="server"
CssClass="dimensionValueName"
Text='<%#Eval("DisplayName")%>'
CommandName='<%#Eval("CommandName")%>'
CommandArgument='<%#Eval("CommandArgument")%>'
OnCommand="OnCommand"></asp:LinkButton>
</div>
</ItemTemplate>
</asp:Repeater>
In Code Behind:
protected
override void OnLoad(EventArgs e)
{
base.OnLoad(e);
RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);
RadAjaxLoadingPanel loadingPanel =
(
RadAjaxLoadingPanel)Page.Master.FindControl("LoadingPanel");
ajaxManager.AjaxRequest += OnAjaxManagerAjaxRequest;
ajaxManager.AjaxSettings.AddAjaxSetting(
ajaxManager, ParentRepeater, loadingPanel);
RegisterJavaScript();
}
private
void RegisterJavaScript()
{
string script =
@"
<script type=""text/javascript"">
function OnClientClick(args)
{
var ajaxManager = $find("""
+ RadAjaxManager.GetCurrent(Page).ClientID + @""");
ajaxManager.ajaxRequest(args);
}
</script>"
;
ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "Test", script, false);
}
protected
void OnAjaxManagerAjaxRequest(object sender, AjaxRequestEventArgs e)
{
//code has been implemented
}
protected
void OnCommand(object sender, CommandEventArgs eventArgs)
{
}
If i click on image button i.e working fine,JavaScript is firing(OnClientClick();) and Ajaxification is also working fine, but inside the child repeater if i click on link buttons total Repeater(Parent) is disappearing. Link button OnCommand event is firing. But I am not able to see the total Repeater. Actually if i click on link button, i am showing some results inside the Grid. I am getting those results as well. But Repeater is disappearing.
Can you tell me the what will be the Reason and what would be the solution for that.
Thanks in Advance
Hari.