Dynamic creation of controls

I would need to be able to "dynamically create", after selecting the field in question, the combobox with the search criteria in order to create a string sql.
I give an example.
In the initial combobox (indicated with A) I have my tabular fields (Product data, purchase price, sale price, category, group, etc.).
Having made the choice of the field (for example, purchase price), I would like to dynamically create a second combo in which to make the user choose the search value on the selected field (for example "Equal to", "Greater equal to", "Major of ", etc.) and a txtbox in which to enter the value to be tested.
the "+" button should allow me to add a second selection line to the first line in order to increase the search parameters.
I need an example to start the development of the form.
Thank you

Moreno

Attachment: 20180224_ControlliDinamici_c21b5190.zip

3 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team February 27, 2018 01:03 PM UTC

Hi Misonsan

Thank you for contacting Syncfusion Support.

From your update, we come to know that you want to update the ComboBoxAdv based on the opeartion done in Button, ComboBoxAdv and TextBox controls. In our sample, we have called the common method, which would invoked when any operation done in the above mentioned controls. Similarly, by using this method you can update the ComboBoxAdv.

The sample has been prepared for the same and please download it from the following location:

Sample: http://www.syncfusion.com/downloads/support/forum/136098/ze/ComboBox-542844859 

Regards
Vijayalakshmi V.R. 



MI misonsan February 28, 2018 08:28 AM UTC

thank you Vijayalakshmi for your kind reply

My original request asked how to "Clone" in a dynamic way of the controls, ie by clicking the "Add" button, you can dynamically create a new series of controls such as textbox, combobox, etc. in order to insert a new line dynamically.

I certainly could not express the problem correctly and I apologize.
I hope this further contribution can better center the problem.
I repeat that the problem is "Dynamically creating new controls in a form".
Thank you

Moreno


VR Vijayalakshmi Roopkumar Syncfusion Team March 1, 2018 11:33 AM UTC

Hi Misonsan

Thank you for the update.

We understood that your requirement is to dynamically create the controls and build sql query based on selection in ComboBox and Button click. Currently, we don't have component for this. We request you to refer msdn to create a dynamic controls based on sql query.

Regards,
Vijayalakshmi V.R.

Loader.
Up arrow icon