Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
194 views
Is there a way to display more than seven days in a week view of the rad scheduler
Peter
Telerik team
 answered on 28 May 2008
1 answer
256 views

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

Peter
Telerik team
 answered on 28 May 2008
1 answer
219 views

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>



Paul
Telerik team
 answered on 28 May 2008
5 answers
212 views
Is it possible to allow sorting of columns in a rad combo box?  I don't see it in any of the examples (ideally click on the header and it does the sort similar to the way win forms combo boxes that have this kind of feature work).

Thanks!
Rosi
Telerik team
 answered on 28 May 2008
3 answers
246 views
Hello,

I'm new to Telerik and am currently using the trial version of the framework. I would like to build a customizable portal site that makes use of a multi-tab interface with multiple docks+user controls on each tab/page (like NetVibes, Pageflakes, iGoogle).

For efficiency, I'd want to dynamically create the contents of each tab/page (i.e., the docks+user controls they'd contain). Ideally, upon first navigation to a tab, the content would be generated, and then cached.

Is this possible using Telerik's framework? Some idiosyncrasies of the framework seem to make it difficult to do. I have tried going through the existing Dynamic Docks, My Portal, and Load on Demand PageView demos to try and piece together how to achieve this effect but am unsure of the possibility.

Were RadDocks ever created to be this dynamic? Was RadTabStrip created for such a dynamic setup? Where these two pieces of the framework ever designed to work this intricately together? Would you attempt to maintain the "cache" using the Session object as seen in the demos (and push to DB for long term storage upon logout or some other departing trigger?)

Thanks for the help.
Sophy
Telerik team
 answered on 28 May 2008
3 answers
220 views
My datasource is a list of objects.
In some cases objects inherited from a base class:
Example

public partial class Base
{
string Cod;
string Des;
}

public partial Extendend Class:Base
{
string attribute1
string attribute2
string attribute3
}

In thiese cases In my radgrid i obtain this columns result (i need to use automatic generate columns)
attribute1,attribute1,attribute3,Cod,Des

There is a way to obtain a different result?
I want to display this column order:

Cod,Des,attribute1,attribute1,attribute3

Veli
Telerik team
 answered on 28 May 2008
1 answer
112 views
How to bind combo box  on the row of grid without using  of GridEditCommandColumn.
Princy
Top achievements
Rank 2
 answered on 28 May 2008
1 answer
813 views
Hi,
  Please tell me the way to set the value of a telerik textbox using a javascript function.

Note: Not on text change event of the textbox. Just any javascript function 

Thanks
Raju.
Dimo
Telerik team
 answered on 28 May 2008
1 answer
108 views

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.

Giuseppe
Telerik team
 answered on 28 May 2008
3 answers
186 views
Hello

the standard treeView control has classes such as "TreeNodeCollection" and "TreeNode", is there any such classes using the radTreeView?

im converting the following code to work with the rad control, it builds a tree menu from an sql database using recursive response and the treeNode and treeNodeParant standard used by MS.

it both builds the menu and checks the right to edit and access the treeNodes using a Active Directory based class along with a class to handle all the SQL database access.

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

Erjan Gavalji
Telerik team
 answered on 28 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?