top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Explain the procedure to display an editable drop-down list?

+3 votes
411 views
Explain the procedure to display an editable drop-down list?
posted Mar 11, 2014 by Muskan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes
 
Best answer

Explain the procedure to display an editable drop-down list?

To display an editable drop-down list it requires:

  • Template column that is present in the Grid and an object of ItemTemplate that consist of controls like data-bound.

  • Use of Label controls that produces the current value of the field present in the record.

  • Adding of the drop down list takes place by using the object EditItemTemplate. This object adds a column in the template and the property can be customized according to the requirement.

  • DropDownList control can be taken from the EditItemTemplate property editor and changes being made into it to represent it on the web front.

  • The template column of the drop down list can be added to HTML view.

answer Mar 15, 2014 by Atul Mishra
Similar Questions
+1 vote

Items in dropdown
01/31
02/28
03/31
04/30
.........

12/31

+2 votes

I am Getting may JSON array . But i can't know how to fill dropdown list with this array ...

<script>
  function Customer_Id()  
  {  
      var Cus_id = document.getElementById("customer").value;  
      alert(Cus_id);
      var xhr;  
      if (window.XMLHttpRequest) // Mozilla, Safari, ... 
       {   
            xhr = new XMLHttpRequest();  
       }  
        else if (window.ActiveXObject) // IE 8 and older 
        {   
            xhr = new ActiveXObject("Microsoft.XMLHTTP");  
        }  
          var data = "Customer_ID=" + Cus_id;  

             xhr.open("POST", "Volumne_WebUser.php", true);   
             xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");                    
             xhr.send(data);
              xhr.onreadystatechange = display_data;  
      function display_data() {  
     if (xhr.readyState == 4) {  
      if (xhr.status == 200) {  
      var response = xhr.responseText;
      var obj = JSON.parse(response);
      alert(obj['Name']);     
      } else {  
        alert('There was a problem with the request.');          
      }  
     }  
    }  
  }
</script>
+1 vote

I have a requirement to populate the drop down list I need to load data from a database table to drop down list in java

my database table is this

CREATE TABLE CITY_MASTER_PL(
CITYID BIGINT NOT NULL,
INVENTORY_SOURCE CHAR,
CITY_NAME VARCHAR(250),
STATE_CODE VARCHAR(250),
STATE_NAME VARCHAR(250),
COUNTRY_CODE VARCHAR (250),
COUNTRY_NAME VARCHAR (250),
HOTEL_COUNT BIGINT,
LATITUDE BIGINT,
LONGITUDE BIGINT,
PRIMARY KEY (CITYID)
); 

in this table I need to load all country name state name and city name can any one help me out this thanks in advance

...