| <div id="RadAjaxPanel1Panel"> |
| <div id="RadAjaxPanel1" class="cssclass"> |
| <!-- Content Goes Here --> |
| </div> |
| </div> |
RadScriptManager
.RegisterStartupScript(this.Page, Page.GetType(), "PopUpAlert", "javascript:FnPopupAlert();", true);
function FnPopupAlert()
{
radalert(
"Hi",400,30);
return false;
}
When i run the page an javascript undefined error is coming. Please tell what could be the reason for this because when i remove the radalert line from the function everything works fine.<asp:ScriptReference Path="~/Scripts/Common/Core.js" />
<asp:ScriptReference Path="~/Scripts/Common/Animation/AnimationScripts.js" />
<asp:ScriptReference Path="~/Scripts/Common/Navigation/NavigationScripts.js" />
<asp:ScriptReference Path="~/Scripts/Common/Popup/PopupScripts.js" />
<asp:ScriptReference Path="~/Scripts/Ajax/Ajax.js" />
<asp:ScriptReference Path="~/Scripts/Grid/RadGridScripts.js" />
<asp:ScriptReference Path="~/Scripts/Menu/RadMenuScripts.js" />
<asp:ScriptReference Path="~/Scripts/Menu/ContextMenu/RadContextMenuScripts.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadPane.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSlidingPane.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSlidingZone.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSplitBar.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSplitter.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/SplitterItem.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/SplitterPaneBase.js" />
<asp:ScriptReference Path="~/Scripts/TabStrip/RadTabStripScripts.js" />
<asp:ScriptReference Path="~/Scripts/TabStrip/MultiPage/RadMultiPageScripts.js" />
<asp:ScriptReference Path="~/Scripts/TreeView/RadTreeViewScripts.js" />
Kind regards,
Rob
After selecting a date from the Date Picker calendar pop up, the control loses the focus. By default, shouldn't the focus return back to the input area?
If not, how can I set the focus back to the Rad Date Picker's associated input area?
I've tried the following javascript after the DateSelected event, but the focus method is not recognized:
| <script type="text/javascript"> |
| function SetDatePickerFocus() |
| { |
| var datePicker = window["<%= RADDatePicker1.ClientID %>"]; |
| datePicker.Focus(); |
| } |
| </script> |
AutoGenerateColumns
="True"
it works ok but When I define
AutoGenerateColumns
="False"
and defines columns throws
An error occurred during the processing of . Type 'Telerik.Web.UI.GridBoundColumn' does not have a public property named 'GridBoundColumn'
any idea???
| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <telerik:RadDatePicker ID="RadDatePicker1" runat="server"> |
| </telerik:RadDatePicker> |
| public partial class WebUserControl : System.Web.UI.UserControl |
| { |
| public void DisplayInformation() |
| { |
| RadDatePicker1.SelectedDate = DateTime.Now.Date; |
| } |
| } |
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> |
| <!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> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <telerik:RadMultiPage ID="RadMultiPage1" runat="server" OnPageViewCreated="RadMultiPage1_PageViewCreated"> |
| </telerik:RadMultiPage> |
| <asp:Button ID="Button2" runat="server" Text="Create Page View" OnClick="Button2_Click" /> |
| <asp:Button ID="Button1" runat="server" Text="PostBack" /> |
| </div> |
| </form> |
| </body> |
| </html> |
| public partial class _Default : System.Web.UI.Page |
| { |
| bool DoDisplay = false; |
| protected void Button2_Click(object sender, EventArgs e) |
| { |
| // Display initial values the first time the user |
| // control is created. |
| DoDisplay = true; |
| RadPageView pv = new RadPageView(); |
| pv.ID = "RadPageView1"; |
| RadMultiPage1.PageViews.Add(pv); |
| } |
| protected void RadMultiPage1_PageViewCreated(object sender, Telerik.Web.UI.RadMultiPageEventArgs e) |
| { |
| WebUserControl wuc = Page.LoadControl("WebUserControl.ascx") as WebUserControl; |
| wuc.ID = "WebUserControl1"; |
| e.PageView.Selected = true; |
| // Only display initial values the first time the |
| // user control is created. On subsequent postbacks |
| // we want the value from the viewstate. |
| if (DoDisplay) |
| wuc.DisplayInformation(); |
| e.PageView.Controls.Add(wuc); |
| } |
| } |