Hi,
I want webix component to be showed dynamically in my page. I have a combo component,on selection of an option i am querying DB. So I want to display textfields based on the number of records retrieved from DB .If I am getting 2 records I want to show 2 textfields ,if 3 records 3 textfields. So my requirement is showing dynamic textfields .How can I achieve this? Please do suggest a solution ASAP.
Hi,
You can dynamically change layout in two ways:
-
Adding or removing views http://webix.com/snippet/040fe7d4.
Check the docs: http://docs.webix.com/desktop__dynamic_layout.html -
Rebuilding layout in webix.ui() constructor http://webix.com/snippet/03480815.
Check the docs:
http://docs.webix.com/helpers__top_ten_helpers.html#webixui
Also, Webix Ajax module may be helpful http://docs.webix.com/helpers__ajax_operations.html