i am new to extjs...
i worked in the example of grid/mysql/php, it works fine.
if user edit the datefield and choose the date picker ,its save in db as fine
i want like this...
if user unselect the date ...its default take the current date and insert in db
help me
sorry for my bad english
Thnks in advance
For single selection you can try the "select" event to recognize a date-change and update your database.
See first post (http://extjs.com/forum/showthread.php?p=148587#post148587) of DatepickerPlus for full API Docs.
please help me
considering you use datepickerplus, a config for a Datefield could look like this:
{
xtype: 'datefieldplus',
listeners:{
'afterdateclick':function(dp,date,state){
/*
do something here
dp --> the datepickerobject
date --> the date the user clicked on
state=true --> date was selected
state=false --> date was unselected
*/
}
} ,
multiSelection:true,
},
This should be a good start.
You can look at several examples of DatePickerPLus here (http://www.lubber.de/extjs/datepickerplus)
#If you have any other info about this subject , Please add it free.# |