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

Re: [ydn-javascript] Re: DataTable Inline Cell Editing Refresh View After Edit

Expand Messages
  • Satyam
    This article deals with updating the database http://yuiblog.com/blog/2007/09/26/satyam-datatable-2 Satyam ... From: rashmeep2000 To:
    Message 1 of 3 , May 2, 2008
    • 0 Attachment
      This article deals with updating the database

      http://yuiblog.com/blog/2007/09/26/satyam-datatable-2

      Satyam


      ----- Original Message -----
      From: "rashmeep2000" <RPrasad2@...>
      To: <ydn-javascript@yahoogroups.com>
      Sent: Friday, May 02, 2008 7:03 AM
      Subject: [ydn-javascript] Re: DataTable Inline Cell Editing Refresh View
      After Edit


      > HI,
      >
      > Can you please tell me/show code where u are trying to send the
      > modified data to back end for updation?...please let me know..
      >
      > thanks.
      >
      >
      > --- In ydn-javascript@yahoogroups.com, "Tristan Putman"
      > <tristanputman@...> wrote:
      >>
      >> I've been reading the forums and have found threads with similar
      > problems,
      >> but none of the code suggestions seem to work.
      >>
      >> After I perform my asyncrequest to update my backend, the datatable
      > still
      >> reflects the old value instead of showing the new value that was
      > updated.
      >>
      >> I have added the following functions for the Save Event and the
      > Refresh Row,
      >> and they are being called after my asyncrequest, but I'm not sure
      > what I
      >> need to add to get the column key cell updated with the value that
      > was typed
      >> in the cell editor.
      >>
      >> You can view this page at the following address:
      >> http://www.billinggoat.com/secure/item_management.php
      >>
      >>
      >>
      >>
      >> this.myDataTable.subscribe("editorSaveEvent", function(oArgs) {
      >> if (oArgs.newData != oArgs.oldData){
      >> var rec = oArgs.editor.record;
      >>
      >> //What goes here to update the cell that was edited?
      >>
      >> }
      >> });
      >>
      >> YAHOO.widget.DataTable.prototype.refreshRow = function(row) {
      >> var $D = YAHOO.util.Dom;
      >> $D.batch($D.getChildren(this.getTrEl
      > (row)),this.formatCell,this,true);
      >> };
      >> Any help is appreciated.
      >> Tristan Putman
      >>
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      > --
      > No virus found in this incoming message.
      > Checked by AVG.
      > Version: 7.5.524 / Virus Database: 269.23.7/1410 - Release Date:
      > 01/05/2008 17:30
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.