Chart zoomscroll settings bar: can it be customized?

8 posts, 0 answers
  1. Sunny
    Sunny avatar
    10 posts
    Member since:
    Sep 2011

    Posted 07 Nov 2011 Link to this post

    Chart zoomscroll settings bar: can it be customized? We like to utilize the zooming on X axis, and like to increase the size of the bar through style.
    Anyone has any suggestion? where to obtain the source code? who's style shoule I mess with? DragZoomLayerControl?
  2. Sunny
    Sunny avatar
    10 posts
    Member since:
    Sep 2011

    Posted 08 Nov 2011 Link to this post

    I got as close as the Style="{TemplateBinding AxisXStyle}" the in axis. but can't find out where hte AxixXStyle is. Also I found out that if the Axis to try to zoom/scroll is DateTime, it will not work, as  the zoom will try to convert DateTime into a double witch throw exception. So is it true that the zoomscrollsettings won't work on DateTime?
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sunny
    Sunny avatar
    10 posts
    Member since:
    Sep 2011

    Posted 10 Nov 2011 Link to this post

    Nobody answer my question.
    I found the solution on resize the zoomscroll bar though. I still have a questoin regarding the data that send to the chart.
    As I mentioned last post the datetime has trouble to resize, I found out that it is not the datetime at all, it is the data that I pass in.

    <

    telerik:SeriesMapping.ItemMappings >  

        <telerik:ItemMapping DataPointMember="XValue" FieldName="TimeStamp" />  

        <telerik:ItemMapping DataPointMember="YValue" FieldName="myData.doubleValue" />

     </telerik:SeriesMapping.ItemMappings>

    The data above will have problem to resize as it will do data re-sample at behind, where the operation directly on myData is not available as myData is a class. If I change my plot data structure to have directly properties called TimeStamp and doubleValue. then set them like:

    <telerik:SeriesMapping.ItemMappings >

         <telerik:ItemMapping DataPointMember="XValue" FieldName="TimeStamp" />

         <telerik:ItemMapping DataPointMember="YValue" FieldName="doubleValue" />

     </telerik:SeriesMapping.ItemMappings>


    then it works fine. So the FieldName can not set to be at sub-level like in the first code sample?
  5. Sia
    Admin
    Sia avatar
    667 posts

    Posted 10 Nov 2011 Link to this post

    Hi Sunny,

    Please excuse us for the delay of our answer. Please expect my reply soon.


    Best wishes,
    Sia
    the Telerik team

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

  6. Sia
    Admin
    Sia avatar
    667 posts

    Posted 10 Nov 2011 Link to this post

    Hi Sunny,

    Can you please let us know which is the version of RadControls that you use in your application?

    All the best,
    Sia
    the Telerik team

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

  7. Sunny
    Sunny avatar
    10 posts
    Member since:
    Sep 2011

    Posted 10 Nov 2011 Link to this post

    My version is 2011.2.920.35
    I need to know before I change my data structure.
  8. Sunny
    Sunny avatar
    10 posts
    Member since:
    Sep 2011

    Posted 10 Nov 2011 Link to this post

    My version is: 2011.2.920.35 It should be fairly new as it is just purchased 3 months ago.
  9. Sia
    Admin
    Sia avatar
    667 posts

    Posted 16 Nov 2011 Link to this post

    Hello Sunny,

    Please excuse us for the late reply. Attached you can find a sample project with all needed resources. You can reduce them according to the changes you will make.

    All the best,
    Sia
    the Telerik team

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

Back to Top
UI for WPF is Visual Studio 2017 Ready