0

How to get specific listitem from listbox

asked 2015-03-10 09:17:31 +0800

demizon gravatar image demizon
179 1 6

updated 2015-03-10 09:18:05 +0800

Hello,

let's say i have listbox o persons with attribute "id". Now I write id for example 7 into textbox. Can some1 help me how could i get listitem(person with id 7) from listbox so I can change its style (highlight it)?

Thx in advance.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-03-10 13:51:26 +0800

Darksu gravatar image Darksu
1991 1 4

Hello demizon,

A nice approach would be to use a renderer as shown at the following url:

http://zkfiddle.org/sample/1t9kc1e/5-Listbox-Render-on-Demand#source-2

At the renderer class you can add a conditional statement in order to specify the id you want to change the styling.

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-03-10 09:17:31 +0800

Seen: 15 times

Last updated: Mar 10 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More