Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
188 views
I'm playing with the chart at the moment and wondered if anyone knows how to set the maximum Y axis value?

For instance, I have a datasourse where the highest value woul be, say for arguments sake, 3. When the chart displays, the top of the chart's value is set to 3. How can I set this to another figure, say 10, even though data doesn't go up this high?

Thanks.
Peshito
Telerik team
 answered on 21 Jun 2011
1 answer
70 views
hi,
good evening all,
when Rad filter is used by default
AND, OR,NOT AND,NOT OR  these four operator are shown in Main root context menu.
so if  "AND" to be Shown "ADD", by which property it can be shown.



please response soon.


thanks.
Princy
Top achievements
Rank 2
 answered on 21 Jun 2011
1 answer
80 views
Hi
I want to do server side dragdrop on treeview but nodedrop event does not fire, please help me.

Shinu
Top achievements
Rank 2
 answered on 21 Jun 2011
3 answers
64 views
If I set AutoPostbackOnFilter="true" and CurrentFilterFunction="StartsWith", then when a user enters some text and hits enter, the grid will be filtered properly. However, I have noticed, if the user enters text, and then decided to use the filter menu, sometimes the grid filters AS SOON AS they click on the filter icon, as opposed to when they select a menu item. Its almost as if clicking on the filter menu icon causes the grid to filter. This does not occur if AutoPostbackOnFilter="False".

I believe this only happens after the user selects a filter function other than "Starts With".. So, the user selects something other, like "Contains", everything work fine. Then they click on the filter menu icon (the filter funciton "Contains" is now different that what is specified in the Grid declaration "CurrentFilterFunction='StartsWith"), and the filter occurs immediately before they even have a chance to selct an option.

Any idea what's going on.
Tsvetoslav
Telerik team
 answered on 21 Jun 2011
4 answers
351 views
I am taking a existing chart that was done previously in Dundas chart control and migrating it to the Telerik chart control. So far I can easily replicate the data area display, but I am having trouble with the labels and gridlines on the x-axis. Basically I need to take a start and end date and always display the grid with 8 total gridlines (9 if you include the Y axis) based on hours. So for example in the attached files I have one with a start date of 2/23/2011 and end date of 3/1/2011. I need that range basically as best as possible divided by 8. This needs to happen even if dealing with just a single day as seen in the attached file for just 2/23/2011. With my old Dundas code I did this by taking the total hour difference between the dates, loop adding an hour to the value until it was divisble by 8 evenly and then setting the X axis to that as the intervale and telling the grid its X axis was an intervaltype of hours. Here is the code.

//Take the start and end dates and set them for the start and end X axis
this.Chart1.ChartAreas[0].AxisX.Minimum = initialDate.ToOADate();
this.Chart1.ChartAreas[0].AxisX.Maximum = completeDate.ToOADate();
//Get the total hours between start and end
double totalSeriesHours = completeDate.Subtract(initialDate).TotalHours;
//We will be showing 8 grid lines on the X axis so keep adding an hour until we can divide evenly by 8
if (totalSeriesHours > 0)
{
    // How many hours per label?
    while ((totalSeriesHours % 8.0) != 0)
    {
        totalSeriesHours++;
    }
    totalSeriesHours /= 8;
}
//Set the X axis lines, labels and tick marks.
this.Chart1.ChartAreas[0].AxisX.MajorGrid.IntervalType = DateTimeIntervalType.Hours;
this.Chart1.ChartAreas[0].AxisX.MajorGrid.Interval = totalSeriesHours;
this.Chart1.ChartAreas[0].AxisX.LabelStyle.IntervalType = DateTimeIntervalType.Hours;
this.Chart1.ChartAreas[0].AxisX.LabelStyle.Interval = totalSeriesHours;
this.Chart1.ChartAreas[0].AxisX.MajorTickMark.Interval = totalSeriesHours;
this.Chart1.ChartAreas[0].AxisX.MajorTickMark.IntervalType = DateTimeIntervalType.Hours;

