Results 1 to 6 of 6

Thread: unable to show images in ItemSelector.

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    43
    Vote Rating
    1
      0  

    Default Unanswered: unable to show images in ItemSelector.

    Hi,
    I am using ItemSelector to select the particular items. but in that I am unable to display the images. How can I set Image path to it?
    my code is

    var isForm = Ext.widget('form', {
    title: 'ItemSelector Test',
    width: 700,
    bodyPadding: 10,
    height: 300,
    // renderTo: 'itemselector',
    layout: 'fit',
    items:[{
    xtype: 'itemselector',
    name: 'itemselector',
    id: 'itemselector-field',
    anchor: '100%',
    fieldLabel: 'ItemSelector',
    imagePath: '../ux/images/',
    store: StoreLoad,
    displayField: 'activity',
    valueField: 'activityId',
    allowBlank: false,
    msgTarget: 'side',
    fromTitle: 'Available',
    toTitle: 'Selected'
    }],
    });

    provide me the solution.

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Answers
    501
    Vote Rating
    249
      0  

    Default

    The config: imagePath is not a config of itemSelector:
    http://docs.sencha.com/extjs/4.2.0/#...m.ItemSelector

    What are you trying to do?

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    43
    Vote Rating
    1
      0  

    Default

    I saw the link you have given. But it is not showing any example.
    Can you provide example for that...

  4. #4
    Ext GWT Premium Member
    Join Date
    Oct 2009
    Posts
    137
    Vote Rating
    5
      0  

    Default

    I am not able to get ItemSelector and its button icons to be displayed. In example it uses this: imagePath: '../ux/images/'what I found under my ext/src/ux/css/images,but it does not do the job.Also loaded ext/src/ux/css/ItemSelector.cssany idea?

  5. #5
    Sencha Premium Member
    Join Date
    Jan 2013
    Location
    Germany Krombach
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Not really nice, but you need to include the css file.

    HTML Code:
    <link rel="stylesheet" href="../ext/src/ux/css/ItemSelector.css">

  6. #6
    Sencha User
    Join Date
    Jan 2015
    Posts
    1
    Vote Rating
    0
      0  

    Default Thanks

    Quote Originally Posted by robert.r View Post
    Not really nice, but you need to include the css file.

    HTML Code:
    <link rel="stylesheet" href="../ext/src/ux/css/ItemSelector.css">

Posting Permissions

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