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

How to binding combobox to master table field?

1 Answer 51 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ahmad
Top achievements
Rank 1
Ahmad asked on 06 Jan 2013, 08:17 AM
i have two table :
tblPerson: "PersonID,FName,LName,Dep" 
and
tblDep : "DepID,DepName"

i use combobox :

@(Html.Kendo().ComboBox()
              .Name("deps")
              .DataTextField("DepName")
              .DataValueField("DepID")           
              .Filter("contains")
              .DataSource(source => {
              source.Read(read =>
              {
                  read.Action("GetDeps", "Dep");
              });
              }))
i have  DataTextField and DataValueFiled . But value field is missing!
i need binding Dep filed in tblPerson to combobox!
how to do?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 07 Jan 2013, 09:35 AM
Hi Ahmad,

 We are not sure we understand what the problem is. What do you mean by "value field is missing"? Could you please elaborate?

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