| <%@ Page Title="" Language="VB" MasterPageFile="~/Facilities.master" AutoEventWireup="false" CodeFile="OilAdditions.aspx.vb" Inherits="SiteReporting_OilAdditions" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server"> |
| <telerik:RadGrid ID="RadGrid1" |
| runat="server" |
| DataSourceID="sdsGenerators" |
| GridLines="None" |
| ShowGroupPanel="True" Skin="Hay" |
| AutoGenerateColumns="False" |
| Width="500px"> |
| <MasterTableView DataSourceID="sdsGenerators" |
| GroupLoadMode="Client" |
| DataKeyNames="EquipmentID" |
| HierarchyLoadMode="Client" |
| > |
| <DetailTables> |
| <telerik:GridTableView runat="server" |
| DataSourceID="sdsOilAdditions" |
| AllowAutomaticInserts="True" |
| GroupLoadMode="Client" |
| HierarchyLoadMode="Client" AllowPaging="True" |
| CommandItemDisplay="Top"> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="EquipmentID" |
| MasterKeyField="EquipmentID" /> |
| </ParentTableRelation> |
| <Columns> |
| <telerik:GridBoundColumn DataField="DateAdded" DataFormatString="{0:dd MMM, yy}" HeaderText="DateAdded" DataType="System.DateTime" UniqueName="DateAdded"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Quantity" HeaderText="Qty (Gals)" DataType="System.Double" UniqueName="Quantity"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Scheduled" HeaderText="Added During RWP" DataType="System.Boolean" UniqueName="Scheduled"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </telerik:GridTableView> |
| </DetailTables> |
| <ExpandCollapseColumn Visible="True"></ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="EquipmentID_Old" |
| HeaderText="Generator" |
| SortExpression="EquipmentID_Old" |
| UniqueName="EquipmentID_Old"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <EditFormSettings UserControlName="InsertOil.ascx" EditFormType="WebUserControl"> |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |
| <asp:SqlDataSource ID="sdsGenerators" runat="server" |
| ConnectionString="<%$ ConnectionStrings:AAIOMSConnectionString %>" |
| SelectCommand="spSelectFAC_PowerPlantsBySiteID" |
| SelectCommandType="StoredProcedure"> |
| <SelectParameters> |
| <asp:SessionParameter DefaultValue="7" Name="SiteID" SessionField="SiteID" |
| Type="Int32" /> |
| </SelectParameters> |
| </asp:SqlDataSource> |
| <asp:SqlDataSource ID="sdsOilAdditions" runat="server" |
| ConnectionString="<%$ ConnectionStrings:AAIOMSConnectionString %>" |
| SelectCommand="spSelectFAC_OilAdditionsByEquipmentID" |
| SelectCommandType="StoredProcedure" |
| InsertCommand="spInsertFAC_OilAdditions" InsertCommandType="StoredProcedure"> |
| <SelectParameters> |
| <asp:SessionParameter Name="EquipmentID" SessionField="EquipmentID" |
| Type="Int32" /> |
| </SelectParameters> |
| <InsertParameters> |
| <asp:Parameter Name="EquipmentID" Type="Int32" /> |
| <asp:Parameter Name="DateAdded" Type="DateTime" /> |
| <asp:Parameter Name="Scheduled" Type="Boolean" /> |
| <asp:Parameter Name="Quantity" Type="Double" /> |
| <asp:Parameter Name="AddedBy" Type="String" /> |
| </InsertParameters> |
| </asp:SqlDataSource> |
| </asp:Content> |
| <%@ Control Language="VB" AutoEventWireup="false" CodeFile="InsertOil.ascx.vb" Inherits="WorkOrders_InsertOil" %> |
| EquipmentID<asp:TextBox ID="txtEquipmentID" runat="server"></asp:TextBox><br /> |
| Date Added<asp:TextBox ID="txtDateAdded" runat="server"></asp:TextBox><br /> |
| Quantity<asp:TextBox ID="txtQuantity" runat="server"></asp:TextBox><br /> |
| Added By<asp:TextBox ID="txtAddedBy" runat="server"></asp:TextBox><br /> |
| Scheduled<asp:CheckBox ID="chkScheduled" runat="server" /> |
| <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/> |
| <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler"/> |
hi,
i have added the following style to aspx page. But still image is getting disappered on mouse hover.
I am using telerik verion 2009.2.826.20.
please help me....
<
style type="text/css">
.RadTreeView .rtPlus
{
background-image: url('../Images/Folderclosed.gif') !important;
height: 10px !important;
width: 12px !important;
}
.RadTreeView .rtMinus
{
background-image: url('../Images/Folderopen.gif') !important;
height: 10px !important;
width: 12px !important;
}
.RadTreeView .rtLI rtLast
{
background-image: url('../Images/Closed_folder.gif') !important;
background-position: 0px 0px !important;
height: 10px !important;
width: 10px !important;
}
.RadTreeView .rtMinus:hover
{
background-position: 0px 0px !important;
}
.RadTreeView .rtPlus:hover
{
background-position: 0px 0px !important;
}
</style>
Regards,
Medac
| Match type1 -("My Number") Hi .. i am using radtree view in my web page. I am adding the nodes manually. I have to bind the No of records for corresponding match. I will be getting the d ata from stored procedure for corresponding Match type 1 to Match type 7. Can i add rad treenode text side by my database Numbers. Match type1 -("My Number") Match type1 -("My Number") Match type2 -("My Number") Match type3 -("My Number") Match type4 -("My Number") Match type5 -("My Number") Match type6 -("My Number") Match type7 -("My Number"). Here i am adding Match Type1 as template field. When user clicks on that link it navigates to another page. How can i do this. Please give some suggetions. How can i do ? <td width="50%" > |
| <rad:RadTreeView ID="RadTreeView1" runat="server" DragAndDropBetweenNodes="true" Skin="Vista"> |
| <Nodes> |
| <rad:RadTreeNode runat="server" Text="Matching Types" Expanded="true"> |
| <Nodes> |
| <rad:RadTreeNode runat="server" Text="Match Type1" NavigateUrl="../Modules/Search Results.aspx" |
| ToolTip="click here to see results of this search for the match type fot this decedent." > |
| </rad:RadTreeNode> |
| <rad:RadTreeNode runat="server" Text="Match Type2" NavigateUrl="../Modules/Search Results.aspx" |
| ToolTip="click here to see results of this search for the match type fot this decedent." /> |
| <rad:RadTreeNode runat="server" Text="Match Type3" NavigateUrl="../Modules/Search Results.aspx" |
| ToolTip="click here to see results of this search for the match type fot this decedent." /> |
| <rad:RadTreeNode runat="server" Text="Match Type4" NavigateUrl="../Modules/Search Results.aspx" |
| ToolTip="click here to see results of this search for the match type fot this decedent." /> |
| <rad:RadTreeNode runat="server" Text="Match Type5" NavigateUrl="../Modules/Search Results.aspx" |
| ToolTip="click here to see results of this search for the match type fot this decedent." /> |
| <rad:RadTreeNode runat="server" Text="Match Type6" NavigateUrl="../Modules/Search Results.aspx" |
| ToolTip="click here to see results of this search for the match type fot this decedent." /> |
| <rad:RadTreeNode runat="server" Text="Match Type7" NavigateUrl="../Modules/Search Results.aspx" |
| ToolTip="click here to see results of this search for the match type fot this decedent." /> |
| </Nodes> |
| </rad:RadTreeNode> |
| </Nodes> |
| </rad:RadTreeView> |
| </td> |
| <ItemTemplate> |
| <div class="rcbItem"> |
| <%#Eval("RefereeFirstName") & " " & Eval("RefereeMidName") & " " & Eval("RefereeLastName")%> |
| </div> |
| </ItemTemplate> |
| <asp:Label SkinID="mailLabel" ID="lblMailRcp" runat="server" Font-Bold="true" Text="<%$Resources:TextResources, ID_MAIL_TO%>" /> </td><td width="650"><telerik:RadTextBox OnTextChanged="anyText_TextChanged" ID="txtMailTo" Font-Size="10" runat="server" ReadOnly="true" Width="100%" AutoPostBack="true"></telerik:RadTextBox> |
| <telerik:RadEditor ID="EditorMailBody" runat="server" EditModes="Design" OnTextChanged="anyText_TextChanged" AutoPostBack="true" |
| Enabled="True" EnableResize="True" Language="de-DE" |
| ToolsFile="~/App_GlobalResources/NoTools.xml" Visible="True" |
| Width="100%" Height="275" SkinID="EmailEditor" |
| ><Content /></telerik:RadEditor> |
| protected void anyText_TextChanged(object sender, EventArgs e) |
| { |
| if (sender is RadTextBox) |
| { |
| RadTextBox selBox = (RadTextBox)sender; |
| switch (selBox.ID) |
| { |
| case "txtMailTo": |
| _currentEmail.Recipient = selBox.Text; |
| break; |
| case "txtMailSubject": |
| _currentEmail.Subject = selBox.Text; |
| break; |
| case "lblMailSender": |
| _currentEmail.Sender = selBox.Text; |
| break; |
| } |
| } |
| else if (sender is RadEditor) |
| { |
| RadEditor selBox = (RadEditor)sender; |
| switch (selBox.ID) |
| { |
| case "EditorMailBody": |
| _currentEmail.Body = selBox.Text; |
| break; |
| } |
| } |
| _currentEmail.UpdateEmail(); |
| <telerik:RadGrid runat="server" AllowPaging="True" ID="grdAddedFlyerItems" OnNeedDataSource="grdAddedFlyerItems_NeedDataSource" |
| Width="375px" OnRowDrop="grdAddedFlyerItems_RowDrop" AllowMultiRowSelection="true" |
| PageSize="7" AutoGenerateColumns="false"> |
| <MasterTableView DataKeyNames="ItemID" Width="100%" EditMode="InPlace"> |
| <EditFormSettings> |
| <EditColumn UniqueName="EditCommandColumn1" ButtonType="imageButton" CancelText="Cancel this action" |
| UpdateText="Save changes" EditText="Edit record" CancelImageUrl="~/App_Themes/Default/Buttons/notapprovedicon.gif" |
| UpdateImageUrl="~/App_Themes/Default/Buttons/saveicon.gif"> |
| </EditColumn> |
| </EditFormSettings> |
| <Columns> |
| <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" |
| EditImageUrl="~/App_Themes/Default/Buttons/editicon.gif"> |
| <ItemStyle CssClass="nowrap" /> |
| <HeaderStyle Width="10px" /> |
| </telerik:GridEditCommandColumn> |
| <telerik:GridButtonColumn ButtonType="ImageButton" ConfirmText="Remove this item from added items?" |
| CommandName="RemoveItem" Text="Remove Item" UniqueName="DeleteColumn" ImageUrl="~/App_Themes/Default/Buttons/recyclebin_small.gif"> |
| <HeaderStyle Width="10px" /> |
| </telerik:GridButtonColumn> |
| <telerik:GridBoundColumn DataField="ItemCompany" HeaderText="Prefix" SortExpression="ItemCompany" |
| UniqueName="ItemCompany" ReadOnly="true"> |
| <HeaderStyle Width="35px" /> |
| <ItemStyle CssClass="nowrap" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="Item Nbr" SortExpression="ItemNumber" DataField="ItemNumber" |
| UniqueName="ItemNumber" ReadOnly="true"> |
| <HeaderStyle Width="65px" /> |
| <ItemStyle CssClass="nowrap" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" |
| UniqueName="Description" ReadOnly="true"> |
| </telerik:GridBoundColumn> |
| <telerik:GridNumericColumn DataField="Price" HeaderText="Price" DataFormatString="{0:C}" |
| SortExpression="Price" UniqueName="Price" /> |
| </Columns> |
| <NoRecordsTemplate> |
| <div style="height: 30px; cursor: pointer;"> |
| No items to view</div> |
| </NoRecordsTemplate> |
| <PagerStyle Mode="NumericPages" PageButtonCount="4" /> |
| </MasterTableView> |
| <ClientSettings AllowRowsDragDrop="True"> |
| <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" /> |
| <ClientEvents OnRowDropping="onRowDropping" /> |
| </ClientSettings> |
| </telerik:RadGrid> |