Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
88 views
I have installed / deployed the RAD Editor Lite to my sharepoint site and enabled it as a feature on a sub-site (I did this as the site collection administrator). The standard toolbar is now replaced with the Telerik version. All good so far!

I have been able to upload and add images to both normal list items and wiki pages (I created a picture library for the list item to populate). Having uploaded an image and added it to a page/list item, I am now trying to create a thumbnail.

Firstly, is the thumbnail just a smaller version of the image, or is it a thumbnail that when clicked pops up the larger version of the image?

Secondly, when I right-click an image and choose "set image properties", the "Create Thumbnail" tab is not available (it's greyed out). Am I doing something wrong?

Help on this feature would be most appreciated - perhaps I have missed the point, but I can't find any detailed help :(

Thanks,
Alex
Stanimir
Telerik team
 answered on 04 Dec 2009
1 answer
153 views
Hey Telerik!

The Version of the Telerik.Web.UI.dll I use is: 2008.03.1314.20

I am selecting a TreeNode like so:

function OpenTreeToSpecificNodeRecursion() {  
            var tree = $find('<%= rpbOperational.Items[0].Items[0].FindControl("rtGeographic").ClientID %>');  
            if (aIds2Node.length == 0) {  
                return;  
            }  
            if (tree.findNodeByValue(aIds2Node[0]) != null) {  
                nodeTree = tree.findNodeByValue(aIds2Node.shift());  
 
                if (aIds2Node.length == 0) {  
                    tree.unselectAllNodes();  
                    nodeTree.select();  
                    window.setTimeout(function() { nodeTree.scrollIntoView(); }, 400);  
                    return;  
                }  
                nodeTree.expand();  
            }  
            window.setTimeout("OpenTreeToSpecificNodeRecursion()", 10);  
        } 

If I put an alert(nodeTree.scrollIntoView()) in front of the functioncall the browser tells me "undefined" meaning the function is not defined. Any clue why this should happen?

I realize the tree scrolls and selects the node at the same time, but it should be able to utilize the scrollIntoView() function as this method is called on the Timeout and therefore later?

Thanks for any advice on this. Sincerely, Peter.
Yana
Telerik team
 answered on 04 Dec 2009
2 answers
97 views

Hello

I use RadGrid with

 

<

 

telerik:GridDateTimeColumn DataField="DT_REPORT"

 

 

HeaderText="Data Report" PickerType="DatePicker"

 

 

DataFormatString="{0:d}" EmptyDataText="30/09/2009" >

 

 

 

 

 

<FooterStyle Width="85" />

 

 

 

 

 

<HeaderStyle Width="85" />

 

 

 

 

 

<ItemStyle Width="85" />

 

 

 

 

 

</telerik:GridDateTimeColumn>

 

 

 

 

<

 

telerik:GridDateTimeColumn DataField="DT_INIZIO"

 

 

HeaderText="Data Inizio" PickerType="DatePicker" DataFormatString="{0:d}">

 

 

 

 

 

<FooterStyle Width="85" />

 

 

 

 

 

<HeaderStyle Width="85" />

 

 

 

 

 

<ItemStyle Width="85" />

 

 

 

 

 

</telerik:GridDateTimeColumn>

 

 

The issue is when I'm in edit mode, after pressing the first GridDateTimeColumn , the second one became in block state (calendar menu does't apper)

Can you explain this for me ?

There is also one of yours example and there is the same problem.

Is that a bug?

Thanks,
Silvia

SIlvia
Top achievements
Rank 1
 answered on 04 Dec 2009
4 answers
128 views
Hello

I use RadGrid with

<telerik:GridDateTimeColumn DataField="DateFrom" HeaderText="d_from" PickerType="DatePicker"  UniqueName="d_from" DataFormatString="{0:MM/dd/yyyy}">
</telerik:GridDateTimeColumn>

<telerik:GridDateTimeColumn DataField="DateTo" HeaderText="d_to" PickerType="DatePicker"  UniqueName="d_to" DataFormatString="{0:MM/dd/yyyy}">
</telerik:GridDateTimeColumn>

The issue is when I'm in edit mode, after pressing the first GridDateTimeColumn , the second one became in block state (calendar menu does't apper)

Can you explain this for me ?

