This is a migrated thread and some comments may be shown as answers.

store date only

1 Answer 44 Views
Input
This is a migrated thread and some comments may be shown as answers.
Elliott
Top achievements
Rank 2
Elliott asked on 07 Feb 2012, 10:09 PM
I've been trying to replace a half a dozen textboxes ties to Tigris calendar controls with RadDateInput controls
when I click on the calendar controls I get an error
I've change the DateFormat to d
is there a way to internally remove the time?

1 Answer, 1 is accepted

Sort by
0
Elliott
Top achievements
Rank 2
answered on 08 Feb 2012, 06:27 PM
I solved one half of the problem - how to put the date from the RADDateInput into the Tigra Calendar
function popup_cal6() {
    var del = $find("<%= del6.ClientID %>");
    var str = del.get_textBoxValue();
    cal6.popup(str);
var cal6 = new calendar2(document.form1.elements['del6']);
cal6.year_scroll = true;
cal6.time_comp = false;
<asp:TableCell ID="TableCell6" runat="server"><span style="font-size: 8pt; color: #000099; font-family: Verdana">Ship Date</span>
<a href="javascript:popup_cal6();"><img height="16" alt="Click Here to Pick up the date" src="img/cal.gif" width="16" /></a>
<telerik:RadDateInput id="del6" DateFormat="d" Width="75px" Height="14px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px" runat="server"
    <ClientEvents OnError="date_input_error" />
</telerik:RadDateInput>
</asp:TableCell>


now the bigger problem seems to be getting the changed value back into RADDateInput
this works for textboxes but not RADDateInput controls:
obj_caller.target.value = (document.cal
    ? obj_caller.gen_tsmp(dt_datetime)
    : obj_caller.gen_date(dt_datetime)
);
where obj_caller is passed in as a parameter and target is a object (the textbox)
the snippet above is in the calendar control which I would rather not make changes to
Tags
Input
Asked by
Elliott
Top achievements
Rank 2
Answers by
Elliott
Top achievements
Rank 2
Share this question
or