Hi,
I am trying to set the scrollbars to the chart. In design view i set the property EnableScrollBar="True", and run the chart application, but i did not get scrollbars in my chart. I think when i set the EnableScrollBar property to "true", it has to automatically set the ScrollBarImage property. But it it not automatically setting the ScrollBarImage property.
could you let me know what should i do for getting the scrollbars to the cart.
Thanks in Advance
Sreenivas
Setting EnableScrollbar to true doesn't set ScrollBarImage property. What it should do is create the scroll bar images inside your ChartImages folder. If you're setting this property in the source window, try switching to design view, or set the property through the properties window. This should create all the necessary images.
I did not understand your reply regarding scrollBarImage property. could you please explain in details.
I am using net advantage 8.2 Web CLR 35 and OS is WinXP SP2. I set EnableScrollbar to true in runtime, and not seeing any placeholders or functional scrollbar in the layout of the chart. I am attaching the code for the char and the layout of chart in "chartImage.zip" file. Could you please look into it.
Here my requirement is, I will get some hundereds of columns in my chart. If i enable the horizontal scrolling, the chart has to scroll for every 3 seconds and has to show some chunk of columns. It has to repete the scroll till the end of the columns (hundereds of columns).
Thanks and Regards
I see you're using a composite chart in your application. Unfortunately, there is no scrolling available in the composite charts at this time. You can submit a feature request here: http://devcenter.infragistics.com/Protected/RequestFeature.aspx
To me it looks like there is not much missing for the scrollBars to work in a composite chart. The chart is rendered correct and I see the correct scrollbar. The only problem is that the scrollbar doesn't react on any user interaction.
Uli
I had the similar problem earlier. I set the EnableScrollbar property on the chart to "true", but could not see the scroolbar on the rendered chart. After days of research I accidently found that I need to call the DataBind() method on the chart. Initially I was only adding the points to chart and it was rendering the chart, but without scrollbars. Calling DataBind() fixed the problem.
However, I have another problem now. The images in scrollbar are not always created in the ChartImages folder. And when it is not created the chart shows only placeholders of the scrollbar, which is really bad.
My first question is, if I have set the deployment scenario of my chart as Session, so why should images be created on the disk. This consumes a lot of disk space. For a single chart 60 images were created which consumes almost 50 KBs.
Secondly, why are images not created always, I just see placeholders of the scrollbars in my application which makes the chart look very ugly.
The functionality to create the scrollbar images is actually in the designer, so you must set EnableScrollbar = true in Visual Studio at design time to generate the images. Or just copy the scrollbar images from another chart you've already done this for.
Since these images are created only once, they work independently from the DeploymentScenario.