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

[Solved] List<String> model property does not retain data with passed via a model to another user control

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rajesh
Top achievements
Rank 1
Rajesh asked on 07 Apr 2011, 03:05 AM
I have a page with a search panel (strongly typed .ascx) in which information is entered.  Upon clicking search an AJAX form is submitted passing the model for the search panel to my controller.  Based on the information a particular partial view containing a Telerik grid is returned with the model of the search panel.

 

The grid uses AJAX data binding, it calls my controller passing in the model of the search panel.  When accessing my model from the controller everything is correct except of List<string> containing the States selected in the search panel.  Instead of <modelName>.States returning a list, it returns:  System.Collections.Generic.List'1[System.String]

Any Ideas?

I greatly appreciate it

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 07 Apr 2011, 07:17 AM
Hi Rajesh,

I'm afraid that I'm not sure what may caused such behavior judging from the given details. Therefore please provide a small runnable sample in which this can be observed.

All the best,
Rosen
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
General Discussions
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or