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.
It's quite simple. You do not need to set ScrollBarImage property. This property is needed only if you're setting your own skin to the scrollbar. Try doing what I have mentioned in the previous post and let me know if thath works.
i tried to set the scrollbar and scrollscale in desing time, but i did not get the scroll bars. could you please help me how to set the scroll scale property in the code behind file.
The ScrollScale property is not supported by the web chart. It only works for the windows forms chart. The web chart only has one property to set the scrollbar and that property is EnableScrollbar which is set to true. Once you set it to true at design time, your ChartImages folder should hold all the scroll images. The effects of setting this property can only be seen at run time. You will either have a functional scrollbar or you will have clearly visible placeholders for scrollbar images. Can you let me know if you're seeing these placeholders? Since this does work on my machine, it's difficult to tell why this isn't working for you. Perhaps you can also describe your environment and the net advantage version you're using.
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
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.
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.
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'd love to see that feature too.
Also the help and online examples are not very helpful here. I haven't found anything about an exection for composite charts here.
Thanks
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