Hi,
After hours of trying to figure it out I'm giving up - why is it so hard to get the selected date out of the RadDatePicker inside of the RadGrid FormTemplate? Here's my scenario: I have a Collection of objects that I'm trying to bind to RadGrid. That part works fine - when I first load my items everything, including the dates, is displaying fine. The problem starts when I try to update/insert items. With the update I tried binding the Date in my objects to SelectedDate and DbSelectedDate - neither works. The day will show up in the form, but no matter what I, after I hit update the date goes back to what it was originally. I intercept the update command and modify my objects, but when I put a breakpoint right after my date assignment, I can see that the SelectedDate and DbSelectedDate is set to what it was originally and not what I have selected.
With Insert command the story is similar - when I insert a new item the date I selected disappears and instead a null value is placed in my objects. Editing them doesn't change anything - selected values are always overwritten with the original, null value.
I am beyond frustrated at this, seeing as all I'm trying to do is get a simple value from the RadDatePicker. Why is it so hard??
I have looked at all the examples of using the DbSelectedDate and all - none of them seem to help me
Thanks,
Marek
After hours of trying to figure it out I'm giving up - why is it so hard to get the selected date out of the RadDatePicker inside of the RadGrid FormTemplate? Here's my scenario: I have a Collection of objects that I'm trying to bind to RadGrid. That part works fine - when I first load my items everything, including the dates, is displaying fine. The problem starts when I try to update/insert items. With the update I tried binding the Date in my objects to SelectedDate and DbSelectedDate - neither works. The day will show up in the form, but no matter what I, after I hit update the date goes back to what it was originally. I intercept the update command and modify my objects, but when I put a breakpoint right after my date assignment, I can see that the SelectedDate and DbSelectedDate is set to what it was originally and not what I have selected.
With Insert command the story is similar - when I insert a new item the date I selected disappears and instead a null value is placed in my objects. Editing them doesn't change anything - selected values are always overwritten with the original, null value.
I am beyond frustrated at this, seeing as all I'm trying to do is get a simple value from the RadDatePicker. Why is it so hard??
I have looked at all the examples of using the DbSelectedDate and all - none of them seem to help me
Thanks,
Marek