0

How to do Paging function on FullScreen?

Hi all,

I am doing my project on FullScreen. Now I was having one FullScreen screen and I used container object to contain a screen has paging task on this screen.
So I extended KONtx.system.BaseView to override createView and updateView function, but I saw that it did not run createView and updateView function.
I do not know if I extended KONtx.system.BaseView exactly. The following is my example:

CODE
var renderDBMatchUpContent = new KONtx.Class({
ClassName: 'renderDBMatchUpContent',
Extends: KONtx.system.BaseView,
createView: function() {
log('------------Begin createView');
var myGridCont = new KONtx.element.Container({
styles: {
hOffset: this.config.hOffsetLeft,
width: this.config.styles.width - 2 * this.config.hOffsetLeft,
height: this.config.styles.height,
}
}).appendTo(this);

this.myGrid = new KONtx.control.Grid ({
focus: false,
rows: this.config.nRow,
columns: 1,
pager: pager,
orientation: 'horizontal',
cellCreator: this.cellCreator,
cellUpdater: this.cellUpdater,
styles: {
width: this.config.styles.width,
height: myGridCont.height - $_scale(145),
}

}).appendTo(myGridCont);

var listIndicator = new KONtx.control.PageIndicator({
styles: {
//width: containerDBMatchUpContent.width - (2 * hOffsetLeft) + $_scale(4),
height: $_scale(this.config.baseHeight),
vOffset: myGrid.outerHeight,
hOffset: this.config.hOffsetLeft * 2 + this.config.space * 2,
}
}).appendTo(this);

this.myGrid.attachAccessories(listIndicator);
log('------------End createView');
},

updateView: function() {
log('------------Begin updateView');
var items = this.combine(this.config.itemsData1, this.config.itemsData2);
if (items instanceof Array) {
log('------------change dataset');
this.myGrid.changeDataset(items, true);
} else {
this.myGrid.changeDataset([], true);
}
log('------------End updateView');
},
});

by
5 Replies
  • I believe for your purposes a Text() placed inside a Container() for masking would work better.

    Then you simply have to create two buttons that jump the height of the text() by the height of the Container() by-passing the need to updateView
    0
  • The problem is you are extending from BaseView. You should not be extending from BaseView, but rather FullscreenView if it's intended to be fullscreen. Otherwise your view will not be "full screen".

    -Jeremy
    0
  • Hi WidgetRealm,

    It is way, if I can not use from Framework.

    Hi Jeremy,

    My view is "full screen". I had a general view from FullScreen. If I extend FullscreenView for a view has paging task , it will cover my general view. So would you solve this problem from Framework?

    Thanks and Regards,
    Daita999.
    0
  • QUOTE (tatquanghoa @ May 12 2009, 06:18 PM) <{POST_SNAPBACK}>
    Hi WidgetRealm,

    It is way, if I can not use from Framework.

    Hi Jeremy,

    My view is "full screen". I had a general view from FullScreen. If I extend FullscreenView for a view has paging task , it will cover my general view. So would you solve this problem from Framework?

    Thanks and Regards,
    Daita999.


    I think I need to see your whole widget before I can help further. It seems we have a big disconnect and by me seeing your widget I can better assist you.

    -Jeremy
    0
  • QUOTE (Jeremy Johnstone @ May 13 2009, 09:40 AM) <{POST_SNAPBACK}>
    I think I need to see your whole widget before I can help further. It seems we have a big disconnect and by me seeing your widget I can better assist you.

    -Jeremy

    Hi Jeremy,

    Thanks for your assistance! I controlled this problem yesterday. I have not extended BaseView and FullscreenView, only simply extend Container.

    Thanks,
    Daita999.
    0

Recent Posts

in General - Yahoo! TV Widgets