0

how to provide onclick / onselect event to image

Hi,

I am getting the images list from xml file and placing in the grid cell, clicking on image should load another view. could any one suggest how to provide the event to image in cell?

Thanks
swarup

by
1 Reply
  • Use onSelect events of cellCreator's function which you are setting while declaring the grid.
    CODE
    cellCreator: function ()
    {


    var gridCell = new KONtx.control.GridCell({
    styles: {

    } ,


    events: {
    onFocus: function (event)
    {

    },
    onBlur: function(event)
    {

    },

    onSelect: function(event)
    {
    //Load your another view here.
    KONtx.application.loadView('view-nextView');

    },

    }
    });
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets