only My site
Showing posts with label Telerik. Show all posts
Showing posts with label Telerik. Show all posts

Friday, August 24, 2012

Tekerik RADTreeView - Tips

1. Clone()
There is a clone() method for node object. This is very useful to reuse a hierarchical tree structure node in different Telerik tree view controls. We cannot add a node to multiple tree view control without cloning a copy of the node.

Example : 

RadTreeNode objNewNode = new RadTreeNode();
objNewNode  = objOldTreeNode.Clone(); 

TreeViewOld.Nodes.Add( objOldNode);
TreeViewNew.Nodes.Add( objNewNode);

2. LoadXMLString()
We can load the tree view with nodes using the XML string value. The XML should be well structured and hierarchical order.

objNewTree.LoadXmlString(strXml);

RadAsyncUpload - RadAsyncUpload does not have permission to write files in the TemporaryFolder

Today I deployed a aspx page (with telerik:RadAsyncUpload) control in a new environment and come up with the following error

Error :

"RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path.   at Telerik.Web.UI.RadAsyncUpload.TestTemporaryFolderPermissions() "

Cause :

The logged in user don't have Write permission for the temporary folder.

Resolution :

The resolution for the issue is need to give Authenticated_Users account write permission for the TemporaryFolder. The temporary folder is by default located in ApplicationRootPath.com80\App_Data\RadUploadTemp. You may also give everyone account also, but it is not advisable.

In addition we can also specify a custom path for the TemporaryFolder. The following is the code for the same

<telerik:RadAsyncUpload TemporaryFolder="c:\windows\temp"

Again we need to give the appropriate permissions to the "c:\windows\temp" folder as mentioned above.