Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
695 views
Hi,

Im uploading a file using RadAsyncUpload control and I wanted to check if the image to be uploaded is really image, not just another file changed of extension name. Code below:

The error is triggered on the .SaveAs() function

            String fileExt = rfile_image.UploadedFiles[0].FileName.Substring(rfile_image.UploadedFiles[0].FileName.LastIndexOf('.') + 1).ToUpper();
            byte[] tmp = imageHeader[fileExt];
            byte[] header = new byte[tmp.Length];
            rfile_image.UploadedFiles[0].InputStream.Read(header, 0, header.Length);
            
            if (!CompareArray(tmp, header))
            {
                //invalid content type
                rfile_image.Dispose();
                rfile_image.UploadedFiles[0].InputStream.Close();
                rfile_image.UploadedFiles[0].InputStream.Dispose();
                
                returnError("Filename Invalid");
            }
            else
            {
                //valid content type, continue with saving
                fileUrl = "C:\\data\\" + fileWithPath;                
              
                rfile_image.UploadedFiles[0].SaveAs(fileUrl,true);
    }
Shinu
Top achievements
Rank 2
 answered on 23 Dec 2013
1 answer
82 views
Hi,
How to set column width for autogenerated column?
Princy
Top achievements
Rank 2
 answered on 23 Dec 2013
3 answers
149 views
I have an Pie Chart looking like this one.
Is it possible on mouse hover to show me the real number and in the fixed labels to show me the percentage? Because I try some ways but doesn't work. I tried with the {N} for fixed and {P} for percentage but is not good this solution. 
Stanimir
Telerik team
 answered on 23 Dec 2013
1 answer
66 views
Hi,
im having grouping enabled on my radgrid. I want to format the totals like make bold etc.how to achieve it
Shinu
Top achievements
Rank 2
 answered on 23 Dec 2013
1 answer
90 views
hello I need to enable / disable some months in RadMonthYearPicker .. is it possible? not know where to start

thank you very much
Eyup
Telerik team
 answered on 23 Dec 2013
2 answers
80 views

I have a radtextbox which is used to enter text which is then laid out on a pdf form. The pdf form is multiline, limited to 55 characters per line.


Is there a way I can tell the radtextbox to automatically wrap at 55 characters, so what people see on the screen is more indicative of what will appear in the pdf form?





I've fiddled with hard-coding the width parameter, but this doesn't seem to work well, because people have different font sizes specified via control panel, and the control renders with different default fonts in various browsers. Unfortunately I didn't see a "WrapAt" property I could set to 55 :)



ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
 answered on 23 Dec 2013
4 answers
281 views
Hi telerik admins

our button background colors do not display correctly in some browsers. How can I solve this problem?

Chrome (http://prntscr.com/2bkbm4) = the most accurate and best display


-----------------------------------------------------
On Firefox and Internet Explorer latest version

Normal: http://prntscr.com/2bkcju
Mouse hover: http://prntscr.com/2bkcqb

This code: 

<telerik:RadButton CssClass="blur" ID="RadButtonSil" runat="server" Text="sil" OnClientClicking="RadConfirm" OnClick="RadButtonSil_Click" Height="40px" BackColor="#A52645" BorderColor="#A52645" Font-Size="15px" ForeColor="White">
    <Icon PrimaryIconUrl="/img/buton-sil.png" PrimaryIconTop="12px" PrimaryIconLeft="12" PrimaryIconHeight="18px" PrimaryIconWidth="18" />
</telerik:RadButton>
-----------------------------------------------------

chrome and opera are working correctly.
Shinu
Top achievements
Rank 2
 answered on 23 Dec 2013
1 answer
80 views
 I have Appointments with multiple resources. So how to display appointment with no resource asigned in group view ?
Plamen
Telerik team
 answered on 23 Dec 2013
1 answer
33 views
hi I created radbutton as radio button in one user control, when i deployed the solution radbutton is moving out of content, and also scroll bar got enabled for raddock zone. I dont need scroll bar for this Zone , radio button should place inside to my raddock content and Scroll bar should display only for Content not for Zone. I am using ASP .NET MVP pattern and internet explorer 8. I tried using postion absolute for radbuttons there also it is going out. Please help me on this.
Ianko
Telerik team
 answered on 23 Dec 2013
8 answers
200 views
Hello,

Is there is a way to communicate with Microsoft Exchange Server by using RadScheduler's ExchangeSchedulerProvider without using web services?

Could you please provide more examples of using ExchangeSchedulerProvider beside what you have on your demo site?

Thank you very much
Plamen
Telerik team
 answered on 23 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?