Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

table_view_layout_2 search issue

I am using the iPhone simulator and when I cut and paste the KitchenSink table_view_layout_2.js into my sample project the search does not work correctly. If I enter "3" into the Search Bar it shows a blank row, then Fred Smith 13, Fred Smith23, etc. Why did I get a blank row instead of Fred Smith 3? If I enter "2" into the Search Bar it shows a blank row, then Fred Smith 12, Fred Smith 20, Fred Smith 21, etc. Why did I get a blank row instead of Fred Smith 2?

It works when I open the KitchenSink app with the iPhone simulator but the same code (copy paste the entire table_view_layout_2.js) in my own project is acting funny with the search.

I am using SKD 4.1. Any ideas what could possibly going wrong?
(The only reason I even came to the point of copying and pasting the entire file was because I was seeing this exact issue in my current project and couldn't figure out why it worked for KitchenSink.)

Thanks for any help!

— asked November 8th 2010 by Wendy
  • empty
  • iphone
  • rows
  • searchbar
  • tableview
  • table_view_layout_2
0 Comments

1 Answer

  • The difference between my project was that I was opening the window using win.open() as opposed to KS using Titanium.UI.currentTab.open(win). I open the window with the searchBar from a tab the search works correctly. A post from Olivier to the Q: "Hide Tab Bar in Android" showed how to do this through the whole project.

    — answered November 11th 2010 by Wendy
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.