PDA

View Full Version : [CLOSED] DatePicker Selections



ATLAS
Aug 22, 2013, 8:11 AM
Using a listener for Select event his works fine - however the Today button gets caught up in this too. I can't see any way of disabling this - so will look at disabling/hiding Today - from the ExtJS documentation there is this.TodayBtn.hide()
but this doesnt work (cant find TodayBtn in the function) and I can't see any Ext.Net methods to hide the Today Button (there is TodayText which I set to blank but that still produces a button)

Daniil
Aug 22, 2013, 11:24 AM
Hi @ATLAS,

This hides the Today button.

<ext:DatePicker runat="server">
<Listeners>
<Render Handler="this.todayBtn.hide();" />
</Listeners>
</ext:DatePicker>

ATLAS
Aug 22, 2013, 12:30 PM
Thanks that works perfectly -
I am using MVC so the line I am using is

.Listeners(l =>{
l.Render.Handler = "this.todayBtn.hide()";
..... other handlers ...
}

So this can be Closed


Hi @ATLAS,

This hides the Today button.

<ext:DatePicker runat="server">
<Listeners>
<Render Handler="this.todayBtn.hide();" />
</Listeners>
</ext:DatePicker>