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

Ajax Post doesn't pass string array property in motel

2 Answers 45 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.
Danny
Top achievements
Rank 1
Danny asked on 23 Aug 2010, 12:50 PM
Oops, sorry, the title should say "Model" not "motel"!

Hi, 

I have a Grid Control that is passing the viewmodel to the Ajax method as follows:

.DataBinding(d => d.Ajax()
    .Select("AjaxGrid", "Log",Model))


with the method starting like this:

[GridAction]
public ActionResult AjaxGrid(LogSearchDetails model)
{

The LogSearchDetails class has a number of properties, mainly strings but a few string arrays (string[]).
When I perform a http post using a button elsewhere in the view, the LogSearch details class passed in as the parameter appears to correctly represent the model at the time, with the string arrays containing all items selected from a list on the view.
However, when the AjaxGrid method is invoked by the grid performing an Ajax request, all the properties in the model passed in as a parameter are fine except for the string array properties. These properties appear to be a string array with one item, and that item is always a string with the value "System.String[]". It feels like whatever is creating the model object before the method is invoked is incorrectly building the array and just entering a the ToString() value of the array into a new array.
As things seem to work fine when performing a standard http post, my first thought is that it's something in the Telerik library. Any thoughts on why this seems to be happening?


2 Answers, 1 is accepted

Sort by
0
Danny
Top achievements
Rank 1
answered on 27 Aug 2010, 01:43 AM
This is my second request for support and the second time I've been totally ignored. Even if my request wasn't detailed enough, if asked for I would gladly be more specific.
It seems using these telerik controls was a bad idea for our web development as if I have a very serious issue with a tight deadline, I probably won't get a response. I won't be using them in the future.
0
Atanas Korchev
Telerik team
answered on 27 Aug 2010, 07:39 AM
Hi Danny,

We do not guarantee responses by by Telerik staff to forum threads.

I am not sure what the problem may be based on the description. Perhaps a sample project would be of help. Have in mind though that you cannot attach anything but images to forum threads (for security reasons). You can use a public file hosting service such as dropbox.com or skydrive.live.com to send us a project.

Greetings,
Atanas Korchev
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
Grid
Asked by
Danny
Top achievements
Rank 1
Answers by
Danny
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or