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

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

Expand Messages
  • Satyam
    Nov 3, 2009
    • 0 Attachment
      If you use your own formatter function that event won't be fired, that
      is why I suggest you use the built-in formatter

      bahalul kabir escribió:
      >
      >
      > I tried
      > upport_dataTable.subscribe("dropdownChangeEvent",function (oArgs) {
      > alert("hi"); // it does not work too
      > }
      >
      > ------------------------------------------------------------------------
      > *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
      > <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=\'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 <http://www.avg.com/>
      > > Version: 9.0.698 / Virus Database: 270.14.46/2477 - Release Date:
      > 11/02/09 20:39:00
      > >
      > >
      >
      >
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
      > 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