WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Grid object - current row data?, Baz, August 4, 2003
     Re:Grid object - current row data?, Emil A Eklund, August 4, 2003
         Re:Grid object - current row data?, Baz, August 5, 2003
             Re:Grid object - current row data?, Baz, August 6, 2003

Subject: Re:Grid object - current row data? From: Baz Date: August 5, 2003

Hmm.

Okay, I added some code to the example Grid object on your site, a button which when clicked displays an alert containing:

return webFXGridHandler.all[oGrid.getSelected()].sid

This just generates a JS error in IE6, saying "webFXGridHandler.all[...].sid' is null or not an object.

I also tried:

return oGrid._selectedRow.sid;

but this just displays 'undefined'.

I'm sure I'm doing something stupidly wrong, but can't work out exactly what :(

TIA...

From: Emil A Eklund
Sent: August 4, 2003
Subject: Re:Grid object - current row data?

getSelected returns a reference to the tr element.
To get the actual grid object, use the all collection, like this.

webFXGridHandler.all[grid.getSelected()].sid

You could also use the internal undocumented _selectedRow property. grid._selectedRow.sid


Yes, I know. The grid is a mess.

/Emil



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX