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

14672Re: DataTable update DataSource

Expand Messages
  • Ted Husted
    Jun 19, 2007
      --- In ydn-javascript@yahoogroups.com, "k_and_u" <k_and_u@...> wrote:
      >
      > This doesn't work. showPage raises an excetpion probably because my
      > datatable is not from more than one page.

      Try

      oDataTable.replaceRows(refreshedRecords);
      oDataTable.showPage(oDataTable.pageCurrent);

      or

      oDataList.replaceRows(refreshedRecords);
      oDataList.showPage(0);

      HTH, Ted.
      http://yazaar.org/

      > Any other ideas? I tried re-creating the table but the performance
      > is
      > terrible.
      >
      > Thank you very much,
      > --
      > Kamen
      >
      >
      > --- In ydn-javascript@yahoogroups.com, "jstell" <jstell@> wrote:
      > >
      > > I am doing this in 2.2.2 with:
      > >
      > > var updatedData = myDataSource.parseJSONData("",jsonObj);
      > > myDataTable.getRecordSet().replace(updatedData);
      > > myDataTable.showPage(1);
      > >
      > >
      > >
      > > --- In ydn-javascript@yahoogroups.com, "k_and_u" <k_and_u@> wrote:
      > > >
      > > > Hi,
      > > >
      > > > I have a DataTable with an associated DataSource. The chages of the
      > > > DataSource are not visible in the DataTable. What should I do to
      make
      > > > it work?
      > > >
      > > > The problem appears in version 2.2.2. In 2.2.0 I made do with this:
      > > >
      > > > var newData = myOtherDataTable.getRecordSet().replace(tblDataTime);
      > > > myOtherDataTable.replaceRows(newData);
      > > >
      > > > Thanks in advance,
      > > >
      > > > --
      > > > Kamen
      > > >
      > >
      >
    • Show all 7 messages in this topic