Previously my RadSchedular was running properly. But now it through an error
'if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');'
why?
and how can i solve this?
Thanks
I have up to a point had success in loading UserCtls into my TabStrip pageviews,..however they did not survive postbacks or reload on TabClicks.
The Tabs themselves sit in a User Control which loads fine from the MasterPage (using RadMenu and several asp panes and resolveUpdatedControls + unloading reloading etc)
thanks Telerik for getting me that far)
# just one oddity ..goes thru page load twice!..but will ask re that in a differet thread.
This Problem:
(also goes thru PageLoad twice.?)
Using code from some of the examples .."BuildPageViewContents and "PageViewItemCreated" ..viewsate or session,..The selected user ctl is not being loaded, nor on tab click (server side code which executes)..are the user controls loaded.
Help please,..
attached the code
C#
public
partial class TabbedOBs : System.Web.UI.UserControl
{
//Property used to Maintain State of loaded UserContol
public string selectedUC
{
set
{
Session[
"selectedUC"] = value;
}
get
{
return Session["selectedUC"] == null ? "OccurrenceBook.ascx" : Session["selectedUC"].ToString();
}
}
//Property used to Maintain State of pageview
public string selectedPV
{
set
{
Session[
"selectedPV"] = value;
}
get
{
return Session["selectedPV"] == null ? "PageView1" : Session["selectedPV"].ToString();
}
}
protected void Page_Load(object sender, EventArgs e)
{
AjaxifySelf();
// first tab is defaulted..showing the OccurrenceBook U.Ctl and its gridded data
if (!IsPostBack) //RadMultiPage1_PageViewItemCreated..handles postbacks
{
//Sets & Loads the UCtls
BindMultiPage(
this.selectedPV);
}
}
private void AjaxifySelf()
{
RadAjaxManager ajaxManager = (RadAjaxManager)Page.FindControl("RadAjaxManager1");
ajaxManager.AjaxSettings.AddAjaxSetting(
this.FindControl("RadTabStrip1"), LoadingPanel1);
}
protected void RadTabStrip1_TabClick(object sender, TabStripEventArgs e)
//This is ajaxified, causes a postback, and PageViewItemCreated handles the uctl re-loads
{
Telerik.WebControls.
Tab TabClicked = e.Tab;
if (TabClicked.Value == "Occurrence Book")
{
this.selectedUC = "OccurrenceBook.ascx";
this.selectedPV = "PageView1";
}
else
{
this.selectedUC = "UserLogs.ascx";
this.selectedPV = "PageView1";
}
}
private void BindMultiPage()
{
PageView pv = new PageView();
//pageview which is to have it's contents built/loaded
pv.ID =
this.selectedPV;
BuildPageViewContents(pv, 0);
}
#region
Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.RadMultiPage1.PageViewItemCreated += new PageViewItemCreatedDelegate(this.RadMultiPage1_PageViewItemCreated);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
//the PageViewItemCreated event is used to restore the dynamic pageview..
//ON POSTBACK...i.e. recreate any/all controls on postback
private void RadMultiPage1_PageViewItemCreated(PageView view, int viewIndex)
{
BuildPageViewContents(PageView1, viewIndex);
}
private void BuildPageViewContents(PageView pageView, int index)
{
//Load the selected UserControl (default or by TabClicked)
Control control = this.LoadControl(this.selectedUC);
string uniqueID = this.selectedUC.Split('.')[0];
uniqueID = uniqueID.Replace(
"/", "").Replace("~", "");
control.ID = uniqueID;
//Load control into Required PageView
//...AND prevent controls from being loaded twice.....weird !!,..
if (pageView.FindControl(control.ID) == null)
{
pageView.Controls.Add(control);
}
}
}
aspx
<
radTS:RadTabStrip ID="RadTabStrip1"
runat="server"
MultiPageID="RadMultiPage1"
OnTabClick="RadTabStrip1_TabClick" >
<Tabs>
<radTS:Tab runat="server" Text="Occurrence Book" Value="Tab1" >
</radTS:Tab>
<radTS:Tab runat="server" Text="User Logs" Value="Tab2">
</radTS:Tab>
</Tabs>
</
radTS:RadTabStrip>
<
radTS:RadMultiPage ID="RadMultiPage1" runat="server">
<radTS:PageView ID="PageView1" runat="server">
Operations
</radTS:PageView>
<radTS:PageView ID="PageView2" runat="server">
UserLogs
</radTS:PageView>
</
radTS:RadMultiPage>
<
rada:AjaxLoadingPanel id="LoadingPanel1" Runat="server"
Transparency="30" BackColor="#E0E0E0">
<asp:Image id="Image1" runat="server" AlternateText="Loading..."
BorderWidth="0px" ImageUrl="~/RadControls/AJAX/Skins/Default/loading.gif"></asp:Image>
</
rada:AjaxLoadingPanel>

