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

The type of column with name is not numeric

1 Answer 198 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Nicklas
Top achievements
Rank 1
Nicklas asked on 18 Aug 2010, 03:34 PM
Hi Telerik!

I am currently working on a project where we need to show some Charts. The standard Charts within VS2010 isn't all that beautiful and neat - so we decided to try your AJAX package. But we have run into some problems we can't solve or find a solution to on your FAQ, Forum or Documentation.

We are trying to create a Chart where the Data is bound through a ObjectDataSource. But it creates to many series and and 7 unnamed items as you can se in the "chart Wizard" picture. It was supposed to create one or two series and with sales statistics from this year and last year as you can se in picure "Noerror". Here we have the standard Chart from VS2010 showing blue and orange bars (blue for this year and orange for last year). This works fine but sure isn't very attractive. Your RadGrid works fine as you can see on the same picture. But as soon as we databind your radChart with our ObjectDataSource and then it tells us that fx. "Kuverter" isn't numeric... We have tried to change and delete different series and Columns and it always comes down to this error. We have also tried to manually create the series and Items as we want, but then it doesn't databind with ObjectDataSource. WE know for sure that all the data is in numeric (Decimal and int). Besides "Afdeling" and "Firma" column, which should represent the Firm and the different sections within it (see the standard chart). Its driving us nuts, because it doesn't make any sense. We have tried creating a little test method that also returns a Array and with some numbers... which again returns the numeric error...

I hope you can help us and please write asap if you need any extra doc. or explaination.

Friendly regards
Nicklas Vind
Kokken & Jomfruen

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 Aug 2010, 12:58 PM
Hello Nicklas,

Indeed, we were able to reproduce the unwanted behavior when the select method  returned an array of business objects. However, updating it to return a generic list of such objects made it work as expected. Please, find attached a small example, showing this scenario. I hope it will help you to achieve the desired behavior.

Best regards,
Ves
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart (Obsolete)
Asked by
Nicklas
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or