jQWidgets Forums

jQuery UI Widgets Forums Grid grid image

This topic contains 5 replies, has 4 voices, and was last updated by  Peter Stoev 9 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    grid image Posts
  • grid image #15296

    sudarshan
    Member

    How to display the image in the grid from the database in codeigniter?? Please help me

    grid image #15322

    taraman
    Member

    I cut this example from my own code:

    var renderSurgeryStatusImage = function (row, columnfield, value, defaulthtml, columnproperties) {
    return ‘‘;
    };

    columns: [
    { text: “”, dataField: “SurgeryStatusImagePath”, width: 50, cellsrenderer: renderSurgeryStatusImage }
    ]

    Note: SurgeryStatusImagePath is a column in database has the image url

    grid image #15323

    taraman
    Member
    var renderSurgeryStatusImage = function (row, columnfield, value, defaulthtml, columnproperties) {
    return '<img src="' + value + '" style="margin-left: 15px;margin-top: 5px" />';
    };
    grid image #16414

    sudarshan
    Member

    thank you @taraman

    grid image #74435

    Jester6
    Participant

    I know it is a couple of years since this post BUT…
    taraman You my friend are a genius

    I have been looking for a solution to this issue for hours and the only one that WORKS is yours!!!

    Thankyou Thankyou Thankyou

    grid image #74438

    Peter Stoev
    Keymaster

    Hi Jester6,

    There is a sample called Image Column posted several years ago and available in the Grid’s live demos, too. The link to the sample is – http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/imagecolumn.htm?arctic

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.