or
Hi all,
In my RadTimePicker I want to show time in 24 hour format. I gone thourgh some of the threads of your site and wrote my code in the following way -
<telerik:RadTimePicker ID="RadTimePicker1" runat="server" SharedTimeViewID="sharedTimeView" Width="100px" Skin="WebBlue" DateInput-DateFormat="HH:mm" DateInput-DisplayDateFormat="HH:mm" TimeView-TimeFormat="HH:mm" > </telerik:RadTimePicker>
<GroupHeaderTemplate> <telerik:RadButton ID="btnAddSpecificDelegationToCashGift" OnClick="btnAddSpecificDelegationToCashGift_OnClick" CommandArgument='' runat="server" Text='<%# Eval("TRP_LOOK_UP.ID") %>' > <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon> </telerik:RadButton></GroupHeaderTemplate> protected void gridAddDelegationToCashGift_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e) { destinationID = int.Parse(Request.QueryString["destinationID"]); if (destinationID != 0) gridAddDelegationToCashGift.DataSource = _srv.GetDelegationNotAddedToCashGift(destinationID); }
Private Sub btn_ApproveAll_Click(sender As Object, e As EventArgs) Dim item As GridGroupHeaderItem = DirectCast(rgd_ProjectPlanTasksApprove.MasterTableView.GetItems(GridItemType.GroupHeader)(0), GridGroupHeaderItem) For Each groupHeader As GridGroupHeaderItem In rgd_ProjectPlanTasksApprove.MasterTableView.GetItems(GridItemType.GroupHeader) Dim children As GridItem() = groupHeader.GetChildItems() For Each child As GridDataItem In children Dim IDTaskUpdates As String = child("IDTaskUpdates").Text Dim sql As String Dim strConnString As [String] = System.Configuration.ConfigurationManager.ConnectionStrings("SharePoint_ConnectionString").ConnectionString() sql = "UPDATE Task_Updates SET TaskUpdateApproved = 1, ApprovedDate = @ApprovedDate, ModifiedDate = @ModifiedDate WHERE IDTaskUpdates = @IDTaskUpdates" Dim cn As New SqlConnection(strConnString) Dim cmd As New SqlCommand(sql, cn) cmd.Parameters.Add("@IDTaskUpdates", SqlDbType.Int).Value = IDTaskUpdates cmd.Parameters.Add("@ApprovedDate", SqlDbType.DateTime).Value = Date.Now cmd.Parameters.Add("@ModifiedDate", SqlDbType.DateTime).Value = Date.Now cmd.Parameters.Add("@IDModifiedUser", SqlDbType.NVarChar, 36).Value = Session("ActiveDirID") cmd.Connection.Open() cmd.ExecuteNonQuery() cmd.Connection.Close() Next NextEnd Sub