How do you get/set values from RowEditTemplate during onTemplateClosed client event using javascript? can someone share code with me? Thanks!
Dave, I found my issue...I had the my client event defined wrong, as follows. I was trying to change the values after the template had closed already...thx for your help.
TemplateClosed
="onTemplateClosing"
Dave, it doesn't matter what I put in the set_value() for the date object...I still get the error message. If I have all date fields filled in for the RowEditTemplate, once I press the ok button, the ret closes fine and proceeds to the WebDataGrid_RowUpdating sub. If there is a date field not filled in or null, when I press the ok button, I get the error message and it never proceeds to the WebDataGrid_RowUpdating sub. That is why I'm trying to catch it and change the date before it blows up. Thanks for any help you can provide!
Hi,
I'm not intimately familar with the WebDatePicker, however when I look at the source code, it appears that it expects a Date object for set_value(), whereas you are passing a string. That could be the source of your problem. Try that and let me know.
thanks,Dave
When I try to replace the date's null value with the below code, it does not change the date's value when reaching the wdgSecIns_RowUpdating Sub.
var
colKey3 = "Canceled_Date";
datePicker3.set_value(
"12/31/9999");
}
After using the the same code, the date was null and I still received the following error:
{"String was not recognized as a valid DateTime."}
Any other ideas on how to replace the null date?
Thanks!