i have two table :
tblPerson: "PersonID,FName,LName,Dep"
and
tblDep : "DepID,DepName"
i use combobox :
i have DataTextField and DataValueFiled . But value field is missing!
i need binding Dep filed in tblPerson to combobox!
how to do?
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 need binding Dep filed in tblPerson to combobox!
how to do?