SIlvia
Top achievements
Rank 1
 answered on 04 Dec 2009
7 answers
332 views
hello telerik,

I am having problem with RadAjaxLoadingPanel control. Let me just give you a brief what is the scenario.
I have used master page/content page. I have got radChart control in content page and RadAjaxPanel and RadAjaxLoadingPanel Control. In Master Page, I have used timer control from AJAX. And I have used simple ajax update panel in it NOT TELERIK. Because, timer doesn't function properly using Telerik Ajax Panel. On Content page, my Stored proc for radchart binding is very huge as it takes a bit of time binding radcharts dynamically. I have also put radcombo for selection of input. On that selection, I wanted to show loading panel of telerik during that time, Radchart is created dynamically on content page. Now due to the flow, on combo selection on content page, goes to the master page, the code lies in here, executes. which is fine and loading panel is working absolutely fine upto here. But when flow goes to Timer's Tick event, the loading panel on content page doesn't show. This what the problem is for me. I wanted to show loading panel even if the flow goes to Master Page's Timer Tick event, loading panel should show. Please help me out in this,

Please suggest if use of RadAjaxPanel control on master page is needed and how can I use it. Please do something, it means very important to me. Your quick solution is required on this.

Regards,
Sunny
Iana Tsolova
Telerik team
 answered on 04 Dec 2009
1 answer
129 views
Hi, this is my first post and i9'm not sure yet if this will help.
I just need an information why the grid control style is different in IE8 than FIREFOX 3. Is not a bug, but is the border problem is really annoying.

This is the code for Grid-Columns:

<Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" HeaderStyle-Width="30" />
                            <telerik:GridBoundColumn DataField="CustomerID" SortExpression="CustomerID" UniqueName="CustomerID" HeaderStyle-Width="110" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="left" HeaderText="Customer ID" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" FilterControlWidth="75px" HtmlEncode="true"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="CustomerFullName" SortExpression="CustomerFullName" HeaderStyle-Width="150" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="left" HeaderText="Customer Name" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" FilterControlWidth="100px" HtmlEncode="true">
                                <HeaderStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="PracticeName" HeaderStyle-Width="150" HeaderText="Practice Name" Resizable="true" ItemStyle-HorizontalAlign="Left" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" FilterControlWidth="100px" HtmlEncode="true"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="OfficePhone" HeaderStyle-Width="110" HeaderText="Office Phone" Resizable="false" ItemStyle-HorizontalAlign="Left" FilterControlWidth="60px"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Email" HeaderStyle-Width="150" AllowFiltering="false" HeaderText="Email" Resizable="true" ItemStyle-HorizontalAlign="Left" HtmlEncode="true"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Address" HeaderText="Address" AllowFiltering="false" ItemStyle-HorizontalAlign="Left" HtmlEncode="true"></telerik:GridBoundColumn>
                            <telerik:GridButtonColumn ConfirmText="Delete this Customer ?" ConfirmDialogType="RadWindow" HeaderStyle-Width="30" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                                <ItemStyle HorizontalAlign="Center" CssClass="MyImageDelete" />
                            </telerik:GridButtonColumn>
                        </Columns>
Dimo
Telerik team
 answered on 04 Dec 2009
3 answers
165 views
Hi there,
I am new to the telerik controls and am testing the demo out at present. I would like some help if possible regarding the treeview control.

I am still undecided if i should purchase the asp.net control package or if i should just use the ones you get with asp.net ajax. These look promising though :)

Basically i would like to allow a user to select one of the nodes, which will in turn allow them to edit a page. Could someone give me some guidance on how to do this please? 

It's kind of similar to how umbraco allow users to edit pages. The page will load in a separate part of the page, depending on which node has been selected.

Hope i have explained it ok lol :)

Regards,
Alan
Veselin Vasilev
Telerik team
 answered on 04 Dec 2009
4 answers
317 views
Hi,

I am trying to send extra information about a resource with the resource in the webservice call "GetResources". I need the information for colouring depending on certain properties of the resource.

To do this, I add the attributes to the resource in the webservice. The resources are bound serverside, the rest of the information for the scheduler is bound clientside. The information colours cells based on the date and resource (to indicate when a resource is working or not), so I need to access the information clientside, i.e. in javascript. But when I get the resource from a timeslot, or all resources of the scheduler in javascript, none of them have any attributes, while they should have at least one (I call resource.Attributes.Add("test", "testing"); on every resource in my webservice).

