Damn...I don't know why I didn't think of this. Of course, it worked perfectly with a minimal amount of effort. Thanks for the nudge in the right direction!
If anyone else is interested, here's the rather simple code for my class. Most of the code comes from the controls.input.js file from the framework
CODE
//Extending the OSV class to allow me to jump to a static page
var YearSelector = new KONtx.Class({
ClassName: 'YearSelector',
Extends: KONtx.system.OptionSelectView,
updateView: function () {
KONtx_automation_log("function","KONtx.system.OptionSelectView","updateView");
this.log(':: updateView');
this.registerHandlers();
this.controls.grid.changeDataset(this.config.data.options);
//The following is the only additional line. It forces the grid to jump to the requested (0 indexed) page
this.controls.grid.changePage(2, {refresh:true});
},
});
Don't forget to include the js in your init file or before your view's createView definition!
Probably, you can try extending KONtx.system.OptionSelectView, and override the updateView method to add the code for changing the page. Then you can pass your new class as one of the inputs to the SelectButton control:
new KONtx.control.SelectButton({optionViewClass:MyOptionViewClass});
Let me know how it goes.
Thanks,
Vivek