|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Navigating on DataTable row clickIs it possible to have a click on a DataTable row result in navigation to
another page? I'd essentially like to have each row link to a page of additional details about that row. So essentially, I'd like to make the entire row act as a hyperlink when selected. |
|
|
Re: Navigating on DataTable row clickYou don't even need to navigate elsewhere to do that:
http://www.satyam.com.ar/yui/#TableWithDetails any of the tabs in the popup can contain whatever, not just a DataTable. Of course, if you want, in response to the row click you can navigate elsewhere. Satyam Todd Wells wrote: > Is it possible to have a click on a DataTable row result in navigation > to another page? I'd essentially like to have each row link to a page > of additional details about that row. So essentially, I'd like to > make the entire row act as a hyperlink when selected. > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.134 / Virus Database: 270.4.4/1531 - Release Date: 02/07/2008 19:02 > |
|
|
Re: Navigating on DataTable row clickThat is a very nice example, but actually in my case I *do* need to navigate
elsewhere (and not just use a pop-up panel) -- how do I make the row click result in navigation? On Thu, Jul 3, 2008 at 6:11 AM, Satyam <satyam@...> wrote: > You don't even need to navigate elsewhere to do that: > > http://www.satyam.com.ar/yui/#TableWithDetails > > any of the tabs in the popup can contain whatever, not just a > DataTable. Of course, if you want, in response to the row click you can > navigate elsewhere. > > Satyam > > > Todd Wells wrote: > > Is it possible to have a click on a DataTable row result in navigation > > to another page? I'd essentially like to have each row link to a page > > of additional details about that row. So essentially, I'd like to > > make the entire row act as a hyperlink when selected. > > > |
|
|
Re: Navigating on DataTable row clickIn response to a click on whatever you choose in the DataTable, for
example, in a row, you can do: myDataTable.subscribe('rowClickEvent',function (ev) { var target = YAHOO.util.Event.getTarget(ev); var record = this.getRecord(target); var sUrl = 'whatever' + record.getData('someFieldName') + 'whatever else'; document.location = sUrl; }); You can use any combination of fields from the record via method getData, even from fields that are not visible in the table. This is taken from the example I mentioned, instead of calling the show() function, I am setting document.location, which is the way you make your browser go elsewhere. Satyam Todd Wells wrote: > That is a very nice example, but actually in my case I /do/ need to > navigate elsewhere (and not just use a pop-up panel) -- how do I make > the row click result in navigation? > > > On Thu, Jul 3, 2008 at 6:11 AM, Satyam <satyam@... > <mailto:satyam@...>> wrote: > > You don't even need to navigate elsewhere to do that: > > http://www.satyam.com.ar/yui/#TableWithDetails > > any of the tabs in the popup can contain whatever, not just a > DataTable. Of course, if you want, in response to the row click > you can > navigate elsewhere. > > Satyam > > > > Todd Wells wrote: > > Is it possible to have a click on a DataTable row result in > navigation > > to another page? I'd essentially like to have each row link to a > page > > of additional details about that row. So essentially, I'd like to > > make the entire row act as a hyperlink when selected. > > > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.135 / Virus Database: 270.4.4/1532 - Release Date: 03/07/2008 8:32 > |
| Free Forum Powered by Nabble | Forum Help |