Loading ...
Sorry, an error occurred while loading the content.

52047Re: [ydn-javascript] How can write custom function for dropdown?

Expand Messages
  • bahalul kabir
    Nov 3, 2009
    • 0 Attachment
      Hi satyam,
      Ok I wanna do it in cellClickEvent . How can I get the selected value?? As I click on different cell
      support_dataTable.subscribe("cellClickEvent",function(oArgs) {
         
          ar elDropdown = oArgs.target;     
             var oRecord = this.getRecord(elDropdown);
             selectItem=elDropdown.options[elDropdown.selectedIndex].value;
            alert(selectItem);  // does not work
       
      }


      From: Satyam <satyam@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Tue, November 3, 2009 2:08:37 PM
      Subject: Re: [ydn-javascript] How can write custom function for dropdown?

       

      Nothing in your sample below shows anything that cannot be already
      accomplished by the built-in dropdown formatter.

      See:

      http://www.satyam. com.ar/yui/ 2.6.0/assortedCo ntrols.html

      Satyam

      bahalul kabir escribió:

      >
      >
      > Thanx satyam, My search and requery is working fine.
      >
      > How can I write a custom function for dropdown?
      >
      >
      > YAHOO.widget. DataTable. dropdown = function(elLiner, oRecord, oColumn,
      > oData) {
      >
      > (oRecord.getData( "category" )=="support- open"?so= "selected" :so="");
      >
      > (oRecord.getData( "category" )=="support- hold"?sh= "selected" :sh="");
      >
      > elLiner.innerHTML= "<select id=\'supportDropDow n\'>
      > <option
      > value=\'support- open\'"+so+ "> support-open </option>
      >
      <option
      > value=\'support- hold\' "+sh+"> support-hold </option>
      > </select>";
      >
      > };
      >
      > {key:"Category" ,label:"Category ",formatter: YAHOO.widget. DataTable. dropdown, sortable: true},
      >
      > support_dataTable. subscribe( "supportDropDown ",function (oArgs) {
      > alert("hi ydn"); // is not working
      > }
      >
      >
      >
      >
      > ------------ --------- --------- --------- --------- --------- -
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - www.avg.com
      > Version: 9.0.698 / Virus Database: 270.14.46/2477 - Release Date: 11/02/09 20:39:00
      >
      >


    • Show all 8 messages in this topic