Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
220 views
Hi All,

I am using Telerik Rad Grid for export pdf.
Q-1 : How can i add page no?
Q-2 : I have generic list and i wan to page break on new record than how can i do it?
Q-3 : How can i give file name for PDF and Excel?
Q-4: How can i give page title for Exporting Excel?
Q-5 How can change font size, font style in export to pdf?

Thanks in advance if anyone can help me.

Rajesh.
Bruno
Top achievements
Rank 2
 answered on 15 Oct 2009
1 answer
206 views
I have a PopUp editform within a <FormTemplate />.  The form has a DropDownList that can be manipulated at runtime by Javascript. 
Since its hidden by FormTemplate, is there any way to access it so that I can disable EventValidation?

Here's what I have:

       protected override void Render(System.Web.UI.HtmlTextWriter writer)  
        {  
            Page.ClientScript.RegisterForEventValidation(((DropDownList)((GridDataItem)RadGrid1.EditItems[0]).EditFormItem.FindControl("ddlCategory")).UniqueID);  
            base.Render(writer);  
        } 
Rosen
Telerik team
 answered on 15 Oct 2009
3 answers
114 views
Is it possible to prevent a window from being shown until after the content is loaded and after I set the height and width?  The problem I am having is with respect to dynamic content. So...  width=300, height=300 might work in some case but only a few. I want to eliminate the flicker of resizing the window. 

I have tried using the AutoSize feature and after find it does not suit my need.  AutoSize will also randomly resize the window to something smaller than the content.  I also do not want the animation that comes with the AutoSize feature.

Georgi Tunev
Telerik team
 answered on 15 Oct 2009
2 answers
106 views
Can anyone tell me which version of the RadGrid was the first to introduce the Export To PDF function?  We have several products on different releases and I need to document which ones will support PDF.

Thanks,
Brian
Bruno
Top achievements
Rank 2
 answered on 15 Oct 2009
0 answers
106 views
Hello, I was hoping someone could help me with this.

I've just recently started working on RadScheduler and I wasn't quite able to configure it the way I wanted.
I already managed to connect it to my database, which was no problems at all.
Here's a few steps on what I'm trying to achieve:

1. One or more resources needs to be displayed at the same time for each day, each resource have their own appointments.
2. Each resource have a certain time range that they can get appointments within.
3. This area where it's possible to have appointments, I would like to have the background on those cells in a different color. So as to mark which time range appointments are allowed to be in.
4. Only one appointment per resource per time is allowed. I'd like this to be checked on server-side.
5. Appointments are allowed to be moved from one resource to another.

A few examples of what I'm trying to achieve to help understand:

Resource A and Resource B are working on day x.
Resource A has his time range between 08:00 to 12:00
Resource B has his time range between 10:00 to 15:00
On the column for Resource A, the cells between 08:00-12:00 needs to have a different background color (green for example).
On the column for Resource B, the cells between 10:00-15:00 needs to have a different background color (green for example).
Resource A have an appointment(1) on between 09:00 and 10:00.
Resource B have an appointment(2) on between 10:00 and 11:00.
1 is allowed to be moved to Resource B to 11:00-12:00.
1 is not allowed to be moved to Resource B within 10:00-11:00.
1 is not allowed to be moved to Resource B at 08:00-09:00 (because of the time range)

I hope I was clear enough, please ask any questions if needed. Oh and I'm working with C#.

Thanks in advance,
Cristoffer
Patrik Holmberg
Top achievements
Rank 1
 asked on 15 Oct 2009
4 answers
126 views
Hi,
Can i clear all filter using client side API.
I am using get_filterExpressions().clear();
bu i also want to clear values in inputs.

Thank you in advance.
Oleg Medyanik
Top achievements
Rank 1
 answered on 15 Oct 2009
2 answers
112 views
Hi

I dont know if it is possible, but we are trying to use the Ajax $Find method to find a RadGrid that has been created in the code behind.  Below is how we create the Rad Grid:

Protected WithEvents grdTypes As New RadGrid  
 