Am I missing something, or is it impossible to get these attributes on the clientside? I know the same trick works with appointments. I add loads of different attributes to them serverside (in the webservice method) and I can access them without any problems clientside.
T. Tsonev
Telerik team
 answered on 04 Dec 2009
1 answer
449 views
Hi Fiko/Telerik Guys,

This is my mail in response to the FIKO's mail that I have received a quite a day ago.

Wat I want to do here is that :- I want to REFRESH the RADFILE EXPLORER whenever I delete the folder from my TREEVIEW CONTEXT MENU.

Below is the code snipttet that I have been using in my PROJECT :-

The below mentioned code is in CustomFileSystemProvider.cs class in App_Code folder.

 public override string DeleteDirectory(string virtualTargetPath)  
    {  
        string physicalTargetPath;  
        physicalTargetPath = this.GetPhysicalFromVirtualPath(virtualTargetPath);  
        if (physicalTargetPath == null)  
            return "The virtual path :" + virtualTargetPath + " cannot be converted to a physical path";  
 
        //if (!HasDeletePermission(physicalTargetPath))  
        //{  
        //    string error = "You do not have delete permissions set to the '" + virtualTargetPath + "' folder";  
        //    return error;  
        //}  
        //================Checking for the Delete permission for Source Folder as on 14th November 2009=========================  
        if (!Dms_CheckFolderPermissions.GetAccessList(virtualTargetPath.TrimEnd('/')).Contains("F"))  
        {  
            string error = "You do not have delete permissions set to the '" + virtualTargetPath + "' folder";  
            return error;  
        }  
        //=======================================================================================================================  
 
        // There is not permission issue with the FileExplorer's permissions ==> Delete can be performed  
        // but there can be some FileSystems' error   
        string errorMessage = FileSystem.DeleteDirectory(physicalTargetPath, virtualTargetPath);  
        return errorMessage;  
 
            
    } 


Similary, the below mentioned code exist in the file named : FileSystem.cs Class

  public static string DeleteDirectory(string physicalTargetPath, string virtualTargetPath)  
    {  
        try  
        {  
 
            string NewFolder_Name = "";  
            string FolderName = "";  
            string FolderPath = "";  
 
 
            physicalTargetPathphysicalTargetPath = physicalTargetPath.TrimEnd("\\".ToCharArray());  
            FolderName = physicalTargetPath.Substring(physicalTargetPath.LastIndexOf("\\") + 1);  
            if (physicalTargetPath.Contains("SharedDocuments"))  
            {  
                FolderPath = physicalTargetPath.Substring(physicalTargetPath.IndexOf("SharedDocuments"));  
                NewFolder_Name = FolderPath.Replace("\\", "#") + "-" + DateTime.Now.Month.ToString() + "-" + DateTime.Now.Day.ToString() + "-" + DateTime.Now.Year.ToString() + "-" + DateTime.Now.Hour.ToString() + "-" + DateTime.Now.Minute.ToString() + "-" + DateTime.Now.Second.ToString() + "-" + HttpContext.Current.Session["UserID"].ToString();  
            }  
 
 
            if (physicalTargetPath.Contains("SharedDocuments"))  
            {  
                Directory.Move(physicalTargetPath, physicalTargetPath.Substring(0, physicalTargetPath.IndexOf("SharedDocuments")) + "DeletedDocuments\\" + NewFolder_Name);  
            }  
            else  
            {  
                Directory.Delete(physicalTargetPath, true);// physicalTargetPath.Substring(0, physicalTargetPath.IndexOf("FTPDocuments")) + "DeletedDocuments\\" + NewFolder_Name);  
            }  
 
 
            if (physicalTargetPath.Contains("SharedDocuments"))  
            {  
                Glb_Entities.ExecuteSP(new object[] {"Usp_Dms_DeleteFolder"   
                            ,"Folder_Name", FolderName  
                            ,"NewFolder_Name", NewFolder_Name  
                            ,"Folder_Path", FolderPath.Substring(FolderPath.IndexOf("SharedDocuments")).TrimEnd(FolderName.ToCharArray()).Replace("\\","/").TrimEnd("/".ToCharArray())  
                            ,"Folder_DeletedBy", HttpContext.Current.Session["UserID"].ToString()  
                            });  
 
            }  
 
        }  
        catch (DirectoryNotFoundException)  
        {  
            string message = "FileSystem's restriction: Directory with name '" + virtualTargetPath + "' is not found!";  
            return message;  
        }  
        catch (UnauthorizedAccessException)  
        {  
            string message = "FileSystem's restriction: You do not have enough permissions for this operation!";  
            return message;  
        }  
        catch (IOException)  
        {  
            string message = "FileSystem's restriction: The directory '" + virtualTargetPath + "' cannot be deleted!";  
            return message;  
        }  
 
        return "Directory Deleted Successfully";  
    } 


