Results 1 to 3 of 3

Thread: Problem with filefiled.

  1. #1

    Default Problem with filefiled.

    Hi.
    I have problem. I uploaded img and needed to show her in grid. How I can do it? I use filereader. But I see [Object object]
    Thanks. Sorry for my english.

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006
    Answers
    5

    Default

    Hello-

    Sorry you are having trouble. I do not know the answer but I have shared this with our support team and asked that they can help you. They will be reaching out to you at their earliest convenience. Your patience is greatly appreciated.

    Cheers,

    Michele

  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569
    Answers
    7

    Default

    Hello,

    You can use renderer to show image. For eg:
    {
    header: 'Photo',
    dataIndex: 'photo',
    renderer: function(value){
    return '<img src="' + value + '" />';
    },


    You can use widgetcolumn as shown in fiddle

    https://fiddle.sencha.com/#view/editor&fiddle/1mqo and use renderer to replace file path with html img tag.


    I hope this helps.

    Regards,
    Kumar
    Sencha Support.

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
  •