How do you get/set values from RowEditTemplate during onTemplateClosed client event using javascript? can someone share code with me? Thanks!
Hi,
I would think that would work, so long as the date picker will return you null for the date if it is not set.
-Dave
If I wanted to check and then set the date value would I then do the following?
function templateClosing(sender, args)
{
var ret = sender.get_behaviors().get_editingCore().get_behaviors().get_rowEditingTemplate();
var colKey = "BirthDate";
var binding = ret._bindings._getObjectByAdr(colKey);
var datePicker = $find(binding.get_clientID());
var dateVal = datePicker.get_value();
if (dateVal == null) {
datePicker.set_value('12/31/9999')
}
Great...thanks!!!
Here is is.
Can you give me a full javascript coding example for getting the value of a WebDatePicker from a RowEditTemplate during the TemplateClosing client event?