Feb 01, 2011, 8:23 PM
CalendarPanel extends Ext.Panel class and got BeforeRender event from there.
http://dev.sencha.com/deploy/dev/doc...r=beforeRender
So, as you can see in docs only one argument is passed to BeforeRender listener and it's CalendarPanel instance.
So, I can suggest you the following way:
Example
http://dev.sencha.com/deploy/dev/doc...r=beforeRender
So, as you can see in docs only one argument is passed to BeforeRender listener and it's CalendarPanel instance.
So, I can suggest you the following way:
Example
<script>
var MyHander = function(calendar, dataIndexes) {
// would i get the dataIndex passed in as the record
}
</script>
<Listeners>
<BeforeRender Handler="myHander(this, ['dataIndex1', 'dataIndex2', ...]);" />
</Listeners>
Last edited by Daniil; Feb 02, 2011 at 6:27 PM.
Reason: Minor correction