How do you code for displaying a date in the RowEditingTemplate? This is just for display purposes.
Dave, I'm using VB instead of C# so I'm using the following code:
<
ig:RowEditingClientBinding ColumnKey="Lift_Date" ControlID="wdte1"
/>
The date is the displayed as "Fri Jun 11 00:00:00 CDT 2010"
I would like it to display as a ShortDateTime "d" = "6/11/2010" as requested:
ig:WebDateTimeEditor ID="wdte1" runat="server" BackColor="LightGray"
DisplayModeFormat="d" ReadOnly="True" Height="20px" Width="75px">
</ig:WebDateTimeEditor>
Thanks,
DF
Hey,
Here is the binding for a date time editor.
<ig:RowEditingClientBinding ColumnKey="BirthDate" ControlID="control_BirthDate"
GetValueJavaScript="$find({ClientID}).get_value()"
SetValueJavaScript="$find({ClientID}).set_value({value})" />
I believe you'd have to take out the GetScript one so that it does not update. Or just set the editor as read only in the RET.
-Dave
I'm using the WebDateTimeEditor.
Thx!
Hi davefevold,
The syntax depends upon the control you want to display the date in. Are you going to use one of our controls, such as a DateTimeEditor or WebMonthCalendar? I could give you the code for those. Let me know.
regards,David Young