PDA

View Full Version : Titles on the nested list



KPChow
2 Jan 2012, 4:30 AM
Hi guys,

I've managed to create a nested list where I can change the title of the leaf if it's too long. However, I can't get it to change within the submenu. Example, if my nested list looked like this:

- Menu
- Submenu 1
- leaf 1
- leaf 2
- leaf 3
- Submenu 2
- leaf 1
- leaf 2
- leaf 3
- leaf 4
- leaf 5

How do I change the title of 'Submenu 1' and 'Submenu 2' to something else, like 'New Submenu Name 1' and 'New Submenu Name 2'?

Thanks
K

mitchellsimoens
2 Jan 2012, 6:12 AM
The NestedList fires the renderTitleText method on itself to return the title string. It passes in the record. So you can return whatever you want.

KPChow
2 Jan 2012, 12:57 PM
Thanks for the reply mitchellsimoens, is there any chance of seeing a example? Sorry but I did a search through the forum and none of them are showing it on laymen terms for me. :">

K

KPChow
11 Jan 2012, 6:34 AM
Anyone out there who can show me a standard example? :(