Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Datatable - select first record when data has been (re)fetched and t   Message List  
Reply | Forward Message #33890 of 52120 |
Re: Datatable - select first record when data has been (re)fetched and tbl. is drawn

Satyam,

> dataReturnEvent fires when data has arrived,
> before it was processed.

Thanks, yes, that's why I can't properly use it.


> renderEvent upon re-rendering the table except for the
> first time around.

YAHOO.ddTech.AppointTable.oDataTable.subscribe(
"renderEvent",
function() {
alert("render event");
}
);


never seems to fire. I have the dataTable in a dialog that I simply
show and hide and so reuse the table more than once. On subsequent
calls I do

oTable.initializeTable();
oTable.render();
oTable.showTableMessage( DataTable.MSG_LOADING );
oDS.sendRequest(
cPostData,
oTable.onDataReturnInitializeTable,
oTable);

Hmmm... is it maybe due to the initializeTable ???
and then each time firing the initEvent???

thanks Satyam, I'll give it a shot and let You know.


> The first time initEvent gets fired,
> that's the one you are looking for.

I'll see, if in my scenario each request is the "first request" :D


Satyam, it's Sunday here - why the hell are You online anyway ?










Sun Jul 6, 2008 5:49 pm

dietrich.frank
Offline Offline
Send Email Send Email

Forward
Message #33890 of 52120 |
Expand Messages Author Sort by Date

Hi, I am trying to select the first record of a datatable as soon as the data has arrived. Data is coming in via async-request and the table can be reused for...
dietrich.frank
Offline Send Email
Jul 6, 2008
4:50 pm

dataReturnEvent fires when data has arrived, before it was processed. renderEvent upon re-rendering the table except for the first time around. The first...
Satyam
satyamutsa
Offline Send Email
Jul 6, 2008
4:57 pm

Satyam, ... Thanks, yes, that's why I can't properly use it. ... YAHOO.ddTech.AppointTable.oDataTable.subscribe( "renderEvent", function() { alert("render...
dietrich.frank
Offline Send Email
Jul 6, 2008
5:49 pm

Satyam, ... Perfect! yes indeed initEvent is firing every time I populate or repopulate the dataTable. Honestly I would have never come to that idea, as I...
dietrich.frank
Offline Send Email
Jul 6, 2008
6:32 pm

sorry, small typo. ... should be oEl.selectRow(oEl.getTrEl(0)); minor update: I am meanwhile doing it by employing window.setTimeout() from within the...
dietrich.frank
Offline Send Email
Jul 6, 2008
5:31 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help