Jump to content
uniGUI Discussion Forums
mhmda

ComboBox multi select - pure extjs

Recommended Posts

A.O.A Mohammad,

 

Great share as always.

 

Do you have multi-column DB and non-DB aware combo box? If possible a combo box with embedded UniFrame or UniDBGrid, etc.

This will be a great share.

 

Best regards

Share this post


Link to post
Share on other sites

All happen in client side, so you can treat it as 'db' OR 'non db' :-)

 

It's extend the 'panel' to do the job:

Ext.define('Ext.ChosenWidgetContainer', {
    extend: 'Ext.panel.Panel',
    alias: 'widget.chosenwidgetcontainer',
    constructor: function (cnfg) {
        this.callParent(arguments);
        this.initConfig(cnfg);
    },
	margin: 0,
	padding: 0,
...
...
...

Share this post


Link to post
Share on other sites

Very good Congratulations!

Mohammad, I have 3 doubts:

1- How to return the selected values? For example: I selected "Madrid" and "Dubai", how can I go through this list and check which items have been selected?

2- How to insert items dynamically in the list? Let's say I need to go into the database, make a query and return the result of that query to mount the checkbox options?

3- When I click Edit, if the list with the options is not open, it opens. If I click Edit, and the list is open, it closes and returns to its original size. Can you make the list return to its original size by clicking outside the edit within the panel?

Thank you very much.

Share this post


Link to post
Share on other sites

Has anyone made this into a component? would be very interesting to use as a filter

Share this post


Link to post
Share on other sites

Not working if clear button is enabled in combobox.

Can you fix it?

Share this post


Link to post
Share on other sites

×