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

DataSource, Model, array fields

3 Answers 204 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 19 Apr 2012, 06:37 PM
With the recent updates, some of my old code has become broken. The relevant part here relating to using a DataSource to pass information back to an Mvc3 controller. Specifically, the object I am using has a field that contains an array which used to get passed to parameterMap as "Array[5]", and is now getting passed as o.extend.init[5]. This isn't recognized when I attempt to send the data to my controller action. 

Currently, I am using a workaround in parameter map where I read the values from the "o.extend.init[5]" into a plain array, and assign it to the same field in the object before converting it to JSON to be returned. Is there a cleaner solution built into Kendo that will just return that field as an array when I get the object from the DataSource?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Cody
Top achievements
Rank 1
answered on 02 Aug 2013, 09:27 PM
I have the same problem.
0
Petyo
Telerik team
answered on 07 Aug 2013, 10:29 AM
Hello Cody,

This thread is over an year and a half old - it is unlikely that the same problem happens with your codebase. Can you please elaborate (and, if possible, post code samples) that demonstrate the issue? Thank you in advance.

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Cody
Top achievements
Rank 1
answered on 07 Aug 2013, 01:32 PM
Well... didn't really expect a response with it being so old. It was really just a "me too" post while I working on something. I'll see if I can't put together an example to illustrate my problem. I was able to get around it with another solution so I'm over it but perhaps someone can benefit from it.
Tags
Data Source
Asked by
Joshua
Top achievements
Rank 1
Answers by
Cody
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or