How do you code for displaying a date in the RowEditingTemplate? This is just for display purposes.
I changed the code as suggested. The date being displayed is just the current date now instead of the column's date value.
As I suggested above, can you have your row edit template binding set to something like below:
<ig:RowEditingClientBinding ColumnKey="BirthDate" ControlID="control_BirthDate"
GetValueJavaScript="$find({ClientID}).get_value()"
SetValueJavaScript="$find({ClientID}).set_value({value})" />
When you do $get..., you're just finding the input, not actually setting the date value of the editor. With all of that, I am getting the date in the format you want.
-Dave
In the row edit template...I have it as "read only"...when the date initially displays it looks like "Mon Aug 23 00:00:00 CDT 2010" then when I hover over the field it changes to "11/24/2001".
Hey,
Sorry about the delay. Where exactly are you getting the wrong format? In your cells in the data grid or in the date time editor in the row edit template. If it is the latter, is it all the time or just when it has focus. Once you let me know, I should be able to give you code to get the correct format.
Any more thoughts on how to display date in mm/dd/yyyy format?