Hi
I’m looking for a way to make a numerical Y axis arranged in a descending order. i.e. Larger series values are displayed closer to the x Axis and smaller values further away (Example of a specific use of this chart would be a Competition Ranking where a Ranking of 1 would appear at the top of the Y axis and the lowest ranking towards the bottom of the Y axis).
Thanks.
public
partial class menul : System.Web.UI.UserControl
{
protected void Page_PreRender(object sender, EventArgs e)
{
if (!IsPostBack)
{
dsLocal.RightsDataTable dtSeed = new dsLocal.RightsDataTable();
dsLocal.RightsRow dr = dtSeed.NewRightsRow();
dr.MenuID = -1;
dr.AdGroup = sesvar.not_authenticated;
dr.Hide = false;
dr.Write = false;
dtSeed.Rows.Add(dr);
TreeNodeCollection tc = dataAccess.getNodes(-1, Session.SessionID, dtSeed, null, 0);
treeMenu1.Nodes.Clear();
foreach (TreeNode tn in tc)
{
treeMenu1.Nodes.Add(tn);
}
tc = dataAccess.getNodes(-2, Session.SessionID, dtSeed, null, 0);
treeMenu2.Nodes.Clear();
foreach (TreeNode tn in tc)
{
treeMenu2.Nodes.Add(tn);
}
tc = dataAccess.getNodes(-3, Session.SessionID, dtSeed, null, 0);
treeMenu3.Nodes.Clear();
foreach (TreeNode tn in tc)
{
treeMenu3.Nodes.Add(tn);
}
if (Session[sesvar.pageID] != null)
{
TreeNode foundNode = FindPageID(treeMeny1, (int)Session[sesvar.pageID]);
foundNode = FindPageID(treeMenu2, (int)Session[sesvar.pageID]);
foundNode = FindPageID(treeMenu3, (int)Session[sesvar.pageID]);
}
}
}
private TreeNode FindPageID(TreeView Tree, int PageID)
{
foreach (TreeNode nod in Tree.Nodes)
{
int testID = 0;
if (int.TryParse(nod.Value, out testID) && testID == PageID)
{
nod.Select();
return nod;
}
else
{
TreeNode tmpNode = FindPageID(nod, PageID);
if (tmpNode != null)
{
nod.Expand();
return tmpNode;
}
}
}
return null;
}
private TreeNode FindPageID(TreeNode Tree, int PageID)
{
foreach (TreeNode nod in Tree.ChildNodes)
{
int testID = 0;
if (int.TryParse(nod.Value, out testID) && testID == PageID)
{
nod.Select();
return nod;
}
else
{
TreeNode tmpNode = FindPageID(nod, PageID);
if (tmpNode != null)
{
nod.Expand();
return tmpNode;
}
}
}
return null;
}
}
Any help re-doing this code snippet to be handled by the radTreeview would be appriciated.
Thanks in advance
Christian Persson
IT-Consultant - Netred AB
Sweden