PDA

View Full Version : [CLOSED] More than one click to update Date in Grid Panel



RajivDutt
Mar 10, 2014, 5:07 PM
Hi,

http://mvc.ext.net/#/GridPanel_Editable/Editor_with_DirectMethod/

In the above example, more than one click is required, if I want to change the date through datepicker.
First I have to select a cell for editing by single/double click. Then I need to click on the date picker icon to launch the calendar.

Is there any way to launch the calendar on a single click?

Thanks,
Rajiv Dutt

geoffrey.mcgill
Mar 10, 2014, 7:59 PM
Hello,

Handling the "Focus" and "Blur" Listeners appears to work well.

Example


Html.X().DateColumn()
.Text("Last Updated")
.DataIndex("LastChange")
.Format("yyyy-MM-dd")
.Editor(Html.X().DateField()
.Format("yyyy-MM-dd")
.Listeners(listeners => {
listeners.Focus.Handler = "this.expand();";
listeners.Blur.Handler = "this.collapse();";
})
)