Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
144 views
does the c# example here http://demos.telerik.com/aspnet/prometheus/TreeView/Examples/Functionality/MultipleSelect/DefaultCS.aspx look correct?

I am trying to write the multiply selected tree nodes to a label - It seemed the node_click event would be what i need - however I've seen others have had some issues with it and apparently i am not going down the right path.

I don't see how to set the radtreeview control to autopostback = true

here is what i attempted

using

System;

using

System.Data;

using

System.Configuration;

using

System.Collections;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

System.Web.UI.HtmlControls;

using

System.Data.SqlClient;

using

Telerik.Web.UI;

public

partial class radman : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

RadTreeView1.DataSource = createOrgTreeTable();

RadTreeView1.DataFieldID =

"OrgId";

RadTreeView1.DataFieldParentID =

"OrgParent";

RadTreeView1.DataTextField =

"Name";

RadTreeView1.DataValueField =

"Name";

RadTreeView1.MultipleSelect =

true;

RadTreeView1.DataBind();

}

private DataTable createOrgTreeTable()

{

SqlConnection sqlConn = new SqlConnection(TPWConfiguration.DbConnectionString);

sqlConn.Open();

SqlCommand CmdRoot = new SqlCommand("tpw_direct_reports_listing_all", sqlConn);

CmdRoot.CommandType =

CommandType.StoredProcedure;

CmdRoot.Parameters.Add(

new SqlParameter("@UserId", SqlDbType.VarChar));

CmdRoot.Parameters[

"@UserID"].Value = "jjb000;

DataTable dtOrgTree = new DataTable();

dtOrgTree.Columns.Add(

"OrgId");

dtOrgTree.Columns.Add(

"OrgParent");

dtOrgTree.Columns.Add(

"login");

dtOrgTree.Columns.Add(

"name");

SqlDataAdapter daRoot = new SqlDataAdapter(CmdRoot);

daRoot.Fill(dtOrgTree);

return dtOrgTree;

}

protected void ShowSelected()

{

lblSelectedNodes.Text =

"";

foreach (RadTreeNode node in RadTreeView1.SelectedNodes)

{

lblSelectedNodes.Text +=

"<br/>" + node.FullPath;

}

}

protected void Button1_Click(object sender, EventArgs e)

{

ShowSelected();

}

}

Yana
Telerik team
 answered on 17 Sep 2008
3 answers
185 views
I'm using RadWindow alert to show a message when user clicks on a link in Rad Grid.

if

(e.CommandName.Equals("Reset"))

{

ScriptManager

.RegisterStartupScript(Page, typeof(Page), "RadAlert",

"Sys.Application.add_load(function(){radalert(' password reset');});", true);

}
This alert is working; but
The alert is now stuck in the response scripts and will be shown every time the ajax panel reloaded. Is there a way to clear it once it has been shown?
Georgi Tunev
Telerik team
 answered on 17 Sep 2008
3 answers
177 views
Can we have multiple context menus for a tree and open the relevant one based on the attributes of a node?

Thanks for your help
Som
Som
Top achievements
Rank 1
 answered on 17 Sep 2008
1 answer
131 views

Hello,

I have developed a departmental scheduler  in a user control and I’d like to implement it with telerik RAD Scheduler.

In beginning I have two doubts:

Is it possible to avoid the standard rad scheduler input form using, for example, FormCreating server side event and cancelling it to load a user control? The user control will load in other point of the page as a div or a placeholder control.

The second question is if is possible to add any kind of buttons to appointmens and chatch it click for example to Accept an invoice from the schedule without having to open the form? If is not possible to add button at least to add images (icons) according to any appointment attribute?

The first condition is essential for my implementation, so if it’s possible, I will analyze the changes implications.

Thanks a lot,

 

Marcelo Balbuena

Director de proyectos de gestión.

Hermes – Ingeniería

On Move Soluciones

Valencia - España

T. Tsonev
Telerik team
 answered on 17 Sep 2008
3 answers
115 views
To whom it may concern,

I am currently using the radcombobox where if no value has been selected, i change all radcomboxitems backcolor to yellow.  However, when i hover over the yellow radcombox item the "hover" effect does not highlight the item in question?  Is there something I have to set to ensure the highlight works with a different background color?

Thank you
Eric
Yana
Telerik team
 answered on 17 Sep 2008
7 answers
196 views
Having trouble getting the skin "Gray" or "Telerik" to work.  It is appearing as all white.  Note, I installed the hotfix into my application by overwritting the dlls.  Any ideas?

I tried in the .ascx and in the code file...SampleDock.Skin = "Gray"
Martin
Telerik team
 answered on 17 Sep 2008
1 answer
68 views
I have implemented the rad scheduler in my CRM where users log activity that have with our clients. Entities logged are

Calls
Meetings
Tasks
Training
Demonstrations

The usage of the sceduler is as much a record of what contact there has been with a client as it is a device for setting new appointments. For example if a client calls in to one of our support staff they will record details of that call. Obviously this is done when the call is completed.

I'd post you a screen shot of what I have to clarify my request but can't seem to find a way of doing that so I'll describe. On each 'appointment' on the scheduler I have a little icon to denote what type of activity the entry represents ie a little telephone for a call. This way a user can easily scan over a week's activity to see what calls have been taken with a client. However a call is often just a matter of minutes and will not have a duration like a training session might have. A user does ot want to have to enter an end time for a call just when it was taken. However if the start and end time of an 'Appointment; are the same or close the week view struggles to find a way of displaying this. I have two call that were taken at 10:00 and 10:03 and the "depth" of space allocated to the call is half and hour on the scheduler and all that gets displayed in this space is the little telephone icon and no details. Is there any way I can improve this display such as at least specifing a default depth  for the call?

Thanks

Gary

T. Tsonev
Telerik team
 answered on 17 Sep 2008
3 answers
151 views
I created a dll with all of my custom skins as per http://www.telerik.com/help/aspnet-ajax/radstylesheetmanager.html.  If i reference all of the embedded skins in the StyleSheetManager on my master page, will it load every skin even if the content page doesn't need it?

Thanks in advance
Peter
Telerik team
 answered on 17 Sep 2008
1 answer
252 views
Hi,

Currently using the export CSV functionality. However need to import CSV's as well. Is there a work around using the radgrid, and then writing to the database? I'm using linq and sqlserver.

Thanks
Daniel
Telerik team
 answered on 17 Sep 2008
1 answer
144 views
I'm trying to use a loading panel but when I drag it onto the design surface I get a broken image icon (red-x) and the load panel does not display in response to ajax calls.  I increased the minium display time to 1000 but I still don't see it on the page. 

I know the loadpanel image may not show up properly in the design surface, but in the training videos I see an image placeholder with the ALT text (Loading...), not a broken image icon  like I have.

Thanks for the help
Mark
Daniel
Telerik team
 answered on 17 Sep 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?