Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
154 views
We are using a virus checking service that accepts the filebytes from the file upload control as a parameter. How would I access this in the ItemCommand in the looping statement?

If I can't do it, is it possible to override the default upload control and use a regular file upload component?
RadFileExplorer explorer = sender as RadFileExplorer;  
foreach (UploadedFile file in explorer.Upload.UploadedFiles)  
{  
    bool bFileIsVirusFree = Helper.IsFileVirusFree(file.FileBytes);
Jim
Top achievements
Rank 1
 answered on 02 Mar 2010
5 answers
272 views
Hi,

I have been tackling very weird symptom in my project. During post back (any post back for ex drop down post back ) , the upload progress was showing (uploading about 200Kbyte) even though there is no file selected.

capture can be seen at
http://www.billnguyen.net/uploading.jpg


Is there any clue for me to work on?

Many thanks
Yang Qu
Top achievements
Rank 1
 answered on 01 Mar 2010
4 answers
773 views
Hello,

I currently have a page setup to display a RadGrid that is populated from a DataView created from XML.  The RadGrid uses the NeedDataSource method to bind, and relies upon AutoGenerated columns, because the columns are always changing, but the performance seems off a bit.  In the ASPX page none of the columns are defined in markup, its basically blank other for some general settings.  Sorting is enabled for the RadGrid, but is not in use for initial page load.

For 25 rows of data it takes the server 5.42 seconds to process the request, but 4.45 of those seconds are dedicated to data binding.

For 500 rows of data it takes the server 35.40 seconds to process the request, but 34.96 of those seconds are dedicated to data binding.

I did the calculation for data binding by recording the time when data binding and data bound is called for the RadGrid.

My data source is created from XML, processed by our own system, and returned to the RadGrid as a DataView, and is pretty quick.  We also have a custom To Excel function which also takes about 0.5 seconds to export 500 rows, so the data source is pretty fast.

Also:  I have been looking deeper into the DataBinding by looking at the ItemDataBound method and found that this function is called on average every 0.11 seconds until data binding is complete.
Michael Fuller
Top achievements
Rank 1
 answered on 01 Mar 2010
1 answer
105 views
I have a normal webpage I'm building, and the  normal redirects caused by links on the page cause no issues, but once I use the telerik radmenu to navigate to another page, upon loading of that next page, my silverlight application that's on the master page doesn't load anymore  the error I get is 2104 Initialization error.  WHich all the google searches are trying to solve the problem for people who get the error constantly and the silverlight app never loads.

In my case, the silverlight app works fine, until I try to click on a link in the asp.net ajax menu.

What do I do?

Here is the page I'm working on so you can see the problem. 

link to site
Blasty
Top achievements
Rank 1
 answered on 01 Mar 2010
1 answer
44 views
I am in the process of converting from Classic to Prometheus and could really use to have both sets of controls available in the toolbox. I just installed Prometheus and my classic controls disappeared.

Can I have both?
Dana
Daniel
Telerik team
 answered on 01 Mar 2010
2 answers
73 views
I have a slider that contains a collection of fiscal years, and I want the right-most fiscal year to be selected by default.  I was able to accomplish this in the past by populating hte slider's items in it's Init event handler, and setting its value equal to to its (Items.Count - 1).

In this scenario, however, I cannot populate the slider's items until its Load event handler, because its items depend on another control's SelectedValue, which doesn't equal anything when the any control (or even the page itself) is being initialized.

I've tried playing with Session Variables in order to determine when the slider is being initialized vs. loaded, but to no avail.  Does anybody have any suggestions?  Thanks!

 

Ryan
Top achievements
Rank 1
 answered on 01 Mar 2010
1 answer
93 views
When I set RadScheduler height="100%", it also sets the AdvanceForm modal to 100%.  How do I set RadScheduler height to 100% while keeping modal to an auto height?
Sarah
Top achievements
Rank 1
 answered on 01 Mar 2010
1 answer
86 views
Hi,
 I was trying to work with silverlight line series and i am facing with the following issues:
1. I have 349 records in my list. I have 4 line series and i am trying to attach each one of them individually. But it is extremely slow and sometimes it hangs. I am not using any animation. Just at my xaml i have declared:

<

 

telerikChart:RadChart x:Name="RadChart2" Background="Transparent" UseDefaultLayout="False" Grid.Row="1">

 

 

 

 

<telerikCharting:ChartArea x:Name="webChartHPI"

 

 

 

Margin="0,0,0,1"

 

 

 

HorizontalAlignment="Stretch"

 

 

 

VerticalAlignment="Top"

 

 

 

FontFamily="Calibri"

 

 

 

FontSize="10"

 

 

 

>

 

 

 

 

</telerikCharting:ChartArea>

 

 

 

 

</telerikChart:RadChart>

and my code says ( for each individual series):

 

foreach

 

(xxx.myclass sr in e.Result)

 

{

 

 

DataPoint dataPoint = new DataPoint();

 

dataPoint.XValue =

 

Convert.ToDouble(sr.Year);

 

dataPoint.YValue =

 

Convert.ToDouble(sr.Percent);

 

mySeries.Add(dataPoint);

}

mySeries.Definition =

 

new LineSeriesDefinition();

 

mySeries.Definition.ShowItemLabels =

 

false;

 

mySeries.Definition.Appearance.Stroke = (

 

new SolidColorBrush(Color.FromArgb(255, 252, 237, 64))) as Brush;

 

mySeries.Definition.Appearance.Fill = (

 

new SolidColorBrush(Color.FromArgb(255, 252, 237, 64))) as Brush;

 

mySeries.LegendLabel =

 

"CBSA Level HPI";

 

webChartHPI.DataSeries.Add(mySeries);

 

 

All series have 349 records with the same X axis but the Y axis varies

2. I am not able to display Legends. Do i have to put <telerikcharting: legends > separately to achive this? Also i want the legend to display on the top left of the chart like in excel but not able to do so.

3. My third problem is i am not able to display negative values in a line series. This chart is completely different from that mentioned in 1. It has some 200 values having both +ve and -ve values for Y axis. But it is not displaying the -ve region. The chart was not even displaying and was hanging my machine. But when i put 

 

loanChartControl.AxisY.AutoRange =

 

false;

 

 

 

it started displaying but then again i think this stopped it from displaying the -ve axis.

4. My final problem is with the chart size. I cannot shrink the size of the chart. It is taking the entire cell space. Also does the values displayed in the x axis depend on the space it gets ? I am not able to reduce the line series thickness as well.


The version i am using is 2009.2.812.1030 for Telerik.Windows.Controls.Charting.

Please help me asap.

 

Velin
Telerik team
 answered on 01 Mar 2010
2 answers
123 views
I use the IndentHTMLContent filter. It works very nicely for tables, but it does not do any indenting for nested <div>, <p>, or other elements. So, for example, if I paste the following simple html with a couple of nested <div>s into the editor, it does not get indented.

<div>
<div>
<div></div>
</div>
</div>

Is there a way to get the indentation working for this type of html?
Dan Ehrmann
Top achievements
Rank 1
 answered on 01 Mar 2010
1 answer
73 views
Does anyone know of a way to generate a list of events based on the iCalendar spec and RRULE string that RADScheduler uses?  If I want to send email reminders of events coming up I need to have the scheduled events in some sort of recordset.  Hoping for a stored proc.  I could write it on my own but I've been looking for existing code but with no luck.  Thanks in advance.

Example string...

DTSTART:20100219T060000Z
DTEND:20100219T143000Z
RRULE:FREQ=WEEKLY;COUNT=3;INTERVAL=2;BYDAY=TU,FR
Dimitar Milushev
Telerik team
 answered on 01 Mar 2010
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?