Protected Sub Page_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Init  
 
    With grdTypes  
          .ID = "grdTypes" 
          .AllowSorting = True 
          .DataSourceID = "SqlDataSource" 
          .AllowAutomaticDeletes = True 
          .AllowAutomaticInserts = True 
          .AllowAutomaticUpdates = True 
          .ClientSettings.ClientEvents.OnRowSelected = "SelectRow()"
          'ETC  
 
    End With 
 
End Sub 

Following the example in the demos for detecting a row selection, we then have the following code in javascript:

<script language="javascript" type="text/javascript">  
     
    function SelectRow(sender, eventArgs) {  
        var grid = $find("<%=grdTypes.ClientID %>");  
    }  
 
</script> 

Everything appears to be hooked up correctly, and the grid's Client ID is being translated to the correct name (i.e. ctl00_ContentPlaceHolder1_grdTypes), however the "grid" variable always appears to be NULL which means that we are unable to check the selected items count.

Any help would be very welcome.

Paul






Paul Mc
Top achievements
Rank 1
 answered on 15 Oct 2009
1 answer
104 views
Is there an optimization technique to improve the performance of rad window?
Very often that it is very hard to drag.

Please share.

Thanks
Georgi Tunev
Telerik team
 answered on 15 Oct 2009
2 answers
119 views
I am working in a project,I have used the RadUpload,the code of upload file in my project is follow:

protected void Submit_Click(object sender, EventArgs e)  
    {  
        if (RadUpload1.UploadedFiles.Count > 0)  
        {  
            System.Threading.Thread.Sleep(3000);  
            try 
            {  
                string targetFolder = Server.MapPath(@"UpLoadFile\Project");  
                string targetFileName = string.Empty;  
                foreach (UploadedFile files in RadUpload1.UploadedFiles)  
                {  
                    int counter = 1;  
                    string fileName = files.GetName();  
                    string fileName1 = files.GetNameWithoutExtension() + counter.ToString() + files.GetExtension();  
                    targetFileName = System.IO.Path.Combine(targetFolder, fileName);  
                    while (System.IO.File.Exists(targetFileName))  
                    {  
                        targetFileName = System.IO.Path.Combine(targetFolder, fileName1);  
                        fileName = fileName1;  
                        counter++;  
                    }  
                    files.SaveAs(targetFileName);  
                      
                    //here,I insert the file info into DB;                      
                }  
            }  
            catch (Exception ex)  
            {  
                throw ex;  
            }  
       }  
    }  
 

First,I upload a file "test.txt" into server, then I upload the file "test.txt" second times, in server it's name is renamed as "test1.txt",this project works well, but when I upload the file "test.txt" third times , the RadProgressArea's Elapsed time and Speed run all the time, the radupload can not upload this file, I try this action several times ,but can not work well too.
I think my code where rename the upload file can not work well,but it seems that my code is correct.
What can I do in this situation?
Are there any settings about RadUpload to solve my question?

Thanks
Hu Tao
hu tao
Top achievements
Rank 1
 answered on 15 Oct 2009
7 answers
217 views
For some reason I cant get custom skin to work.
I added a link tag to the page pointing to customized skin file.
I set the EnableEmbeddedBaseStylesheet to false.
I set the skin name to Outlook.
But the control continues to use embedded skin. What am I doing wrong?

Thank you for you help.

See sample below:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Untitled Page</title> 
    <link rel="stylesheet" type="text/css" href="Skins/Outlook/ComboBox.Outlook.css" /> 
</head> 
<body> 
    <form id="form1" runat="server"
        &nbsp;<div> 
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
            </telerik:RadScriptManager> 
        </div> 
        <telerik:RadComboBox ID="RadComboBox1" runat="server" EnableEmbeddedBaseStylesheet="False" 
            RadComboBoxImagePosition="Right" Skin="Outlook"
            <Items> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" /> 
            </Items> 
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
            <ExpandAnimation Type="OutQuart" /> 
        </telerik:RadComboBox> 
    </form> 
</body> 
</html> 
Paul
Telerik team
 answered on 15 Oct 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?