This is a migrated thread and some comments may be shown as answers.

Zoom And Scroll feature is not working correctly with track ball behaivour:

10 Answers 113 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Vijay
Top achievements
Rank 1
Vijay asked on 19 Dec 2011, 01:39 PM

Hi Team,

We have used ChartView Control in our sample application. Here we used ZoomandScroll & Trackball behavior.ZoomandScoll behavior is not working as expected. Even we try to change the style for zoom selection
but its not working.

We can share a sample code for your reference if you want.
Please try to solve above issues, blocking us to use ZoomandScroll feature. 

 

 <Style TargetType="chartView:RadChartBase">

<Setter Property="DragZoomBorderStyle">

<Setter.Value>

<Style TargetType="Border">

<Setter Property="BorderBrush" Value="Green" />

<Setter Property="BorderThickness" Value="5" />

<Setter Property="Background" Value="Red" />

</Style>

</Setter.Value>

</Setter>

</Style>

Thanks & Regards,

 Vijay

10 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 22 Dec 2011, 10:30 AM
Hi Vijay,

You need to modify the TargetType of the implicit style like this:
<Style TargetType="chart:RadCartesianChart">
    <Setter Property="DragZoomBorderStyle">
        <Setter.Value>
            <Style TargetType="Border">
                <Setter Property="BorderBrush" Value="Green" />
                <Setter Property="BorderThickness" Value="5" />
                <Setter Property="Background" Value="Red" />
            </Style>
        </Setter.Value>
    </Setter>
</Style>

Hope this helps.


Regards,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vijay
Top achievements
Rank 1
answered on 22 Dec 2011, 11:09 AM
Hi Giuseppe,

Thanks, for your help on style stuff.

We are facing issue related to "Zoom And Scroll feature is not working correctly with track ball behaivour" in ChartView control. We have uploaded the sample code for this as well, kindly look into that and help us.

Thanks,
Vijay
0
Giuseppe
Telerik team
answered on 22 Dec 2011, 11:51 AM
Hi Vijay,

We have identified some issues with the zoom precision that will be addressed for the next weekly internal build. Could you elaborate what are the problems you are experiencing with the zoom and scroll feature so we can investigate them locally as well?


All the best,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vijay
Top achievements
Rank 1
answered on 22 Dec 2011, 12:28 PM
Hi Giuseppe,

Thanks for your reply!

I have uploaded the sample code for this if you will run you would be able to understand my problem. Please have a look of attached images as well.

Download the uploaded code and run it, the default page will look like screen1:

 

Once I am increasing the zoom by expanding the horizontal scroll and coming back to original state by dragging this back the graph is not understandable. Perform following steps to repro:

  1. Increase the zoom by dragging the white box of the horizontal scroll.
  2. Scroll the chart area, things looks fine.

  3.  Decrease the zoom up to minimum by dragging back the white box of the horizontal scroll, you would be able to screen2:

please let me know iif you need any other input from myside.

Thanks,
Vijay

0
Vijay
Top achievements
Rank 1
answered on 27 Dec 2011, 06:09 AM
Hi Team,

Any update, on Zoom And Scroll feature is not working correctly with track ball behaivour?

Thanks,
Vijay
0
Accepted
Evgenia
Telerik team
answered on 27 Dec 2011, 10:28 AM
Hello,

I suggest that you download the weekly internal build from your account and try it in your project. The LIB will be available for download later this week or in the beginning of the next one.

Greetings,
Evgenia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vijay
Top achievements
Rank 1
answered on 27 Dec 2011, 10:33 AM
Hi Evgenia ,

Where will I get the  weekly internal build for download? And what do you mean by LIB?

Thanks,
Vijay
0
Giuseppe
Telerik team
answered on 29 Dec 2011, 12:17 PM
Hello Vijay,

The weekly internal build also known as LIB (latest internal build) is available in the Download section of your Telerik client account.

Onto your pending zoom/scroll issue -- due to Silverlight limitation it is not possible to render UIElement with width/height that is greater than 32,000 pixels (when you decrease the ZoomBar thumb to a minimum you are effectively crossing this boundary for the PlotArea and that breaks the line series rendering). We would suggest you to control the minimum allowed range span for the zoombar via the PanZoomBar.MinimumRangeSpan property so that at max zoom level, you are within the 32,000 pixel limit for the PlotArea.

We have attached a modified version of your original application that demonstrates how to set the MinimumRangeSpan via style setter (the application also uses the latest weekly internal binaries).


Greetings,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vijay
Top achievements
Rank 1
answered on 29 Dec 2011, 01:44 PM
Hi Giuseppe,

Thanks a lot for your update and solution!

We did not manipulated/modified anything for plot area, by difault the thumb is coming minimum and giving wrong impression. By default it should come att zoom maximum level.

Please suggest if I am wrong.

Thakns,
Vijay
0
Giuseppe
Telerik team
answered on 29 Dec 2011, 02:03 PM
Hello Vijay,

The issue with the initial setting of the thumb has already been addressed and you can get the fix in the weekly internal build as well (check the attached sample application in our previous reply that uses these binaries and works correctly).


Kind regards,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ChartView
Asked by
Vijay
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Vijay
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or