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

Grid binding to dataset datatable

3 Answers 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gunawan Thio
Top achievements
Rank 1
Gunawan Thio asked on 15 Jul 2011, 05:00 AM

Hi Telerik support,

I have scenario which need to bind ASP.NET MVC to dataset's datatable. If datatable column's name have numeric value, for example Tenor: 3Y, its parsed as Tenor: 3 Y (with space), and have javascript error.

I use sample code found in thread below, and modify the data column name.

http://www.telerik.com/community/forums/aspnet-mvc/grid/grid-binding-to-dateset-datatable-support.aspx


Thank you,

Gunawan

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Jul 2011, 07:13 AM
Hi Gunawan Thio,

 Unfortunately we do not support columns with whitespace in its name. I am afraid I cannot provide a workaround for this apart from removing the whitespace of the column name.

Regards,
Atanas Korchev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Gunawan Thio
Top achievements
Rank 1
answered on 15 Jul 2011, 07:47 AM

Thank you Atanas.

But for this column name, for example 3Y, also causing java script error..


Regards,

Gunawan
0
Atanas Korchev
Telerik team
answered on 15 Jul 2011, 08:14 AM
Hi Gunawan Thio,

 This code sample is a bit outdated. I suggest you check this code library project which shows how to bind the datatable to a grid. Still it won't support column names which contain whitespace or start with a number.

Regards,
Atanas Korchev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Gunawan Thio
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Gunawan Thio
Top achievements
Rank 1
Share this question
or