Results 1 to 2 of 2

Thread: Itemselector with multiple columns

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jul 2014

    Default Itemselector with multiple columns

    I need something like the Itemselector widget (second example in the below page)

    The one additional thing that I need for this ItemSelector is the ability to show multiple columns in both 'Available' List as well as the 'Selected' list.

    My use case is something like this. In the available list I need to show users within the organization. Some of these users will then be selected and added to the selected list.

    If I just show the username in the list then that may not be enough as there could be multiple users with similar names. So I need to supplement the username with additional information like department, email, phone number etc., so that user can be easily identified.

    Does any such widget already exist? If not, is it feasible to extend the Item Selector widget to achieve this?

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Boise, ID



    The itemselector uses a multiselect ux internally, but doesn't allow for a config for it to be passed in. If you want to change that you'll have to override the createList method. The boundlist doesn't allow for columns, but you could pass a custom itemTpl to it to create a more complex item view. For that you'll use the multiselect's private listConfig config which will let you pass in the tpl config:

    Bottom line will be that you'll have a bit of overriding to do to modify the widget from the way it is out of the box.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts