How to binding combobox to master table field?

2 posts, 0 answers
  1. Ahmad
    Ahmad avatar
    8 posts
    Member since:
    Dec 2012

    Posted 06 Jan 2013 Link to this post

    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?
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 07 Jan 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top