Hi Team,
DatePicker values are getting copied from one row to other when selected to edit in RadGrid BatchEdit model.
First, I clicked in DatePicker column in first row and clicked in DatePicker column in second row. The value of DatePicker in first row is getting copied to DatePicker in second row.
I am having following code in BatchEditOpened event, here I am just trying to set minimum date for StartDate datepicker.
function BatchEditOpened(sender, args) {
switch (args.get_columnUniqueName()) {
case "StartDate":
var dtStartDate = $find($telerik.$("[id$='dtStartDate']").attr("id"));
if (dtStartDate.get_selectedDate()) {
var minDate = new Date(dtStartDate.get_selectedDate());
minDate.setDate(minDate.getDate());
dtStartDate.set_minDate(minDate);
}
break;
}
}
Please let me know why it is copying value instead of just setting minimum date. If I remove code in BatchEditOpened, it is not copying values.