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

Chart content positioning problems

4 Answers 61 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 27 Mar 2009, 05:04 PM
Hi.
My chart was mostly functioning ok and looked good.
I changed a little of the markup surrounding it - none of the chart creation code and suddenly it is rendering extremely wierdly the first time it's drawn.

  • The x-axis is half in the correct place (at the bottom) and half at the top in the same place as the title.
  • The y axis is displaced a little
  • The actual graph is drawn way below the x axis, and to the right.

After re-drawing the chart a few times it comes to correct itself.
why?
cheers

matt

[More info. The chart fails to render when, on initial renderings the Visible property is set to false.
On an initial rendering of the area I wan tit not to display so I can display some help text. Is there another way to do this?]

4 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 30 Mar 2009, 12:30 PM
Hello Matthew,

Yes, you should be able to hide the chart using javascript and css. It is a much better approach then using the Visible property.

Kind regards,
Vladimir Milev
0
Matthew
Top achievements
Rank 1
answered on 30 Mar 2009, 04:25 PM
Now I have stopped trying to hide the chart
Yet the layout is completely screwed with the x-axis at the top, and the chart 'overflowed' bottom right, outsied the size I explictly set the chart to be.

Why might this be?

So far I have wasted nearly two days just trying to get the chart to draw its elements in the correct place. It's just ridiculous.
0
Matthew
Top achievements
Rank 1
answered on 31 Mar 2009, 03:48 PM
Another day wasted.
Winding back the code in source control of course fixed the problem.
But winding forward till it breaks - well, what a waste of a day.

1....
Creating an empty Telerik TreeView.css file in the App__themes\(theme) folder breaks it
Deletin that file - leaves it broken.
Deleting all IE cache, cleaning the solution, killing the asp.net web site - leaves it broken.
What on earth is caching it?

2....
If we are not supposed to set .Visible=false why do you let us do it? Why not throw an exception? Why not document it?
0
Matthew
Top achievements
Rank 1
answered on 01 Apr 2009, 05:10 PM
We have solved the problem.
Note: the (embedded skinned) chart is inside a dock is inside a splitter pane arrangement.
In another splitter pane is a tree.; All Telerik

Changing the tree from having an embedded skin to file-based skin caused the map rendering to break.
Even adding an emty tree.css file to the theme folder caused the map rendering to break.

I think you have some issues here.

Changing the map to also use a non-embedded theme fixed the problem

Tags
Chart (Obsolete)
Asked by
Matthew
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Matthew
Top achievements
Rank 1
Share this question
or