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

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

Expand Messages
  • Satyam
    Nov 3, 2009
    • 0 Attachment
      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/assortedControls.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=\'supportDropDown\'>
      > <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