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

Re: custom DropdownCellEditor problem

Expand Messages
  • claracruzz
    Hi Satyam, Thanks a Million... It is my dream that I can spend my retirement doing what you do. Absoulutely splendid. Regards, Clara ... your ... like ...
    Message 1 of 3 , Dec 1, 2008
    • 0 Attachment
      Hi Satyam,

      Thanks a Million... It is my dream that I can spend my retirement
      doing what you do. Absoulutely splendid.

      Regards,

      Clara
      --- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
      >
      > You are calling the superclass of your superclass, which is fine in
      your
      > case, the problem is that BaseCellEditor takes an extra argument, so
      > your configs are offset by one. DropdownCellEditor itself calls it
      like
      > this:
      >
      > YAHOO.widget.DropdownCellEditor.superclass.constructor.call(this,
      > "dropdown", oConfigs);
      >
      > Satyam
      >
      > claracruzz wrote:
      > > Hi,
      > >
      > > I have a custom DropdownCellEditor that is doing the following;-
      > >
      > > YAHOO.widget.DoubleDropdownCellEditor = function (oConfigs) {
      > > this._sId = "yui-dropdownceditor" +
      > > YAHOO.widget.BaseCellEditor._nCount++;
      > > oConfigs = oConfigs || {};
      > > oConfigs.type = 'dropdown';
      > > YAHOO.widget.DropdownCellEditor.superclass.constructor.call(this,
      > > oConfigs);
      > >
      > > };
      > >
      > > YAHOO.lang.extend(YAHOO.widget.DoubleDropdownCellEditor,
      > > YAHOO.widget.DropdownCellEditor, {
      > > dropdownOptions : null,
      > > dropdownOptions_2 : null,
      > > dropdown : null,
      > > disableBtns: false,
      > >
      > > renderForm : function () {
      > > alert(this.dropdownOptions);
      > > ..
      > > ..
      > > ..
      > > }
      > > });
      > >
      > > Then i'm doing the following where I require it;-
      > >
      > > editor: new
      > >
      YAHOO.widget.DoubleDropdownCellEditor({dropdownOptions:arrListCallType,dropdownOptions_2:arrListCategory,disableBtns:true})
      > >
      > >
      > > But for some reason, the value dropdownOptions:arrListCallType and
      > > dropdownOptions_2:arrListCategory are not being passed. The line
      > > alert(this.dropdownOptions); displays 'null' value.
      > >
      > > How do I set it up so that I can pass values or so that the value
      > > passed is being received.
      > >
      > > Thanks...
      > >
      > >
      > > ------------------------------------
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      > >
      ------------------------------------------------------------------------
      > >
      > >
      > > No virus found in this incoming message.
      > > Checked by AVG - http://www.avg.com
      > > Version: 8.0.175 / Virus Database: 270.9.10/1812 - Release Date:
      25/11/2008 19:53
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.