| AllowCustomColors | n/a |
property |
Removed |
| <telerik:RadListView ID="RadListBox1" runat="server" OnNeedDataSource="RadListView1_NeedDataSource" |
| ItemPlaceholderID="ProductsHolder" OnItemCommand="RadListView1_ItemCommand" DataKeyNames="CountrySapInfoId"> |
| <LayoutTemplate> |
| <fieldset style="width: 700px;" id="FieldSet1"> |
| <legend>SAP Country Info</legend> |
| <asp:Panel ID="ProductsHolder" runat="server" /> |
| <div style="clear: both" /> |
| <div style="padding: 10px"> |
| <asp:LinkButton ID="btnInitInsert" runat="server" Text="New Sap Country Info" CommandName="InitInsert" /> |
| </div> |
| </fieldset> |
| </LayoutTemplate> |
| <ItemTemplate> |
| <fieldset style="border-style: none; float: left; width: 300px;"> |
| <table cellpadding="0" cellspacing="0" width="100%" style="margin: 10px"> |
| <tr> |
| <td width="100px"> |
| Company Code: |
| </td> |
| <td> |
| <%# Eval("SAPCompanyCode") %> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Sales Org: |
| </td> |
| <td> |
| <%# Eval("SAPSalesOrg") %> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-top: 5px"> |
| <asp:LinkButton ID="btnEdit" runat="server" Text="Edit" CommandName="Edit" /> |
| </td> |
| </tr> |
| </table> |
| </fieldset> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <fieldset style="border-style: none; float: left; width: 300px;"> |
| <table cellpadding="0" cellspacing="0" width="100%" style="margin: 10px"> |
| <tr> |
| <td> |
| Company Code: |
| </td> |
| <td> |
| <asp:TextBox ID="txtCompanyCode" runat="server" Text='<%# Bind("SAPCompanyCode") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Sales Org: |
| </td> |
| <td> |
| <asp:TextBox ID="txtSalesOrg" runat="server" Text='<%# Bind("SAPSalesOrg") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-top: 5px" colspan="2"> |
| <asp:LinkButton ID="btnUpdate" runat="server" Text="Update" CommandName="Update" |
| Width="70px" /> |
| <asp:LinkButton ID="btnDelete" runat="server" Text="Delete" CommandName="Delete" |
| Width="70px" /> |
| <asp:LinkButton ID="BtnCancel" runat="server" Text="Cancel" CommandName="Cancel" |
| CausesValidation="false" Width="70px" /> |
| </td> |
| </tr> |
| </table> |
| </fioeldset> |
| </EditItemTemplate> |
| <InsertItemTemplate> |
| <fieldset style="border-style: none; float: left; width: 300px;"> |
| <table cellpadding="0" cellspacing="0" width="100%" style="margin: 10px"> |
| <tr> |
| <td width="50%"> |
| Company Code: |
| </td> |
| <td> |
| <asp:TextBox ID="txtCompanyCode" runat="server" Text='<%# Bind("SAPCompanyCode") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Sales Org: |
| </td> |
| <td> |
| <asp:TextBox ID="txtSalesOrg" runat="server" Text='<%# Bind("SAPSalesOrg") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-top: 5px" colspan="2"> |
| <asp:LinkButton ID="btnInsert" runat="server" Text="Insert" CommandName="PerformInsert" |
| Width="70px" /> |
| <asp:LinkButton ID="BtnCancel" runat="server" Text="Cancel" CommandName="Cancel" |
| CausesValidation="false" Width="70px" /> |
| </td> |
| </tr> |
| </table> |
| </fieldset> |
| </InsertItemTemplate> |
| </telerik:RadListView> |
| protected void RadListView1_ItemCommand(object source, RadListViewCommandEventArgs e) |
| { |
| RadListView rlv = (source as RadListView); |
| if ((e.CommandName == RadListView.PerformInsertCommandName) || (e.CommandName == RadListView.UpdateCommandName) || (e.CommandName == RadListView.CancelCommandName)) |
| { |
| rlv.InsertItemPosition = RadListViewInsertItemPosition.None; |
| } |
| else if (e.CommandName == RadListView.InitInsertCommandName) |
| { |
| rlv.InsertItemPosition = RadListViewInsertItemPosition.LastItem; |
| //e.Canceled = true; |
| } |
| if ((e.CommandName == RadListView.PerformInsertCommandName) || (e.CommandName == RadListView.UpdateCommandName)) |
| { |
| SaveCountrySapInfo(e.ListViewItem); |
| } |
| if (e.CommandName == "Delete") |
| { |
| DeleteCountrySapInfo(e.ListViewItem); |
| } |
| } |
| <telerik:RadGrid |
| ID="RadGrid1" |
| runat="server" |
| AllowPaging="true" |
| AutoGenerateColumns="false"> |
| <telerik:MasterTableView TableLayout="Auto"> |
| <Columns> |
| <telerik:GridBoundColumn |
| DataField="Name" |
| DataType="System.String" |
| HeaderText="Name" |
| SortExpression="Name" |
| UniqueName="Name"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn |
| DataField="Description" |
| DataType="System.String" |
| HeaderText="Description" |
| SortExpression="Description" |
| UniqueName="Description"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn |
| HeaderText="Status"> |
| <ItemTemplate> |
| <%# (Boolean.Parse(Eval("IsDeleted").ToString())) ? "Deleted" : "Active" %> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </telerik:MasterTableView> |
| </telerik:RadGrid> |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| ReportManager mgr = Global.Container.Resolve<ReportManager>(); |
| IList<ServerReport> reports = mgr.GetAllReports(); |
| RadGrid1.DataSource = reports; |
| //grdvwReportList.DataSource = reports; |
| //grdvwReportList.DataBind(); |
| } |
| <telerik:GridDateTimeColumn DataField="ApplicationDate" DataType="System.DateTime" |
| HeaderText="ApplicationDate" SortExpression="ApplicationDate" |
| SelectedDate='<%# Bind( "ApplicationDate" ) %>' UniqueName="ApplicationDate" /> |
<telerik:RadGrid ID="RadGrid1"
runat="server"
AllowAutomaticDeletes="True"
AllowAutomaticInserts="True"
AllowAutomaticUpdates="True"
GridLines="None"
OnItemInserted="RadGrid1_ItemInserted"
OnItemCreated="RadGrid2_ItemCreated"
OnItemUpdated="RadGrid1_ItemUpdated"
OnInsertCommand="RadGrid1_ItemInsert"
OnUpdateCommand="RadGrid1_ItemUpdate"
Skin="Simple"
ShowStatusBar="True"
DataSourceID="SqlDataSource2"
AllowPaging="True" >
<ValidationSettings EnableValidation="true" ValidationGroup="DropDownValidate" />
<MasterTableView runat="server"
EditMode="InPlace"
CommandItemDisplay="Top"
DataSourceID="SqlDataSource2"
AutoGenerateColumns="false"
ExpandCollapseColumn-ButtonType="ImageButton"
ExpandCollapseColumn-CollapseImageUrl="~/Images/zoom-out-icon[1].png"
ExpandCollapseColumn-ExpandImageUrl="~/Images/zoom-in-icon[1].png"
DataKeyNames="ActivityID"
InsertItemPageIndexAction="ShowItemOnCurrentPage" >
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton"
CancelImageUrl="~/Images/filterCancel.png"
UpdateImageUrl="~/Images/selecttag.png"
InsertImageUrl="~/Images/add-icon[2].png"
EditImageUrl="~/Images/edit-icon[1].png" >
</EditColumn>
</EditFormSettings>
<Columns>
<telerik:GridTemplateColumn DataField="ActDescription" HeaderText="Description" UniqueName="ActDescription" Display="true">
<EditItemTemplate>
<telerik:RadTextBox ID="Description" runat="server" Text='<%# Bind("ActDescription")
TextMode="MultiLine" Width="300"></telerik:RadTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:CIMT %>"
DeleteCommand="DELETE FROM [CIMT_T_Activities] WHERE [ActivityID] = @ActivityID"
InsertCommand="INSERT INTO [CIMT_T_Activities] ([ActDescription], [ActToDate], [ActFromDate], [UnitLogID], [InsertBy], [InsertDate], [UpdateBy], [UpdateDate]) VALUES (@ActDescription, @ActToDate, @ActFromDate, @UnitLogID, @InsertBy, @InsertDate, @UpdateBy, @UpdateDate)"
SelectCommand="SELECT [ActivityID], [ActDescription], [ActToDate], [ActFromDate], [UnitLogID], [InsertBy], [InsertDate], [UpdateBy], [UpdateDate] FROM [CIMT_T_Activities] WHERE [UnitLogID] = @UnitLogID"
UpdateCommand="UPDATE [CIMT_T_Activities] SET [ActDescription] = @ActDescription, [ActToDate] = @ActToDate, [ActFromDate] = @ActFromDate, [UnitLogID] = @UnitLogID, [UpdateBy] = @UpdateBy, [UpdateDate] = @UpdateDate WHERE [ActivityID] = @ActivityID">
<SelectParameters>
<asp:SessionParameter Name="UnitLogID" SessionField="UnitLogID" Type="Int32" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="ActivityID" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:SessionParameter Name="UnitLogID" SessionField="UnitLogID" Type="Int32" />
<asp:Parameter Name="ActDescription" Type="String" />
<asp:Parameter DbType="DateTime" Name="ActToDate" />
<asp:Parameter DbType="DateTime" Name="ActFromDate" />
<asp:Parameter Name="InsertBy" Type="String" />
<asp:Parameter DbType="DateTime" Name="InsertDate" />
<asp:Parameter Name="UpdateBy" Type="String" />
<asp:Parameter DbType="DateTime" Name="UpdateDate" />
</InsertParameters>
<UpdateParameters>
<asp:SessionParameter Name="UnitLogID" SessionField="UnitLogID" Type="Int32" />
<asp:Parameter Name="ActDescription" Type="String" />
<asp:Parameter DbType="DateTime" Name="ActToDate" />
<asp:Parameter DbType="DateTime" Name="ActFromDate" />
<asp:Parameter Name="InsertBy" Type="String" />
<asp:Parameter DbType="DateTime" Name="InsertDate" />
<asp:Parameter Name="UpdateBy" Type="String" />
<asp:Parameter DbType="DateTime" Name="UpdateDate" />
<asp:Parameter Name="ActivityID" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>