Hi,
Please don't worry about a thread apart from the following things:
1. Starts a thread in a correct forum, for example:
- A technical support question related to Ext.NET v1 on the 1.x Help forum or on the 1.x Premium Help if you are a premium member.
- A technical support question related to Ext.NET v2 on the 2.x Help forum or on the 2.x Premium Help if you are a premium member.
- Some discussion on the Open Discussions forum.
- etc.
2. Keep one issue per one thread.
The rest things we make ourselves.
Regarding to your question.
Commonly, we recommend to use Ext.NET/ExtJS API things, but since you are a new in Ext.NET/ExtJS, I should demonstrate how they are flexible to override/extend.
Please run the example and try to change a month by clicking on the arrows buttons or pressing "CTRL + <--" and 'CTRL + -->" keys combination.
Example
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Ext.NET Example</title>
<ext:ResourcePlaceHolder runat="server" Mode="ScriptFiles" />
<script type="text/javascript">
Ext.DatePicker.prototype.initComponent = Ext.DatePicker.prototype.initComponent.createSequence(function () {
this.addEvents("prevmonth", "nextmonth");
});
Ext.DatePicker.prototype.showPrevMonth = Ext.DatePicker.prototype.showPrevMonth.createSequence(function () {
this.fireEvent("prevmonth");
});
Ext.DatePicker.prototype.showNextMonth = Ext.DatePicker.prototype.showNextMonth.createSequence(function () {
this.fireEvent("nextmonth");
});
</script>
<script type="text/javascript">
var onRender = function () {
this.on("prevmonth", onPrevMonth);
this.on("nextmonth", onNextMonth);
};
var onPrevMonth = function () {
DisplayField1.append("PREV, activeDate is " + this.activeDate.format("Y-m-d") + "<br/>");
};
var onNextMonth = function () {
DisplayField1.append("NEXT activeDate is " + this.activeDate.format("Y-m-d") + "<br/>");
};
</script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:DatePicker runat="server">
<Listeners>
<Render Fn="onRender" />
</Listeners>
</ext:DatePicker>
<ext:DisplayField ID="DisplayField1" runat="server" />
</form>
</body>
</html>