media media - 9 days ago 8
C# Question

ScrollViewer does not work properly

I have the following code in


<telerikNavigation:RadTileViewItem Header="New Synonyms">
<Grid ScrollViewer.CanContentScroll="True">

<telerik:CategoricalAxis />

<telerik:BarSeries Name="barSeriesNewSynonyms">
<telerik:CategoricalDataPoint Category="hello" Value="10" />
<telerik:CategoricalDataPoint Category="hi" Value="5" />


and it seems like this:
enter image description here

As you can see the
does not work. I also have change the above code in a way that the
was ebmeded inside the
but it gave me the same result. How can I have scroll to have the entire content embeded in the grid that all of them can be visible.


For clarifying more, whenever you use your typical browser, if the content does not fit to your screen, the browser uses scorll bars to fit them. In my code I want to use
to fit the items inside it. but as you can see the scrollviewer does not appear and does not work and I do not know the reason. The following image shows that every thing is embeded without the need of scroll, but the size changes and I need to have scroll bars.

enter image description here
I update the content of the chart by using the following

foreach (var it in osr.previousMeanings)
this.barSeriesOldSynonyms.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint() { Category = it.word.ToString(), Value = it.frequency });


RadCartesianChart seems to have its own scrolling behaviours, look at:

In summary you can set

   <telerikChart:ChartPanAndZoomBehavior PanMode="Both" />

to get 2 scrollbars.