jQWidgets Forums

jQuery UI Widgets Forums Grid Templating with more then one datafield

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 10 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • aakash88
    Participant

    Is it possible to have more then one datafield in a column so that we can template it. Example movies is the data can we have image and title in a single column ?-
    var movies = new Array();

    // Avatar
    movies[0] = { Image: ‘avatar.png’, Title: ‘Avatar’, Year: 2009 };
    movies[1] = { Image: ‘priest.png’, Title: ‘Priest’, Year: 2006 };
    movies[2] = { Image: ‘endgame.png’, Title: ‘End Game’, Year: 2006 };
    movies[3] = { Image: ‘unknown.png’, Title: ‘Unknown’, Year: 2011 };
    movies[4] = { Image: ‘unstoppable.png’, Title: ‘Unstoppable’, Year: 2010 };


    ivailo
    Participant

    Hi aakash88,

    It’s not possible to have more than one datafield in column, but you can combine the information of 2 or more columns in single one.
    You can use cellsrenderer functions of the columns property.

    More information about cellrendering you can read here.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.