getting the focus for listitem

4 messages - 1192 views

Hi,

I displayed the lsitiems on the screen dynamically. Here i displayed 100 s of listitem. Here what i need just like search listiems(Just like Search field). Means whenever i press the keys on keyboard, based on that character focus will be going to the related character Listitems.

Example:

I press the 'G' on keyboard and based on this character focus will be going to  character 'G' listiems.Like govind, gurv,good,god.....etc

Is it possible using this Kuix frame work. if it is possible how can i get this. please help me..

 

Regards,
Suresh A

Take a look at the focused attribute on listItem and bestScrollToChild(Widget) on your scrollPane.

Hi Tofu thanks for the reply.

 

Where can i implement the focused attribute and bestScroolTochild(Widget) method. I didnt understood. Can you explain regarding this..

 

 

Regards,

Suresh A

Focused is an attribute, then you can use a dynamic property to set its value int xml. When the value change, the focus change.

After, you can invoke the bestScrollToChild method on your scrollPane widget somewhere in your java code where you process the key event for example.