Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
Hello,
how can i manipulate the visual appereane from the dragged nodes in the TreeView? In the GridView all dragged items have a blue background for example while dragging. In the TreeView the background of the dragged items is only transparent. How can i set the background of dragged nodes while dragging in the TreeView?

with best regards
Meik Napierski
Dimitar Milushev
Telerik team
 answered on 23 Apr 2010
3 answers
214 views
Hello,

I'm trying to maintain the state of my RadTreeView in my master page as i navigate from content page to content page.  I have everything working except for the face that when I collapse my nodes and switch pages they open back up when I change content pages.  I know its because I'm using clientside for my TreeNodeExpandMode, but if I switch it to ServerSideCallBack once the post back is completed even though the nodes say Expanded="True" I get a '+' sign and it loads on demand again. I just have two hyperlinks on my page that switch from Page1.aspx and Page2.aspx.  Page1/2.aspx both use Site1.Master as their master page.   Any suggestions would be great!  Thank you.  

Here is my master page code:

public partial class Site1 : System.Web.UI.MasterPage 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!Page.IsPostBack && String.IsNullOrEmpty((string)Session["treeViewState"])) 
            { 
                LoadRootNodes(); 
                Session["treeViewState"] = RadTreeView1.GetXml(); 
            } 
            else if (!String.IsNullOrEmpty((string)Session["treeViewState"])) 
            { 
                this.RadTreeView1.LoadXml((string)Session["treeViewState"]); 
            } 
        } 
 
        private void LoadRootNodes() 
        { 
            for (int i = 0; i < 5; i++) 
            { 
                this.RadTreeView1.Nodes.Add(new RadTreeNode() 
                { 
                    Text = String.Format("Root: {0}", i.ToString()), 
                    Value = i.ToString(), 
                    ExpandMode = TreeNodeExpandMode.ServerSideCallBack 
                }); 
            } 
        } 
 
        private void AddChildNodes(RadTreeNode node) 
        { 
            for (int i = 0; i < 3; i++) 
            { 
                node.Nodes.Add(new RadTreeNode() 
                { 
                    Text = String.Format("{0}{1}",node.Level.ToString(), i.ToString()), 
                    Value = String.Format("{0}{1}",node.Level.ToString(), i.ToString()), 
                    ExpandMode = TreeNodeExpandMode.ServerSideCallBack 
                }); 
            } 
        } 
 
        protected void RadTreeView1_NodeExpand(object sender, RadTreeNodeEventArgs e) 
        { 
            AddChildNodes(e.Node); 
 
            string treeViewState = (string)Session["treeViewState"]; 
            RadTreeView cachedTreeView = new RadTreeView(); 
            cachedTreeView.LoadXmlString(treeViewState); 
            RadTreeNode cachedNodeClicked = cachedTreeView.FindNodeByValue(e.Node.Value); 
             
            AddChildNodes(cachedNodeClicked); 
            cachedNodeClicked.ExpandMode = TreeNodeExpandMode.ClientSide; 
            cachedNodeClicked.Expanded = true
 
            Session["treeViewState"] = cachedTreeView.GetXml(); 
        } 
    } 

T. Tsonev
Telerik team
 answered on 23 Apr 2010
2 answers
135 views
I have a couple of labels in the commanditemtemplate that I need to set during the page load event. Is this possible to do on the server side with VB.net code?
Thank you for your help.
Chris
Chris LaFrancis
Top achievements
Rank 1
 answered on 23 Apr 2010
1 answer
69 views
Hi,
We would like to allow our calendar (powered by RadScheduler) users to subscribe to the same calendar using their iPhones. What will it take to accomplish this? Has anyone done something similar to this for the iPhone before? Any input will be greatly appreciated.

Han
T. Tsonev
Telerik team
 answered on 23 Apr 2010
5 answers
145 views
I am curious as to how the DataRecurrenceParentKeyField is set in the advanced template example <here>. I am trying to replicate the example but am having a hard time figuring out how the parent key field gets set seeing as I keep getting an exception when trying to delete one ocurrence of a recurring event for example. Is there something perhaps I am missing, could someone help point me in the right direction?

Thanks
T. Tsonev
Telerik team
 answered on 23 Apr 2010
2 answers
102 views
Hello,
I know how to customize the Image Editor but I have another problem with it.
I added a button to the Image Editor that open a popup window using the following Javascript code:
function popWin() { 
            window.open("Directories.aspx""""width=300,height=300,location=1,status=1,scrollbars=1"); 
            return false
        } 
in the Directories.aspx page the following Javascript function:
function onNodeClicking(sender, args) 
    { 
        var node = args.get_node(); // You get the root node   
        var s = node.get_text(); // text of the root node   
        var currentObject = node.get_parent(); // here node.get_parent() returns treeview        
        while (currentObject != null) { 
 
            if (currentObject.get_parent() != null// here get_parent() will return null for treeview, thus if condition  
            //is not satisfied   
            { 
                s = currentObject.get_text() + "/" + s; // not entered    
            } 
            currentObject = currentObject.get_parent(); // returns null which takes us out of while loop   
        } 
 
        var tbPath = s; // returns the root node text   
 
        window.opener.parent.Form1['NewImageName'].value = tbPath; 
        window.close(); 
    } 
"NewImageName" is the Id of the Textbox that display the name of the new image.
this code is working but in this situation it didn't work.
I need to know how to get the NewImageName textbox.

Thank you.


Amr Saafan
Top achievements
Rank 2
 answered on 23 Apr 2010
1 answer
106 views
I would like to display the current value of the slider in it's DragText. How do I dynamically change the slider control's DragText?
Tsvetie
Telerik team
 answered on 23 Apr 2010
7 answers
250 views
I'm pretty new to Telerik controls and was wondering how I can edit a node from a context menu (instead of selecting the node twice).  For instance, when I right-click the node, I have several options from a context menu, one of which is "Edit Node".  When I select this menu item, I'd like to be able to edit the node in the tree.  How would I go about doing this?  Thanks.
Nikolay Tsenkov
Telerik team
 answered on 23 Apr 2010
1 answer
93 views
Hello everyone,
is there any way that we can create a base for the telerik grid, so that we can only give access to <columns> template?  What I meant to say is, if I have to build, say some 50 grids using same functionality but the content will be different, like what we define under <MasterTableView> template. I know visual inheritance is not possible, but I do not want to build the grid from the scratch on each page and repeat the same code in all 50 grids. Is there any work around? Any help would be greatly appreciated!!!!
Iana Tsolova
Telerik team
 answered on 23 Apr 2010
1 answer
102 views
Hello,

I´m getting crazy trying to work this out... I´m trying to build a StackedBar100 with the following data:
counter,"uf","status" 
1,"am","processo encerrado" 
1,"am","processo ativo" 
16,"rj","processo ativo" 
1,"sp","processo encerrado" 
15,"sp","processo ativo" 
 


I getting this data from a datatable from my MYSQL database.

Can anybody give me some help?

Thanks,

Rod

Ves
Telerik team
 answered on 23 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?