Both the above mentioned METHOS are running fine & Iam able to get the successful message as "FILE DELETED SUCCESSFULLY"

But after I got this message RADFILE EXPLORER does not gets REFERESHED ??

How can I REFRESH the RADFILE EXPLORER ?

After both the METHODS gets executed, the break point cursor moves on to the PAGE LOAD event of the page where I have placed my RADFILE EXPLORER .
It can be shown as below :--

  protected void Page_Load(object sender, EventArgs e)  
    {  
        try  
        {  
            if (Session["UserID"] == null)  
            {  
                Session.Clear();  
                Response.Redirect("~/ExpiredMessage.aspx", false);  
            }  
 
            RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "PopForReport", "function newWindow(url) { var popupWindow = window.open(url,'popUpWindow','height=700,width=600,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no, location=no,directories=no, status=yes'); return false; }", true);  
            RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "ErrorHandler", "function handlerFunction(description,page,line) {return true;} window.onerror = handlerFunction;", true);  
 
            RadScriptManager.RegisterClientScriptInclude(Page, Page.GetType(), "pasword_encrypt", "script/encode.js");  
        }  
        catch (Exception exLoad)  
        {  
            StackTrace stackError = new StackTrace(new StackFrame(true));  
            BLLError.SetErrorProperties(exLoad.Message, stackError, short.Parse(Session["UserID"].ToString()));  
        }  
 
        GetMappedPath GMP = new GetMappedPath();  
 
        Dictionary<string, string> mappedPathsInConfigFile = GMP.GetMappingsFromConfigFile();  
 
        string DocumentPath = "";  
        foreach (KeyValuePair<string, string> mappedPath in mappedPathsInConfigFile)  
        {  
            DocumentPath = mappedPath.Value.Replace("/", "\\");  
            break;  
        }  
 
        string VirtualPath = Request["__EVENTARGUMENT"];  
        string EventTarget = Request["__EVENTTARGET"];  
        if (EventTarget == "Archive")  
        {  
            if (VirtualPath.LastIndexOf("/") + 1 == VirtualPath.Length)  
            {  
                Archive(VirtualPath, "Folder", DocumentPath);  
            }  
            else  
            {  
                Archive(VirtualPath, "File", DocumentPath);  
            }  
 
        }  
 
        string[] viewPaths = new string[] { DocumentPath };  
        string[] uploadPaths = new string[] { DocumentPath };  
        string[] deletePaths = new string[] { DocumentPath };  
 
        DocumentsRadFileExplorer.Configuration.ContentProviderTypeName = typeof(CustomFileSystemProvider).AssemblyQualifiedName;  
 
        SetAccordToPermissions(viewPaths, uploadPaths, deletePaths);  
        if (!IsPostBack)  
        {  
            AddCreatedAndModifiedDate();  
        }  
 
        
        
    } 

I exactly dont know where I have been MISSING/LACKING to put my REFRESH code ???

Even if I can refresh the whole page that would be great ......... But hw ??



Let me show you an example :-

In the ATTACHED PIC , I have delete the highliglted folder (Sleepless in Seatlle) & it has been successfully deleted as shown in the message but it still exists in the TREE CONTEXT MENU.

Could you please tell how to handle it ???

Please help help help ??
 
Ajay Jamwal


Fiko
Telerik team
 answered on 04 Dec 2009
2 answers
137 views
hi.

i want to know if there is any methods to change my default header text value during my itemcreated events?.

regards
webster
Webster Velasco
Top achievements
Rank 2
 answered on 04 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?