1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    43
    Vote Rating
    1
    chinnib37 is on a distinguished road

      0  

    Default Unanswered: unable to show images in ItemSelector.

    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
    5,369
    Answers
    433
    Vote Rating
    200
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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
    chinnib37 is on a distinguished road

      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
    131
    Vote Rating
    5
    zlevardy is on a distinguished road

      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
    robert.r is on a distinguished road

      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">