Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
201 views
Zooming and Scrolling causes a postback. At this time, my code simply re-reads all of the data and builds the complete chart again.
When zoomed in, scrolling can cause another postback which causes another load of all of the data etc.
Is there a way to check the control etc. on postback to find the necessary chart area and only read the necessary data?
Also, is there a way to get the scale, etc. for use in changing the amount of labels and data in the required area?
Is there an example of this available?

For instance, lets say I want a chart of the number of shares of XYZ stock sold for a given time period. I have data for the number of shares sold in each minute of each day for the past 5 years. When generating the chart for 5 years, I do not add every minute data point. I sum all of the minutes into months so that there are 60 data points, each with a month label.
I set XOnly zooming/scrolling on the chart. The user left clicks and drags to highlight the 12 data points in the year 2008. A postback occurs and the C# code does not know any better than to generate the chart in exactly the same way. Only one year of data is needed (perhaps more for the queue on either side?). But, 5 years of data is read. Now, the user sees the 12 months, each with one data point.
I would like to regenerate the chart based on the zoom/scale and scroll positions (the required data slice needed for display). In this case, I would like to sum the data (that is in minutes) into weeks instead of months and use week labels instead of month labels. That way, instead of the user seeing 12 data points, they will get 52 data points with new labels. Then, it is a true zoom into the data to reveal more details.

If the user then scrolls one page right, a postback may occur and the chart can be regenerated for just the year 2009 (or whatever overlap is necessary).
I do not expect this to happen automatically. However, I cannot find an example or any guidance on how to implement this type of zoom and scroll of the data.

What properties are available for implementing something like this?
If I can caclulate or retrieve the visual range of the chart, I can simply build the chart as a full chart and zero all chart data points before the requested range, read in the data for the requested range and zero the trailing data points outside of the requested range.


After

Giuseppe
Telerik team
 answered on 29 Sep 2010
2 answers
108 views
Hello - i downloaded the telerik software [licensed software and not trial version] around July 27 2010. While trying to use AsyncUpload i notice that the temporary files are deleted immediately. I found a answer in the forums [http://www.telerik.com/community/forums/aspnet-ajax/async-upload/known-issues-and-breaking-changes.aspx]. However after implementing the custom handler, i still notice that the temporary files are being deleted. There is an improvement after adding the handler. The firstfile that i upload is not deleted but the second file is deleted immediately before the page post back. Any suggestions on how to prevent the temporary file from being deleted.
Balaji
Top achievements
Rank 1
 answered on 29 Sep 2010
1 answer
128 views
I have two questions:

1) How do I cancel an upload using the RadUpload control?  I'm using it in conjunction with a RadProgressArea, and that has a cancel button on it, but how do I stop the upload client side (if possible) or at least tell that it was cancelled on the server?

2) I am using the RadProgressArea elsewhere in my project with custom data.  I start an operation and just use web service calls to do some work meanwhile updating the progress using the "update" method of the RadProgressArea.  After the operation is finished I use the "hide" method to stop the progress.  There are no post backs made to the server.  Once the progress has stopped, in visual studio I am getting this script running over and over again in an infinite loop:

var rawProgressData = {InProgress:false,ProgressCounters:false};

Any ideas what this is and how to stop it?
Genady Sergeev
Telerik team
 answered on 29 Sep 2010
2 answers
164 views
i have an asp button inside radgrid with an specific css.

<asp:LinkButton ID="lnkThreadTitle" CommandName="Select" runat="server" CssClass="blog_posttitle"></asp:LinkButton>

Problem is the link button inherits the rad grid "a" link css definition and wont inherit its specific css class "blog_posttitle"

Also tried to input it in the code behind lnkThreadTitle.CssClass = "blog_posttitle";

Still inherits the grid link css below

.RadGrid_Windows7 .rgRow a {
  color:#1e3287;
}


Note: goal of this is make the .blog_posttitle skinnable by anyone.

help please. how do i make the asp linkbutton inherit my specific class and not the one from radgrid.

thanks much in advance.




Daren
Top achievements
Rank 1
 answered on 29 Sep 2010
1 answer
42 views

Hello Sir,

I have a aspx page with RadDockLayout and RadDocZone controls on it. Inside RadDoczone i have used a ascx Control. Inside ascx control i have used a grid but grid's RowCommand event is not firing. But whenever i placed it outside RadDocZone it is working fine.

Please provide a solution to this problem.

Thanks
Chandan kumar
Maria Ilieva
Telerik team
 answered on 29 Sep 2010
2 answers
55 views
Hello,

I want ask, if is possible use other means of fill data as list of objects? For example DataSet or XML for Client-side databinding. Can I generate XML and then transform to necessary structure for RadGrid?

Both two samples (Client-side databinding) are only with list of objects, but I need something dynamically (XML, DataSet), not objects with defined structure.

Thanks.

Roman Krsko
Maria Ilieva
Telerik team
 answered on 29 Sep 2010
1 answer
102 views
Hello,

May i control the default validation appearance?
I mean, instead of the redbox and the yellow warning i want to change it to red exclamation mark.
another question is : can i add a tooltip to the validation that explain the problem?

Thanks,
Oren
Dimo
Telerik team
 answered on 29 Sep 2010
0 answers
119 views
Hi,

I have a window that, on submit of a form, opens a RadWindow to collect further information for processing that form.  This all used to work, until I added an "OnClientClose" event to the RadWindowManager.  Now, I get a "null object exception" error in the Telerik Javascript.  The function that fails is below, and the line b=GetRadWindowManager() is the cause of the problem, as the function GetRadWindowManager returns null.  There is a RadWindowManager on the page, it is instantiated, and nothing that I can see causing this problem has changed.  I have even tried commenting out the line I added setting the onClientClose event, in the thought that any malformed JS in that function may stop the client-side scripts from initialising, that hasn't helped.

Can anyone suggest reasons that this function may return null (besides the obvious "there isn't one on the page" which I have checked)?  I assume something is stopping the server-side control from Registering its javascript successfully, but can't see what...

window.radopen=function(a,c){
var b=GetRadWindowManager();
return b.open(a,c);
};

Edit: Solved the problem, apparently Page_Load is not a good place for Registering script blocks that are required by RadControls events.  Moved them to Page_Init, and got through this.  Now experiencing a different issue, however...  my OnClientClose event is not firing at all.  New thread posted.

Thanks,
Richard.

Richard
Top achievements
Rank 1
 asked on 29 Sep 2010
13 answers
236 views
Looking for an example binding a RadContextMenu to an asp:GridView that allows context menu to be displayed on right mouse click of selected row.

Any leads?
Veli
Telerik team
 answered on 29 Sep 2010
1 answer
83 views
Good Day

I have menu Control inside a Tool-Bar and the menu background color does not look OK as depicted in the attached image, i want it to inherit the forest theme like the buttons that are on the toolbar. The Definition of my menu is like this

<telerik:RadMenu ID="RadMenu1" CssClass="imgButton" Skin="Forest" Visible="false"  BackColor="Transparent"  runat="server" ></telerik:RadMenu>

and the image is attached

Thanks
Yana
Telerik team
 answered on 29 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?