title: how to get the Selected item in dropdownlist while click the Edit button in inline kendo grid in asp
body: <p><strong><em>How to Display the Selected Item from Database in Kendo Grid while click the Edit Button</em>
  **My Coding Like**</strong></p>
  
  <p><code>var grid= $("#DivUser").kendoGrid(</code> <br>
            <code>{</code> <br>
               <code>dataSource: DataSource4,</code><br>
                  <code>scrollable: true,</code><br>
                 <code>sortable: true,</code><br>
                  <code>filterable: false,</code><br>
                <code>reorderable: true,</code><br>
                   <code>resizable: true,</code><br>
                <code>pageable: true,</code><br>
                 <code>toolbar: [ { text : "Add new record", name: "popup",</code><br>
  <code>iconClass: "k-icon k-add"} ],</code><br>
            <code>editable  : {</code><br>
                    <code>mode : "inline"</code><br>
   <code>columns:    [</code><br></p>
  
  <pre><code>                {
                      field: "LoginName",
                      title: "Login Name",
                      width:"175px"
                  },
  
  
                       {
                      field: "ScopeId",
                      title: "Scope Id",
                      editor: ScopeDropDownEditor
  },
  </code></pre>
  
  <p><code>{</code><br>
                         <code>command: ["edit", "destroy"],</code><br>
                          <code>title: "&amp;nbsp;",</code><br>
                          <code>width: "175px"</code><br>
                     <code>}</code><br>
                 <code>]</code><br>
           <code>}).data("kendoGrid");</code></p>
  
  <p><code>var DataSourceScope = new kendo.data.DataSource(</code>
             <code>{
  </code> transport: <code>
  </code> {<code>
  </code> read: <code>
  </code> {<code>
  </code> url: "WebServices/Project.asmx/GetScope",<code>
  </code> data: "{}",<code>
  </code>contentType: 'application/json; charset=utf-8',<code>
  </code>type: 'POST',<code>
  </code>  dataType: 'json'<code>
  </code>  },<code>
  </code> parameterMap: function(options, operation) <code>
  </code>{<code>
  </code> if (operation == 'read')<code>
  </code>          return kendo.stringify(options);<code>
  </code>}<code>
  </code> },<code>
  </code> schema: <code>
  </code>{<code>
  </code> data: function(Data) <code>
  </code> { <code>
  </code>  return (Data.d); <code>
  </code>  },<code>
  </code>  model: <code>
  </code>{<code>
  </code>id: "ScopeId",<code>
  </code>  fields: <code>
  </code>  {<code>
  </code>   ScopeId: { type: "number"},<code>
  </code>ScopeName: { type: "string"}<code>
  </code> }<code>
  </code>}<code>
  </code>},<code>
  </code> error: function(e) <code>
  </code>{<code>&lt;br&gt;
  </code>var xhr = e[0];<code>
  </code>var statusCode = e[1];<code>
  </code>var  errorThrown = e[2];<code>
  </code> alert('DataSourceScope - ' + xhr + ', ' + statusCode + ', ' + errorThrown);<code>
  </code>  }<code>&lt;br&gt;
  </code>  });<code>
  </code> function ScopeDropDownEditor(container, options) <code>
  </code>{<code>
  </code>$('
  data-bind="value:' + options.field + '"/>')<code>
  </code>.appendTo(container)<code>
  </code> .kendoDropDownList(<code>
  </code>  {<code>
  </code> autoBind: false,<code>
  </code> dataSource: DataSourceScope<code>
  </code>  });<code>
  </code> }       `</p>
  
  <p>in my webservice code like</p>
  
  <pre><code> public class Scopes
    {
        int _ScopeId;
        string _ScopeName;
  
        public int ScopeId
        {
            get { return _ScopeId; }
            set { _ScopeId = value; }
        }
  
        public string ScopeName
        {
            get { return _ScopeName; }
            set { _ScopeName = value; }
        }
  
        public Scopes() { }
  
        public Scopes(int ScopeId, string ScopeName) { this.ScopeId = ScopeId; this.ScopeName = ScopeName; }
  
  
  
  }
  
    [WebMethod]
    public List&lt;Scopes&gt; GetScope()
    {
  
        string StrConnectionString = ConfigurationManager.ConnectionStrings["sample"].ConnectionString;
        SqlConnection SqlConnection1 = new SqlConnection(StrConnectionString);
        SqlCommand SqlCommand1 = new SqlCommand("select distinct ScopeId,(select ScopeName from Scope2 where Scope2.ScopeID=User2.ScopeId)as ScopeName from User2", SqlConnection1);
  
        DataTable DataTable1 = new DataTable();
        SqlDataAdapter SqlDataAdapter1 = new SqlDataAdapter(SqlCommand1);
        SqlDataAdapter1.Fill(DataTable1);
  
        List&lt;Scopes&gt; ListScope = new List&lt;Scopes&gt;();
        foreach (DataRow DataRow1 in DataTable1.Rows)
        {
            ListScope.Add(new Scopes(Convert.ToInt32(DataRow1["ScopeId"]), Convert.ToString(DataRow1["ScopeName"])));
        }
  
        return ListScope;
  
    }
  </code></pre>
  
  <p>this is Ok..
  But after Click Edit button the dropdownlist items like 1st item 
  for Example </p>
  
  <p>ScopeName id dropdownlist 
  items Admin, Developer,tester</p>
  
  <p>in database james is tester
  if i click Edit Button Means  </p>
  
  <p><code>Name                ScopeName</code> <br>
  <code>James               admin</code><br>
                     <code>developer</code><br>
                     <code>tester</code><br></p>
  
  <p>How to Bind and How i displya the SElected items?
  thankx in advance.</p>