[ 2 posts ]

Martin Novák

  • Username: martin_novak
  • Joined: Thu May 31, 2012 11:48 am
  • Posts: 1
  • Location: Prague, Czech Republic
  • Offline
  • Profile

Datatable hiding rows

Post Posted: Thu May 31, 2012 11:58 am
+0-
Hello,

I would like to hide/show some rows in some situations - for example when programatically searching for a particular term in the table that I input in some text field. Is it possible to filter content of the datatable component?

thanks in advance,

Martin

Alberto Santini

YUI Contributor

  • Offline
  • Profile

Re: Datatable hiding rows

Post Posted: Thu May 31, 2012 12:46 pm
+0-
Hello Martin.

You can give a look at "Another Html scraping with YQL, DataTable and AutoComplete" example [1].

Basically I filter the records of the datatable using the value of the autocomplete widget. Then I fill the datatable with the new data:

gamesDT.set('data', newGames);

Hope that helps,
Alberto

[1] http://albertosantini.github.com/
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum