Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
319 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
123 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
159 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
301 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
434 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=nolocation=no,directories=nostatus=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
129 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
1 answer
147 views
We have been assigned the task of supporting a large web based application that was written by a third party using Telerik controls.

One of the controls that is has heavy usage is RadTextBoxWithCharCount.  I can't seem to find any reference to this on the Telerik site.  Is this a Telerik control or one that was added to the system by the developer?

Cliff
Radoslav
Telerik team
 answered on 04 Dec 2009
1 answer
71 views
Hi,

I override FileBrowserContentProvider's methods for customizing ImageProvider. The imagemanger works good when insert the image to Editor. But whole the imagemanager was disabled after i upload an image. Please see the attachment.

Just 3 functions ResolveDirectory, ResolveRootDirectoryAsTree, StoreFile were overrided

Thanks,
Thuc








Fiko
Telerik team
 answered on 04 Dec 2009
1 answer
109 views
On all of the grids in our application, we support filtering.  Filtering works as expected except when I have already filtered the grid and attempt to filter again.  The second filter returns the grid as unfiltered and the filter text disappears.  I can then filter, again, and the filter works.

Reading through this I can see that it may be difficult to understand the problem.  Let me try an example. 

Say I have a grid with two columns, ID and Name.  I apply a filter to ID of 1.  The grid filters, showing all ID's starting with 1 as expected.  I then apply a filter to ID of 2.  The full grid re-displays, unfiltered, and the filter box for ID is empty.  I can then apply the ID filter of 2 and the grid will filter as expected.
Mira
Telerik team
 answered on 04 Dec 2009
1 answer
77 views
Hi,

      I am using  telerik:RadGrid. Filter is not working after clicking on the edit button. In details, I am having 200 records and displaying in more than 10 pages in the grid. After filtering with some criteria i am getting less records based on the filter. We have option of editing the row by clicking on the edit button. After clicking on the edit button after filtering i am getting all the 200 records irrespective of the filter. Hope you can understan my problem.

     Please reply me ASAP as it is very urget for me to get rid of this.

Thanks 
Raj

   
Princy
Top achievements
Rank 2
 answered on 04 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?