Senario:
i have a Raddatetimepicker that has a format "dd/MM/yyyy HH:mm" in serverside pageload then assign the present date to it. Example December 2 ,2009 7:30 am the display is "02/12/2009 07:30". Every 15 seconds it would update its time. I have a java script that triggers ClientEvents-OnLoad = OnDtpLoad
the javascript would look like this:
function OnDtpLoad(){
var
dtpTime = $find("<%=RadDateTimePicker.ClientID%>");
var updateDate = new Date();
dtpTime.set_selectedDate(updateDate );
var
t = setTimeout(OnDtpLoad()', 15000);
}
this function would trigger ever 15 seconds to update the datepicker.
Problem:
if you look at it, you would expect that the datepicker display would be "02/12/2009 07:30" but instead it display this "12/02/2009 07:30". with a value of Febuary 12, 2009 7:30 am..
Why is this so??? I have tried formating the date in javascript but it will return Febuary.
if you would do this:
dtpTime.set_selectedDate(dtpTime.get_selectedDate());
the display would be first December next update would be Febuary then December then Febuary and so on..
.........
I think is because of the Format dd/mm/yyyy since in the format mm/dd/yyyy the display is OK.....
Please help...
I'm using Q1 2009 and I'm in a country where the format is mm/dd/yyyy but i need the format dd/mm/yyyy

RadGrid1.DataSourceID =
"Department" I get an error saying "The DataSourceID of 'RadGrid1' must be the ID of a control of type IDataSource"
I am not sure how to do this and also how to specify DataSourceID for the detailTables since the DataSourceID in this case is Deprtments too.
I can access items in my department as follows (Without the grid)
Master Grid- Department.DepartmentID
DetailGrid - Department.Employee.EmployeeID
I would really appreciate if somebody can help me.
Thank you
Nick..

<h3>Media</h3>
<asp:Label ID="lblErrorMessage" ForeColor="Red" runat="server" />
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True"
AllowSorting="True" AllowFilteringByColumn="False" OnPreRender="RadGrid1_PreRender"
OnNeedDataSource="RadGrid1_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand"
OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand"
PageSize="5" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged">
<MasterTableView Width="100%" EditMode="PopUp" DataKeyNames="CleanupUnitAffectedMediaId"
CommandItemDisplay="Top" AutoGenerateColumns="false" EditFormSettings-PopUpSettings-Width="50%">
<EditFormSettings UserControlName="CleanupUnitMediaUC.ascx" EditFormType="WebUserControl"
PopUpSettings-Modal="true">
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
<FormTemplate>
<uc1:Media ID="Media" runat="server" />
</FormTemplate>
<PopUpSettings Modal="True"></PopUpSettings>
</EditFormSettings>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridButtonColumn Text="Select" CommandName="Select" />
<telerik:GridBoundColumn DataField="CleanupUnitAffectedMediaType.CleanupUnitAffectedMediaTypeDisplayName"
HeaderText="Media" ReadOnly="True" SortExpression="CleanupUnitAffectedMediaTypeId"
UniqueName="CleanupUnitAffectedMediaTypeId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CleanupUnitMediaContaminantStatusType.CleanupUnitMediaContaminantStatusTypeDisplayName"
HeaderText="Status" ReadOnly="True" SortExpression="CleanupUnitMediaContaminantStatusTypeId"
UniqueName="CleanupUnitMediaContaminantStatusTypeId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CleanupUnitMethodType.CleanupUnitMethodTypeDisplayName"
HeaderText="Method" ReadOnly="True" SortExpression="CleanupUnitMethodTypeId"
UniqueName="CleanupUnitMethodTypeId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CleanupUnitDrinkingWaterUseType.CleanupUnitDrinkingWaterUseTypeDisplayName"
HeaderText="Drinking Water" ReadOnly="True" SortExpression="CleanupUnitDrinkingWaterUseTypeId"
UniqueName="CleanupUnitDrinkingWaterUseTypeId">
</telerik:GridBoundColumn>
<telerik:GridEditCommandColumn />
<telerik:GridClientDeleteColumn />
</Columns>
</MasterTableView>
</telerik:RadGrid>
<h3><u>Media Details</u></h3>
<h4>Contaminant</h4>
<telerik:RadGrid ID="RadGrid2" runat="server" GridLines="None" AllowPaging="True"
AllowSorting="True" AllowFilteringByColumn="False" OnPreRender="RadGrid2_PreRender"
OnNeedDataSource="RadGrid2_NeedDataSource" OnUpdateCommand="RadGrid2_UpdateCommand"
OnInsertCommand="RadGrid2_InsertCommand" OnDeleteCommand="RadGrid2_DeleteCommand"
PageSize="3" OnSelectedIndexChanged="RadGrid2_SelectedIndexChanged">
<MasterTableView Width="100%" EditMode="PopUp" DataKeyNames="CleanupUnitContaminantId"
CommandItemDisplay="Top" AutoGenerateColumns="false" EditFormSettings-PopUpSettings-Width="50%">
<EditFormSettings UserControlName="CleanupUnitContaminantUC.ascx" EditFormType="WebUserControl"
PopUpSettings-Modal="true">
<EditColumn UniqueName="EditCommandColumn2">
</EditColumn>
<FormTemplate>
<uc1:Contaminant ID="Contaminant" runat="server" />
</FormTemplate>
<PopUpSettings Modal="True"></PopUpSettings>
</EditFormSettings>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridButtonColumn Text="Select" CommandName="Select" />
<telerik:GridBoundColumn DataField="CleanupUnitContaminantType.CleanupUnitContaminantTypeDisplayName"
HeaderText="Contaminant" ReadOnly="True" SortExpression="CleanupUnitContaminantTypeId"
UniqueName="CleanupUnitContaminantTypeId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CleanupUnitMediaContaminantStatusType.CleanupUnitMediaContaminantStatusTypeDisplayName"
HeaderText="Status" ReadOnly="True" SortExpression="CleanupUnitMediaContaminantStatusTypeId"
UniqueName="CleanupUnitMediaContaminantStatusTypeId">
</telerik:GridBoundColumn>
<telerik:GridEditCommandColumn />
<telerik:GridClientDeleteColumn />
</Columns>
</MasterTableView>
</telerik:RadGrid>
<h4>Technology</h4>
<telerik:RadGrid ID="RadGrid3" runat="server" GridLines="None" AllowPaging="True"
AllowSorting="True" AllowFilteringByColumn="False" OnPreRender="RadGrid3_PreRender"
OnNeedDataSource="RadGrid3_NeedDataSource" OnUpdateCommand="RadGrid3_UpdateCommand"
OnInsertCommand="RadGrid3_InsertCommand" OnDeleteCommand="RadGrid3_DeleteCommand"
PageSize="3" OnSelectedIndexChanged="RadGrid3_SelectedIndexChanged">
<MasterTableView Width="100%" EditMode="PopUp" DataKeyNames="CleanupUnitTechnologyId"
CommandItemDisplay="Top" AutoGenerateColumns="false" EditFormSettings-PopUpSettings-Width="50%">
<EditFormSettings UserControlName="CleanupUnitTechnologyUC.ascx" EditFormType="WebUserControl"
PopUpSettings-Modal="true">
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
<FormTemplate>
<uc1:Technology ID="Technology" runat="server" />
</FormTemplate>
<PopUpSettings Modal="True"></PopUpSettings>
</EditFormSettings>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridButtonColumn Text="Select" CommandName="Select" />
<telerik:GridBoundColumn DataField="CleanupUnitTechnologyType.CleanupUnitTechnologyTypeDisplayName"
HeaderText="Technology" ReadOnly="True" SortExpression="CleanupUnitTechnologyTypeId"
UniqueName="CleanupUnitTechnologyTypeId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CommentDescription" HeaderText="Comments"
ReadOnly="True" SortExpression="CommentDescription" UniqueName="CommentDescription"
DataType="System.String">
</telerik:GridBoundColumn>
<telerik:GridEditCommandColumn />
<telerik:GridClientDeleteColumn />
</Columns>
</MasterTableView>
</telerik:RadGrid>
| Protected Sub list_appState_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) |
| Dim record As Integer = (TryCast(Parent.FindControl("GridRec"), Label)).Text |
| Dim AppState As String = (TryCast(formview_AppInfo.FindControl("list_appState"), RadComboBox)).SelectedValue |
| Dim UpdateSuccess As Integer = Applications.UpdateAppState(record, AppState) |
| If UpdateSuccess > 0 Then |
| lbl_status.Text = String.Format("<br />The Application Status has been updated to '{0}' for record: {1}.<br /><br />", AppState, record) |
| Dim grid As RadGrid = (TryCast(Parent.FindControl("grid_applications"), RadGrid)) |
| End If |
| End Sub |
| <telerik:RadComboBox ID="list_appState" Runat="server" Skin="Sunset" SelectedValue='<%# Bind("app_state") %>' AutoPostBack="True" OnSelectedIndexChanged="list_appState_SelectedIndexChanged"> |
| <Items> |
| <telerik:RadComboBoxItem runat="server" Text="New/Working Lead" Value="New" ForeColor="Blue" /> |
| <telerik:RadComboBoxItem runat="server" Font-Bold="True" |
| Text="Dead Lead" Value="Dead" ForeColor="Red" /> |
| <telerik:RadComboBoxItem runat="server" Font-Bold="True" |
| Text="Sold To Customer" Value="Sold" ForeColor="Green" /> |
| <telerik:RadComboBoxItem runat="server" Text="Customer Appointment" |
| Value="Appointment" Enabled="False" ForeColor="#BA3D05" Font-Bold="True" /> |
| <telerik:RadComboBoxItem runat="server" Text="Call Back" Value="Call Back" Enabled="False" ForeColor="#BA3D05" Font-Bold="True" /> |
| <telerik:RadComboBoxItem runat="server" Text="Email Customer" Value="Email Customer" Enabled="False" ForeColor="#BA3D05" Font-Bold="True" /> |
| <telerik:RadComboBoxItem runat="server" Text="Follow Up" Value="Follow Up" Enabled="False" ForeColor="#BA3D05" Font-Bold="True" /> |
| <telerik:RadComboBoxItem runat="server" Font-Bold="True" |
| Text="Credit Accepted" Value="Credit Accepted" Enabled="False" ForeColor="Green" /> |
| <telerik:RadComboBoxItem runat="server" Font-Bold="True" |
| Text="Credit Declined" Value="Credit Declined" Enabled="False" ForeColor="Red" /> |
| <telerik:RadComboBoxItem runat="server" Font-Bold="True" |
| Text="Credit Pending" Value="Credit Pending" Enabled="False" ForeColor="#BA3D05" /> |
| </Items> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </telerik:RadComboBox> |