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

Re: Updating an uneditable cell in a Datatable

Expand Messages
  • zahu71
    Thank you Satyam . I had to put this.formatCell(oArgs.editor.cell) to force it to update the UI. ... datatable at ...
    Message 1 of 3 , Dec 27, 2007
      Thank you Satyam .

      I had to put
      this.formatCell(oArgs.editor.cell) to force it to update the UI.

      --- In ydn-javascript@yahoogroups.com, "Satyam" <satyam@...> wrote:
      >
      > The updateRow method allows you to update a whole record of a
      datatable at
      > once.
      >
      >
      http://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html#updateRow
      >
      > The second argument can be read via a call to Record.getData()
      >
      > http://developer.yahoo.com/yui/docs/YAHOO.widget.Record.html#getData
      >
      > which can then be modified and then get everything updated.
      >
      > You can also use RecordSet's updateKey:
      >
      >
      http://developer.yahoo.com/yui/docs/YAHOO.widget.RecordSet.html#updateKey
      >
      > Notice that while updateRow updates both the data down in the
      RecordSet and
      > the UI, updateKey requires you to refresh the datatable for the user
      to see
      > it, which you might want to delay until a time of your choice but
      otherwise
      > it is more trouble.
      >
      > Satyam
      >
      >
      >
      > ----- Original Message -----
      > From: "zahu71" <zaherhammoud@...>
      > To: <ydn-javascript@yahoogroups.com>
      > Sent: Thursday, December 27, 2007 6:11 PM
      > Subject: [ydn-javascript] Updating an uneditable cell in a Datatable
      >
      >
      > > Hi,
      > >
      > > How can I update a non editable cell in a datatable ?
      > >
      > > Thanks
      > >
      > >
      > >
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      > >
      > >
      > > --
      > > No virus found in this incoming message.
      > > Checked by AVG Free Edition.
      > > Version: 7.5.516 / Virus Database: 269.17.9/1198 - Release Date:
      > > 26/12/2007 17:26
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.