or
<telerik:RadGrid ID="rgAccountRangeSet" runat="server" AutoGenerateColumns="False" GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" PageSize="25" AllowPaging="True" AllowSorting="True" > <PagerStyle Mode="NumericPages" /> <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" CommandItemSettings-ShowRefreshButton="False" HorizontalAlign="NotSet" DataKeyNames="Id"> <CommandItemSettings AddNewRecordText="Add New Account Range" AddNewRecordImageUrl="~/images/Keymaster/add.gif"/> <NoRecordsTemplate> <center><b>No records available</b></center> </NoRecordsTemplate> <Columns>
</Columns> <EditFormSettings> <EditColumn ButtonType="PushButton" /> </EditFormSettings> </MasterTableView> </telerik:RadGrid>
With the following code:
Private Sub rgAccountRangeSet_InsertCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgAccountRangeSet.InsertCommand 'code to handle insert items has been removed rgAccountRangeSet.Rebind() rgAccountRangeSet.MasterTableView.IsItemInserted = FalseEnd SubPublic Sub LlenaGrid() Strsql = "Select Empresa,Corr,NomPuesto,Salario from templeo where codusuario = " & Session("CodUsuario") & "" cn.Open() daData.SelectCommand = New OleDb.OleDbCommand(Strsql, cn) daData.Fill(dsGen, "DATA") GrdEmpleo.DataSource = dsGen GrdEmpleo.DataMember = "DATA" GrdEmpleo.DataBind() cn.Close() dsGen.Tables("DATA").Clear() End Sub<telerik:RadGrid runat="server" ID="GrdEmpleo" PageSize="5" AutoGenerateColumns="False" Width="100%" AllowSorting ="True" AllowPaging ="True" GridLines="None" TabIndex="17"> <PagerStyle Mode="NextPrevAndNumeric" NextPageText="Siguiente" PrevPageText="Anterior" PagerTextFormat="Change page: {4} Pagina <strong>{0}</strong> de <strong>{1}</strong>, registros <strong>{2}</strong> a <strong>{3}</strong> de <strong>{5}</strong>." PageSizeLabelText="Regitros"/> <MasterTableView DataKeyNames="Empresa,Corr,NomPuesto,Salario"> <Columns> <telerik:GridButtonColumn DataTextField="Empresa" UniqueName="Empresa" HeaderText="Empresa"></telerik:GridButtonColumn> <telerik:GridBoundColumn DataField="Corr" UniqueName="Corr" Visible="false" HeaderStyle-Width="75px"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Nompuesto" UniqueName="NomPuesto" HeaderText="Puesto" HeaderStyle-Width="75px"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Salario" HeaderText="Salario" HeaderStyle-Width="75px"> </telerik:GridBoundColumn> </Columns> </MasterTableView> <clientsettings> <selecting allowrowselect="True" /> </clientsettings> <FilterMenu EnableTheming="true"> <CollapseAnimation Duration="200" Type="InOutQuint" /> </FilterMenu> </telerik:RadGrid>Private Sub GrdEmpleo_PageIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridPageChangedEventArgs) Handles GrdEmpleo.PageIndexChanged Try LlenaGrid() Catch ex As Exception LblMensaje.Text = ex.Message End Try End Subprotected void rgApplications_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e){ LaundryLogicDAL.ARApplicationsCollection oARAC = new LaundryLogicDAL.ARApplicationsCollection(); LaundryLogicDAL.ARApplicationsQuery oARAQ = new LaundryLogicDAL.ARApplicationsQuery("ara"); LaundryLogicDAL.ARCreditsQuery oARCQ = new LaundryLogicDAL.ARCreditsQuery("arc"); LaundryLogicDAL.ARDebitsQuery oARDQ = new LaundryLogicDAL.ARDebitsQuery("ard"); try { oARAC.es.Connection.Name = "NAS"; oARAC.es.Connection.SqlAccessType = esSqlAccessType.DynamicSQL; oARAQ.es2.Connection.Name = "NAS"; oARAQ.es2.Connection.SqlAccessType = esSqlAccessType.DynamicSQL; oARCQ.es2.Connection.Name = "NAS"; oARCQ.es2.Connection.SqlAccessType = esSqlAccessType.DynamicSQL; oARDQ.es2.Connection.Name = "NAS"; oARDQ.es2.Connection.SqlAccessType = esSqlAccessType.DynamicSQL; oARAQ.Select( oARCQ.CreditIdentifier, oARCQ.CreditDate, oARCQ.OriginalAmount.As("CreditAmount"), oARAQ.ApplicationDate, oARAQ.Amount.As("ApplicationAmount"), oARAQ.Notes.As("ApplicationNotes"), oARDQ.DebitIdentifier, oARDQ.DebitDate, oARDQ.OriginalAmount.As("DebitAmount") ); oARAQ.InnerJoin(oARCQ).On( oARAQ.CreditID == oARCQ.Id); oARAQ.InnerJoin(oARDQ).On( oARAQ.DebitID == oARDQ.Id); //if (Session["DebitID"] != null) if (ViewState["DebitID"] != null && (int)ViewState["DebitID"] >= 0) { oARAQ.Where( //oARAC.Query.DebitID == (int)Session["DebitID"] oARAQ.DebitID == (int)ViewState["DebitID"] ); } else if (ViewState["CreditID"] != null && (int)ViewState["CreditID"] >= 0) { oARAQ.Where( //oARAC.Query.DebitID == (int)Session["DebitID"] oARAQ.DebitID == (int)ViewState["CreditID"] ); } if (oARAC.Load(oARAQ)) { rgApplications.DataSource = oARAC; } else { rgApplications.DataSource = new object[0]; } } catch(Exception ex) { rgApplications.DataSource = new object[0]; DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(this, ex); } finally { oARAC.Dispose(); oARAC = null; oARAQ = null; oARCQ = null; oARDQ = null; }}<telerik:RadGrid ID="rgApplications" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" GridLines="None" OnNeedDataSource="rgApplications_NeedDataSource"> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"> </HeaderContextMenu> <MasterTableView AllowMultiColumnSorting="True"> <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="CreditIdentifier" FilterControlAltText="Filter CreditIdentifier column" HeaderText="Credit ID" UniqueName="CreditIdentifier"> </telerik:GridBoundColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu></telerik:RadGrid>Hi,
It seems that Korean Culture of RadDateTimePicker of Q2 version has something wrong which although I select time with PM but it is always selected only AM.
(but, it works with en-US culture)
please, refer to below details and let me know.
Many thanks,
Joey
| <telerik:RadDateTimePicker ID="rdpReservationDate" runat="server" MinDate="2006/1/1" ToolTip="Please Select datetime.." Culture="Korean (Korea)" Width="170px"> |
| <DateInput runat="server" ID="DateInput"> |
| </DateInput> |
| <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar> |
| <TimeView CellSpacing="-1" Culture="Korean (Korea)"></TimeView> |
| <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton> |
| <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton> |
| </telerik:RadDateTimePicker> |