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

Help getting DataTextField value

2 Answers 304 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Mattias Hermansson
Top achievements
Rank 1
Mattias Hermansson asked on 11 Mar 2014, 01:10 PM
Hello,

I have a multiselect and all i want is to get the value(s) from the datatextfield  instead of the datavaluefield value.
                        @(Html.Kendo().MultiSelect()
                              .Name("PrimaryArea")
                              .Placeholder("Välj primärområde")
                              .DataTextField("Name")
                              .DataValueField("SpatialId")
                              .DataSource(ds => ds.Read("GetAllPrimaryArea", "Report"))
                              .HtmlAttributes(new { @style = "width:200px;" }))


Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 13 Mar 2014, 10:51 AM
Hello Mattias,

I would suggest you check the dataItems method, which will return all selected data items. You can use the return result to get the selected texts.

Regards,
Georgi Krustev
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Mattias Hermansson
Top achievements
Rank 1
answered on 14 Mar 2014, 07:38 AM
Thank you, i will check it out 
Tags
MultiSelect
Asked by
Mattias Hermansson
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Mattias Hermansson
Top achievements
Rank 1
Share this question
or