how doe listbox internally work

asked 2017-10-25 22:03:34 +0800

mangaldaslima gravatar image mangaldaslima
11 2

Is there any javascript file, which internally helps listbox for its itemrendering or any event that we do to the listbox?

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted

answered 2017-10-30 21:51:03 +0800

johnniewalk gravatar image johnniewalk

[ValidationPropertyAttribute("SelectedItem")] public class ListBox : ListControl, IPostBackDataHandler

link publish delete flag offensive edit

answered 2017-11-01 10:29:28 +0800

MDuchemin gravatar image MDuchemin
1336 1 4
ZK Team

Hi mangaldaslima,

Short and useless answer: Yes, there are a number of files used in every ZK components. :) Many actually, and which one you need very much depends on what you want to do.

For the useful answer: What exactly do you need to implement? Can you give some details on your plans for the listbox? In many cases, you don't actually need to go to JavaScript level for customization.

If you want to control how each listitem is rendered while working with a model, I would suggest reading the ListItemRenderer or the Listbox template sections in the documentation. https://www.zkoss.org/wiki/ZKEssentials/DisplayinginformationusingtheListbox/UsingaListModelandListitemRenderer https://www.zkoss.org/wiki/ZKDeveloper'sReference/MVC/View/Template/ListboxTemplate

Happy coding!

link publish delete flag offensive edit

answered 2017-11-01 19:01:01 +0800

mangaldaslima gravatar image mangaldaslima
11 2

Thanks MDuchemin for your suggestions.

Here in below i am posting my requirements and approach what i have tried. Please provide any suggestions, how can i solve these issues.

Please check for this Question in my profile "how to fix ListGroupModel performance issue". Because i am unable reply you here by posting that question

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




Asked: 2017-10-25 22:03:34 +0800

Seen: 16 times

Last updated: Nov 01 '17

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