Now I realize that the Telerik chart works differently so I have tried many things to replicate the same process in its workings. I set the Label step to 8. I set ranges, etc. No matter what I do I cannot get it to display 8 grid lines. I just get labels for the start and end dates. I tried code like below to no avail. I am think I am missing something in my understanding on how the labels and grid lines work. Side note. I need the labels to be on the grid lines. Thanks in advance.

double minDateValue = initialDate.ToOADate();
double maxDateValue = completeDate.ToOADate();
double totalSeriesHours = maxDateValue - minDateValue;
//We will be showing 8 grid lines on the X axis so keep adding an hour until we can divide evenly by 8
if (totalSeriesHours > 0)
{
    // How many hours per label?
    while ((totalSeriesHours % 8.0) != 0)
    {
        totalSeriesHours++;
    }
    totalSeriesHours /= 8;
}
//Take the start and end dates and set them for the start and end X axis
this.Chart1.PlotArea.XAxis.IsZeroBased = false;
this.Chart1.PlotArea.XAxis.AutoScale = false;
this.Chart1.PlotArea.XAxis.AddRange(minDateValue, maxDateValue, totalSeriesHours);



Ves
Telerik team
 answered on 21 Jun 2011
1 answer
280 views

I have a databound ComboBox that the application user needs to be able to 'check'.  What need to do is to show the user which entries have already been 'checked', that is I need to be able to programmatically set the checked property of the items in the combobox.  I can id the items to be checked, I just need the code to actually "check" the item.

Here is my code so far:

If item.IsInEditMode Then

Dim indx As Integer = ctlUserCombo.FindItemIndexByText("Test, Sabo")

Dim cmbo As RadComboBox = CType(item.FindControl("ctlUserCombo"), RadComboBox)

Dim cbox As RadComboBoxItem = CType(cmbo.Items(indx), RadComboBoxItem)

cmbo.Items(indx).Enabled = False

So I am able to change the Enabled property to False...what I need to be able to do is set the combobox to "Checked".  However the RadComboBoxItem does not have a 'checked' property.  Anyone know how to get the combo box to show checked = true for individual items in the combobox? 

Thanks.

Princy
Top achievements
Rank 2
 answered on 21 Jun 2011
2 answers
95 views
It's possible change Resources file associate to RadFileExplorer? if yes....how?

ex. from RadEditor.Dialogs.resx to Resource.resx

Thanks
archimede
Top achievements
Rank 1
 answered on 21 Jun 2011
7 answers
171 views
Hi sorry I think I posted about this a while ago, but I can't find it (or the resolution)

http://screencast.com/t/mcJ4tM7K8tGK

The client state of the control remembers the selected dates, but once it re-renders after a postback none of the <td> tags have the rcSelected class applied...I have to hover-over the element to get it to show back up.
Vasil
Telerik team
 answered on 21 Jun 2011
2 answers
84 views
Hi,

I'm using RadAsyncUpload and it's working well for file less that about 4MB, but when I try to upload a larger file the upload fails (I get a red dot next to the filename).  In the Firefox error console I see the following error: "uncaught exception: Error while uploading, HTTP Error code: 302".

The httpRuntime entry in my Web.config is as follows: <httpRuntime executionTimeout="7200" maxRequestLength="1000000/>

I'm using Visual Studio 2008 with C# and ASP.NET 3.5.  Telerik version is 2011.1.315.35.

I see that on this page (http://www.telerik.com/help/aspnet-ajax/asyncupload-troubleshooting.html) error 302 is mentioned, but no suggestions as to what might cause it.

Has anyone encountered this problem before, or know how to fix it?

Thanks
Andrew
Andrew Dixon
Top achievements
Rank 1
 answered on 21 Jun 2011
1 answer
66 views
Hi all,

I need to display the custom attribute values for each appointment in the front calendar display along with the subject?   As of now, all I can see is the subject. any ideas on how I can accomplish this?

Thank you!

Gus
Gus
Top achievements
Rank 1
 answered on 20 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?