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

[Solved] Angular Multiselect in Grid, display of Names not happening

1 Answer 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shreesh
Top achievements
Rank 1
Shreesh asked on 23 Nov 2014, 07:55 AM
Hello,

Attached in the code where I want to display the names of multiselect names in a Kendo Grid. I am unable to do it.

In the edit mode for file "AngularGridWithMultiSelect_RowMode.cshtml", In the controller method "UpdateProductsForGrid" , I get list of Ids of Order multiselect as string and then I get names of order. 
Can you let me know how to show the names? What is missed...






1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 26 Nov 2014, 08:39 AM
Hello,

The names will not be shown after update because the data is not returned in the format specified with the schema data and total options. You should return a DataSourceResult:
return Json(new[] { product }.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
 or an object with the same field names(Data and Total) in order for the dataSource to be able to read the data returned from the server.


Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Shreesh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or