Titanium Community Questions & Answer Archive

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

update tableviewrow on touchstart/end?

i tried to update a custom tableviewrow by adding touchstart/end events, however this doesn't seem to work

how do you change the color of label elements inside a custom tableviewrow if the row is selected? also there is a bug where in a grouped tableview the rounded corners are lost when selecting the first/last row of the table

— asked March 31st 2010 by Christian Sigl
  • custom
  • event
  • iphone
  • tableview
  • tableviewrow
  • update
0 Comments

4 Answers

  • Accepted Answer

    Try setting the highlightedColor property on each label.

    The rounded corners bug is a known issue - hopefully it will be fixed soon.

    — answered March 31st 2010 by James K
    permalink
    0 Comments
  • thanx, missed that property.

    yes it's a bug, but it should have been fixed long ago, at least before releasing a 1.0 to the public … i'm working on my first project for a customer at the moment, and already found 3 display bugs, that are critical. let's say you get a design from your customer, how should i tell him, that rounded corner tables aren't possible, because of a bug that's not yet fixed by the framework's developer, that i praised to my customer as cheaper and less time consuming when it comes to developing his iPhone app?

    i would pay 200 bucks for professional support if they fix those bugs, do you have experiences with the paid option. is it worth for getting bugs fixed quickly?

    i also have an image on the row, that should get the opposite color value when the row is highlighted, how would you solve this? is changing the rows objects properties possible by using a touch event at a tableviewrow? i tried getting the elements by using e.source, but it didn't work

    — answered March 31st 2010 by Christian Sigl
    permalink
    0 Comments
  • If your project is for a commercial client, you should probably take the time to code your own solution into the Titanium source. Even with some custom tweaks, Titanium still allows for significantly faster development than coding the whole app in objective C, and it's still free.

    The need to implement some custom tweaks doesn't change the fact that your client is still getting the best deal available (subject to your personal rates and experience).

    I agree that the bug should have been fixed long ago, but if that had occurred, no doubt we would presently be complaining about some other bug that went unfixed because they were fixing rounded corners. :)

    My experience with Titanium Professional is limited to the trial period offered before the public release. Whilst my particular experience was somewhat disappointing, I think most serious developers have been quite satisfied.

    There is one thing that can be said with certainty - the Titanium crew are prioritising paid support requests over the questions posed in this forum.

    Regarding images in rows, except for chevrons and accessory views, images are not usually changed upon highlight. If you want to implement this kind of change yourself, you can use e.row.children[i] to access the ith object added to the row (starting from 0).

    By the way, if you do take the time to fix the rounded corners bug, please share it with the rest of the community!

    — answered March 31st 2010 by James K
    permalink
    0 Comments
  • thanx, didn't know about the children object. so touchstart/touchend should work too?

    i will buy the professional account in the not too distant future as i have some projects in the pipeline, however i'd like to know, if monthly payment means, that i can quit it let's say after one month, and rejoin two months later

    also i think there should be a ability to add this kind of information you both gave me in this thread directly to the api-documentation, as searching in the forum is not very userfriendly

    — answered March 31st 2010 by Christian Sigl
    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.