Jump to content

ComboBox multi select - pure extjs


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) {
	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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...