1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    7
    Answers
    1
    Vote Rating
    0
    jecal is on a distinguished road

      0  

    Default Answered: Ext.Img in Grid Cell

    Answered: Ext.Img in Grid Cell


    Hello,

    does anyone know how to get an Ext.Img instance into a Grid Cell (custom renderer,...?), I would like to use the loading (exception,load,...) functionality of the Ext.Img Class (I can't assume that all images are available and would like to replace missing thumbnails with a placeholder image).

    Thanks in advance.

    Best regards,
    Jens

  2. Would something like this UX help to where you can add Img as a component to the cell?
    http://skirtlesden.com/ux/component-column

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,871
    Answers
    652
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Here are some examples:
    There are numerous examples online about image examples in a grid, just do a quick search.

    For the no image, just add this to your call:
    Code:
    onError=this.src="photos/no_photo.jpg // where your placeholder image resides

  4. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    7
    Answers
    1
    Vote Rating
    0
    jecal is on a distinguished road

      0  

    Default


    Well thanks for the workaround

    But is there a way to get an Ext.Img into a cell?

    All the examples I've seen are just using a rendering-function on the column and return simple strings (<img src="blah" ...).

    Thanks,
    Jens

  5. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,871
    Answers
    652
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      1  

    Default


    Would something like this UX help to where you can add Img as a component to the cell?
    http://skirtlesden.com/ux/component-column

  6. #5
    Sencha User
    Join Date
    Jun 2010
    Posts
    7
    Answers
    1
    Vote Rating
    0
    jecal is on a distinguished road

      0  

    Default


    Oops. I thought that i must have missed some out-of-the-box functionality.

    Thank you! I will take a look at the linked addons

    Best regards,
    Jens

Thread Participants: 1

Tags for this Thread