Jump to content

ComboBox multi select - pure extjs


mhmda

Recommended Posts

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,
...
...
...
Link to comment
Share on other sites

  • 3 weeks later...

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.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...