or
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="scriptman" runat="server"></asp:ScriptManager> |
| <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" Skin="Web20" DecoratedControls="Buttons" DecorationZoneID="decorationZone" /> |
| <div id="decorationZone"> |
| <asp:Button ID="btnSubmit1" runat="server" Text="Submit" |
| UseSubmitBehavior="false" OnClientClick="SubmitOnlyOnce(this, false)" |
| onclick="btnSubmit1_Click" /> |
| </div> |
| <div> |
| <asp:Button ID="btnSubmit2" runat="server" Text="Submit" |
| onclick="btnSubmit2_Click" |
| UseSubmitBehavior="false" OnClientClick="SubmitOnlyOnce(this, false)" /> |
| </div> |
| <br /> |
| <asp:Label ID="lblMsg" runat="server"></asp:Label> |
| </div> |
| </form> |
| <script type="text/javascript"> |
| function SubmitOnlyOnce(control, validatorsExist) { |
| var msg = "Please wait..."; |
| var btn = $get(control.id); |
| if (validatorsExist) { |
| if (Page_ClientValidate()) { |
| Telerik.Web.UI.RadFormDecorator.set_enabled(btn, false); |
| control.value = msg; |
| } |
| } |
| else { |
| Telerik.Web.UI.RadFormDecorator.set_enabled(btn, false); |
| control.value = msg; |
| } |
| } |
| </script> |
| </body> |
| </html> |
| /* r.a.d.menu Web 2.0 skin */ |
| .RadMenu_Blue |
| { |
| background: url(Menu/MenuItemBackground.gif); |
| border-left: solid 1px #617fb5; |
| } |
| .RadMenu_Blue_Context |
| { |
| background: none; |
| border:0; |
| } |
| .RadMenu_Blue .rmLink |
| { |
| text-decoration: none; |
| color: #fff; |
| border-left: solid 1px #c2cfe3; |
| border-right: solid 1px #617fb5; |
| background: transparent; |
| } |
| .RadMenu_Blue .rmLink:hover, |
| .RadMenu_Blue .rmFocused, |
| .RadMenu_Blue .rmExpanded |
| { |
| color:Black; |
| background: transparent url(Menu/MainItemBackgroundHover.gif) no-repeat center; |
| } |
| .RadMenu_Blue .rmText |
| { |
| /*background: transparent url(Menu/RootGroupArrowDown.gif) no-repeat right center;*/ |
| padding-left: 22px; /* should be adjusted to the size of the images, if they are larger than 16x16px */ |
| margin-right: 4px; |
| font:10px "segoe ui",arial,sans-serif; |
| line-height: 20px; |
| padding-right: 24px; |
| background-image:none; |
| } |
| .RadMenu_Blue .rmRootGroup .rmText .rmLeftImage |
| { |
| margin: 3px 1px 0; /* should be adjusted to the size of the images, if they are larger than 16x16px */ |
| } |
| .RadMenu_Blue .rmHorizontal .rmExpandBottom, |
| .RadMenu_Blue .rmHorizontal .rmExpandTop |
| { |
| background: transparent url(Menu/RootGroupArrowDown.gif) no-repeat rightright center; |
| } |
| .RadMenu_Blue .rmVertical .rmExpandLeft, |
| .RadMenu_Blue .rmVertical .rmExpandRight |
| { |
| background: transparent url(Menu/invertedGroupImage.gif) no-repeat rightright center; |
| } |
| .RadMenu_Blue .rmSlide |
| { |
| margin-top:-1px; |
| } |
| .RadMenu_Blue .rmGroup |
| { |
| border: solid 1px #6788be; |
| background: white; |
| } |
| .RadMenu_Blue .rmGroup .rmLink |
| { |
| background: white; |
| border: 0px; |
| border-bottom: solid 1px #f0f2f3; |
| color: #333; |
| } |
| .RadMenu_Blue .rmGroup .rmText |
| { |
| font-weight: normal !important; |
| background: none; |
| margin-right: 0 !important; |
| padding-left: 30px; |
| padding-right: 40px; |
| font-size: 10px; |
| } |
| .RadMenu_Blue .rmGroup .rmLink:hover, |
| .RadMenu_Blue .rmGroup .rmFocused, |
| .RadMenu_Blue .rmGroup .rmExpanded |
| { |
| background: #c7d9ef; |
| border: 0; |
| border-bottom: solid 1px #d8dde0; |
| } |
| .RadMenu_Blue .rmLeftArrow, |
| .RadMenu_Blue .rmRightArrow, |
| .RadMenu_Blue .rmTopArrow, |
| .RadMenu_Blue .rmBottomArrow, |
| .RadMenu_Blue .rmLeftArrowDisabled, |
| .RadMenu_Blue .rmRightArrowDisabled, |
| .RadMenu_Blue .rmTopArrowDisabled, |
| .RadMenu_Blue .rmBottomArrowDisabled |
| { |
| background: #e7f1ff url(Menu/left.gif) center center no-repeat; |
| width: 15px; |
| text-decoration:none; |
| color:#e7f1ff; |
| } |
| .RadMenu_Blue .rmTopArrow, |
| .RadMenu_Blue .rmTopArrowDisabled |
| { |
| background-image: url(Menu/top.gif); |
| width: 100%; |
| height: 15px; |
| } |
| .RadMenu_Blue .rmBottomArrow, |
| .RadMenu_Blue .rmBottomArrowDisabled |
| { |
| background-image:url(Menu/bottombottom.gif); |
| width: 100%; |
| height: 15px; |
| } |
| .RadMenu_Blue .rmRightArrow, |
| .RadMenu_Blue .rmLeftArrow |
| { |
| height: 100%; |
| } |
| .RadMenu_Blue .rmRightArrow, |
| .RadMenu_Blue .rmRightArrowDisabled |
| { |
| background-image: url(Menu/rightright.gif); |
| } |
| .RadMenu_Blue .rmVertical .rmSeparator |
| { |
| padding-top: 2px; |
| background: #6788be; |
| font-size: 1px; |
| line-height: 1px; |
| } |
| .RadMenu_Blue .rmSeparator .rmText |
| { |
| display: none; |
| } |
| .RadMenu_Blue .rmExpandLeft, |
| .RadMenu_Blue .rmExpandRight, |
| .RadMenu_Blue .rmFocused .rmExpandLeft, |
| .RadMenu_Blue .rmFocused .rmExpandRight, |
| .RadMenu_Blue .rmExpanded .rmExpandLeft, |
| .RadMenu_Blue .rmExpanded .rmExpandRight |
| { |
| background: transparent url(Menu/invertedGroupImage.gif) rightright center no-repeat; |
| } |
| .RadMenu_Blue .rmGroup .rmExpandLeft, |
| .RadMenu_Blue .rmGroup .rmExpandRight, |
| .RadMenu_Blue .rmGroup .rmFocused .rmExpandLeft, |
| .RadMenu_Blue .rmGroup .rmFocused .rmExpandRight, |
| .RadMenu_Blue .rmGroup .rmExpanded .rmExpandLeft, |
| .RadMenu_Blue .rmGroup .rmExpanded .rmExpandRight |
| { |
| background: transparent url(Menu/groupImage.gif) rightright center no-repeat; |
| } |
| /*right-to-left support*/ |
| .RadMenu_Blue_rtl, |
| .RadMenu_Blue_rtl * |
| { |
| text-align:rightright; |
| } |
| .RadMenu_Blue_rtl .rmRootGroup .rmText |
| { |
| padding-left: 24px; |
| padding-right: 8px; |
| margin-right: 0; |
| margin-left: 4px; |
| } |
| .RadMenu_Blue_rtl .rmGroup .rmText |
| { |
| margin-left: 0 !important; |
| padding-left: 40px; |
| padding-right: 30px; |
| } |
| .RadMenu_Blue .rmLeftImage |
| { |
| margin: 5px 2px 0; |
| } |
| .RadMenu_Blue_rtl .rmHorizontal .rmExpandBottom, |
| .RadMenu_Blue_rtl .rmHorizontal .rmExpandTop |
| { |
| background-position:left center; |
| } |
| .RadMenu_Blue_rtl .rmVertical .rmExpandLeft, |
| .RadMenu_Blue_rtl .rmVertical .rmExpandRight |
| { |
| background: transparent url(Menu/invertedGroupImageRTL.gif) no-repeat left center; |
| } |
| .RadMenu_Blue_rtl .rmGroup .rmExpandLeft, |
| .RadMenu_Blue_rtl .rmGroup .rmExpandRight |
| { |
| background: transparent url(Menu/groupImageRTL.gif) no-repeat 5px center; |
| } |
| .RadMenu_Blue_rtl .rmVertical .rmLink:hover .rmExpandLeft, |
| .RadMenu_Blue_rtl .rmVertical .rmLink:hover .rmExpandRight, |
| .RadMenu_Blue_rtl .rmVertical .rmFocused .rmExpandLeft, |
| .RadMenu_Blue_rtl .rmVertical .rmFocused .rmExpandRight, |
| .RadMenu_Blue_rtl .rmVertical .rmExpanded .rmExpandLeft, |
| .RadMenu_Blue_rtl .rmVertical .rmExpanded .rmExpandRight |
| { |
| background: transparent url(Menu/invertedGroupImageRTL.gif) left center no-repeat; |
| } |
| .RadMenu_Blue_rtl .rmGroup .rmLink:hover .rmExpandLeft, |
| .RadMenu_Blue_rtl .rmGroup .rmLink:hover .rmExpandRight, |
| .RadMenu_Blue_rtl .rmGroup .rmFocused .rmExpandLeft, |
| .RadMenu_Blue_rtl .rmGroup .rmFocused .rmExpandRight, |
| .RadMenu_Blue_rtl .rmGroup .rmExpanded .rmExpandLeft, |
| .RadMenu_Blue_rtl .rmGroup .rmExpanded .rmExpandRight |
| { |
| background: transparent url(Menu/groupImageRTL.gif) 5px center no-repeat; |
| } |
| .RadMenu_Blue .rmRootGroup .rmItem .rmDisabled, |
| .RadMenu_Blue .rmRootGroup .rmItem .rmDisabled:hover |
| { |
| -moz-opacity: 0.8; |
| opacity: 0.8; |
| color: #ccc; |
| background: none; |
| border-bottom-color: #f3f5f5; |
| } |
| <telerik:RadGrid ID="RadGrid1" AllowSorting="True" |
| AllowPaging="True" PageSize="10" runat="server" GridLines="None" |
| Width="95%" > |
| <MasterTableView Width="100%"></MasterTableView> |
| </telerik:RadGrid> |
| protected void Button4_Click(object sender, System.EventArgs e) |
| { |
| PopulateGrid(); |
| ConfigureExport(); |
| RadGrid1.ExportSettings.Excel.Format = Web.UI.GridExcelExportFormat.ExcelML; |
| CheckBox1.Checked = true; |
| RadGrid1.ExportSettings.ExportOnlyData = true; |
| RadGrid1.MasterTableView.ExportToExcel(); |
| } |
| void PopulateGrid() |
| { |
| SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString); |
| SqlCommand cmd = new SqlCommand("SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers", conn); |
| conn.Open(); |
| SqlDataReader reader = cmd.ExecuteReader(); |
| RadGrid1.DataSource = reader; |
| RadGrid1.DataBind(); |
| } |
| protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) |
| { |
| try |
| { |
| RadGrid1.DataSource = myWorkorderController.getAllWorkorders("Closed"); |
| } |
| catch (Exception ex) |
| { |
| throw ex; |
| } |
| } |
| protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) |
| { |
| if (e.CommandName == RadGrid.ExpandCollapseCommandName) |
| { |
| if (!e.Item.Expanded) |
| { |
| FormView oFormView = (FormView)RadGrid1.MasterTableView.Items[0].ChildItem.FindControl("FormView1"); |
| ACareFlangeWOHistoryByWOID_inType oWOHistInfo = new ACareFlangeWOHistoryByWOID_inType(); |
| oWOHistInfo.WOID = e.Item.OwnerTableView.Items[e.Item.ItemIndex]["WONUM"].Text; |
| oFormView.DataSource = myWorkorderController.getAllWorkorderHistory(oWOHistInfo); |
| oFormView.DataBind(); |
| ((GridDataItem)e.Item).ChildItem.FindControl("NestedViewPanel").Visible = |
| !e.Item.Expanded; |
| } |
| } |
| } |
| protected void RadGrid1_PreRender(object sender, EventArgs e) |
| { |
| if (!Page.IsPostBack) |
| { |
| RadGrid1.MasterTableView.Items[0].Expanded = true; |
| RadGrid1.MasterTableView.Items[0].ChildItem.FindControl("NestedViewPanel").Visible = true; |
| } |
| } |
| protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridNestedViewItem) |
| { |
| //e.Item.FindControl("InnerContainer").Visible = ((GridNestedViewItem)e.Item).Parent.Expanded; |
| } |
| } |
| <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" |
| OnItemCommand="RadGrid1_ItemCommand" AutoGenerateColumns="False" GridLines="None" Skin="Outlook" |
| AlternatingItemStyle-BackColor="#D9E6F2" ShowFooter="True" AllowFilteringByColumn="True" AllowPaging="True" |
| AllowSorting="True" OnPreRender="RadGrid1_PreRender"> |
| <HeaderContextMenu EnableTheming="True" Skin="Outlook"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </HeaderContextMenu> |
| <AlternatingItemStyle BackColor="#D9E6F2" /> |
| <MasterTableView Name="Workorders" PageSize="20" DataKeyNames="WONUM"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="CMWOID" Display="False" HeaderText="CMWOID" |
| UniqueName="CMWOID" ReadOnly="true"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="WONUM" HeaderText="WO #" |
| UniqueName="WONUM"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="EquipID" HeaderText="Equipment ID" |
| UniqueName="EquipID" ReadOnly="true" Display="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn HeaderText="Equip ID" DataField="EquipID" SortExpression="EquipID"> |
| <ItemTemplate> |
| <asp:Label runat="server" ID="lblEquipID" Text='<% #Eval("EquipID") + " " %>'> |
| </asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadComboBox ID="ddlEquipID" runat="server" DataTextField="equipids" |
| DataValueField="equipids" Skin="Outlook"> |
| </telerik:RadComboBox> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="EquipGroup" |
| HeaderText="Equip Group" UniqueName="EquipGroup"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ProdUnit" HeaderText="Prod Unit" |
| UniqueName="ProdUnit"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ProcessUnit" HeaderText="Process Unit" |
| UniqueName="ProcessUnit"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="EquipLocID" HeaderText="EquipLocID" |
| UniqueName="EquipLocID" ReadOnly="true" Display="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn HeaderText="Location" DataField="EquipLocID" SortExpression="EquipLocID"> |
| <ItemTemplate> |
| <asp:Label runat="server" ID="lblEquipLocID" Text='<% #Eval("EquipLocID") + " " %>'> |
| </asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadComboBox ID="ddlEquipLocID" runat="server" DataTextField="Description" |
| DataValueField="LocationID" Skin="Outlook"> |
| </telerik:RadComboBox> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="JobType" HeaderText="Job Type" |
| UniqueName="JobType" ReadOnly="true" Display="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn HeaderText="Job Type" DataField="JobType" SortExpression="JobType"> |
| <ItemTemplate> |
| <asp:Label runat="server" ID="lblJobTypeID" Text='<% #Eval("JobType") + " " %>'> |
| </asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadComboBox ID="ddlJobType" runat="server" DataTextField="Type" |
| DataValueField="Type" Skin="Outlook"> |
| </telerik:RadComboBox> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="Plant" HeaderText="Plant" |
| UniqueName="Plant"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Priority" HeaderText="Priority" |
| UniqueName="Priority"> |
| </telerik:GridBoundColumn> |
| <telerik:GridDateTimeColumn DataField="RequestDate" HeaderText="Request Date" |
| UniqueName="RequestDate"> |
| </telerik:GridDateTimeColumn> |
| <telerik:GridBoundColumn DataField="AssignedTo" HeaderText="Assigned To" |
| UniqueName="AssignedTo" ReadOnly="true" Display="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn HeaderText="Assigned To" DataField="AssignedTo" SortExpression="AssignedTo"> |
| <ItemTemplate> |
| <asp:Label runat="server" ID="lblAssignedToID" Text='<% #Eval("AssignedTo") + " " %>'> |
| </asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadComboBox ID="ddlAssignedTo" runat="server" DataTextField="UserName" |
| DataValueField="UserID" Skin="Outlook"> |
| </telerik:RadComboBox> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="ProbDescription" HeaderText="Prob Desc" |
| UniqueName="ProbDescription"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Service" HeaderText="Service" |
| UniqueName="Service"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Reason" HeaderText="Reason" |
| UniqueName="Reason"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="SVCCode" HeaderText="SVCCode" |
| UniqueName="SVCCode"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ReasonCode" HeaderText="ReasonCode" |
| UniqueName="ReasonCode"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <NestedViewTemplate> |
| <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap" Visible="false"> |
| <asp:FormView ID="FormView1" runat="server"> |
| <ItemTemplate> |
| <div class="contactWrap"> |
| <fieldset style="padding: 10px;"> |
| <legend style="padding: 5px;"><b>Execution Date: <%#Eval("ExecDate") %></b> |
| </legend> |
| <table> |
| <tbody> |
| <tr> |
| <td> |
| <fieldset style="padding: 10px;"> |
| <legend style="padding: 5px;"><b>Repair Maintenance</b> |
| </legend> |
| <table> |
| <tbody> |
| <tr> |
| <td> Cause Description: </td> |
| <td> |
| <asp:Label ID="cityLabel" Text='<%#Bind("CauseDesc") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> Failure Reason: </td> |
| <td> |
| <asp:Label ID="Label2" Text='<%#Bind("FailReason") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td>Order Problem:</td> |
| <td> |
| <asp:Label ID="Label3" Text='<%#Bind("OrderProblem") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td>Parts Replaced:</td> |
| <td> |
| <asp:Label ID="Label4" Text='<%#Bind("PartsReplaced") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td>Replace Reason:</td> |
| <td> |
| <asp:Label ID="Label5" Text='<%#Bind("ReplaceReason") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td>Recommendation:</td> |
| <td> |
| <asp:Label ID="Label6" Text='<%#Bind("Recommendation") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td>Task Sequence:</td> |
| <td style="width:230px"> |
| <asp:Label ID="Label7" Text='<%#Bind("TaskSeq") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td>Sec 2 Date:</td> |
| <td> |
| <asp:Label ID="Label8" Text='<%#Bind("Sec2Date") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td>Sec 2 Name:</td> |
| <td> |
| <asp:Label ID="Label9" Text='<%#Bind("Sec2Name") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| <td> |
| <fieldset style="padding: 10px;"> |
| <legend style="padding: 5px;"><b>Preventive Maintenance</b> |
| </legend> |
| <table> |
| <tbody> |
| <tr> |
| <td> Last Calibiration: </td> |
| <td> |
| <asp:Label ID="Label10" Text='<%#Bind("LastCalib") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> Torque Value Used: </td> |
| <td> |
| <asp:Label ID="Label11" Text='<%#Bind("TorquevalUsed") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label30" runat="server" Text='<% #Bind("Chk1Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label12" Text='<%#Bind("Chk1") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label13" runat="server" Text='<% #Bind("Chk2Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label19" Text='<%#Bind("Chk2") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label14" runat="server" Text='<% #Bind("Chk3Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label20" Text='<%#Bind("Chk3") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label15" runat="server" Text='<% #Bind("Chk4Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label21" Text='<%#Bind("Chk4") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label16" runat="server" Text='<% #Bind("Chk5Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label22" Text='<%#Bind("Chk5") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label17" runat="server" Text='<% #Bind("Chk6Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label23" Text='<%#Bind("Chk6") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label18" runat="server" Text='<% #Bind("Chk7Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label24" Text='<%#Bind("Chk7") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label25" runat="server" Text='<% #Bind("Chk8Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label26" Text='<%#Bind("Chk8") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label27" runat="server" Text='<% #Bind("OPT1Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label28" Text='<%#Bind("OPT1") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="Label29" runat="server" Text='<% #Bind("OPT2Name")%>'></asp:Label> |
| </td> |
| <td> |
| <asp:Label ID="Label31" Text='<%#Bind("OPT2") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </fieldset> |
| </div> |
| </ItemTemplate> |
| </asp:FormView> |
| </asp:Panel> |
| </NestedViewTemplate> |
| </MasterTableView> |
| <FilterMenu EnableTheming="True" Skin="Outlook"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| </telerik:RadGrid> |
Hello All
I have a problem where a rad chart displays one bar only when the underlying data source returns data for multiple bars. Any idea why only the first bar is showing?
Please help asap.
Thanks
| <telerik:RadSlider ID="rsMEDUpdateMedRecord" runat="server" AnimationDuration="400" |
| Height="42px" ItemType="Tick" LargeChange="1" MaximumValue="5" |
| TrackPosition="TopLeft" Width="350px" ClickOffset="1" Length="350" |
| Skin="Vista"> |
| </telerik:RadSlider> |
I have tried every sample app you have supplied on the forums and still cannot get this to work It always shows the image. Below is the code for the page I do not have any code behind since none of what I tried was working.
| <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" |
| AllowSorting="True" |
| DataSourceID="SqlDataSource1" GridLines="None" ShowGroupPanel="True" |
| Skin="Office2007" AllowAutomaticInserts="True" AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" HorizontalAlign="Left" Width="100%"> |
| <ItemStyle HorizontalAlign="Center" /> |
| <PagerStyle Position="TopAndBottom" Mode="NumericPages" /> |
| <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="Black" DataKeyNames="ContactID" CommandItemDisplay="Top" AllowPaging="True" editmode="PopUp" showfooter="True"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridEditCommandColumn HeaderImageUrl="./images/icon_edit_topic.gif" Resizable="False"></telerik:GridEditCommandColumn> |
| <telerik:GridButtonColumn ConfirmTitle="Delete Confirmation" ConfirmDialogType="RadWindow" CommandName="Delete" Text="Delete" ImageUrl="/images/delete.gif" ConfirmText="Are you sure you want to delete record?" HeaderImageUrl="./images/delete.gif" HeaderText="Delete" Reorderable="False" UniqueName="column1"></telerik:GridButtonColumn> |
| <telerik:GridTemplateColumn AllowFiltering="False" HeaderText="Notes" UniqueName="noteimgcolumn"><ItemTemplate> |
| <ITEMTEMPLATE /><asp:Image id="Image1" runat="server" __designer:wfdid="w301" ImageUrl="~/images/bullet.gif"> </asp:Image> <telerik:RadToolTip id="RadToolTip1" title="Contact Notes" runat="server" Skin="Office2007" Width="693px" Height="75px" sPosition="BottomLeft" __designer:wfdid="w302" TargetControlID="image1" RelativeTo="Element" Position="BottomRight" EnableTheming="False" AutoCloseDelay="5000" Animation="Resize" ShowDelay="100"><BR /><DIV style="BACKGROUND-IMAGE: url(Images/bg-fade.gif); WIDTH: 686px; HEIGHT: 141px; BACKGROUND-COLOR: yellow" align=left><asp:Label id="Label4" runat="server" Text='<%# Eval("FirstName") %>' __designer:wfdid="w303" Font-Size="Large" ForeColor="Red"></asp:Label> <asp:Label id="Label5" runat="server" __designer:wfdid="w304"></asp:Label> <asp:Label id="Label6" runat="server" Text='<%# Eval("LastName") %>' __designer:wfdid="w305" Font-Size="Large" ForeColor="Red"></asp:Label><BR /> |
| <HR /> |
| <asp:Label id="Label3" runat="server" Text="Note:" __designer:wfdid="w299" Font-Size="Medium" ForeColor="Maroon"></asp:Label><BR /><asp:Label id="Label7" runat="server" Text='<%# Eval("Notes") %>' Font-Bold="False" __designer:wfdid="w300" Font-Size="Medium" ForeColor="Blue" EnableTheming="True"></asp:Label><BR /><BR /><BR /><BR /><BR /><BR /><BR /></DIV></telerik:RadToolTip> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="lastname" HeaderText="Last Name" UniqueName="column3"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="column2"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="middlename" HeaderText="Middle Name" Visible="False" UniqueName="column4"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="suffix" HeaderText="Suffix" Visible="False" UniqueName="column6"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" Visible="False" UniqueName="Title"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="JobTitle" HeaderText="JobTitle" SortExpression="JobTitle" Visible="False" UniqueName="JobTitle"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Company" HeaderText="Company" SortExpression="Company" UniqueName="Company"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Address" HeaderText="Address" UniqueName="column7"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="WorkFax" HeaderText="WorkFax" SortExpression="WorkFax" UniqueName="WorkFax"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="WorkPhone" HeaderText="WorkPhone" SortExpression="WorkPhone" UniqueName="WorkPhone"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="WorkPhoneExtension" HeaderText="WorkPhoneExtension" SortExpression="WorkPhoneExtension" Visible="False" UniqueName="WorkPhoneExtension"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Address1" HeaderText="Address1" SortExpression="Address1" Visible="False" UniqueName="Address1"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Address2" HeaderText="Address2" SortExpression="Address2" Visible="False" UniqueName="Address2"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" Visible="False" UniqueName="City"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="State" HeaderText="State" SortExpression="State" Visible="False" UniqueName="State"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ZipCode" HeaderText="ZipCode" SortExpression="ZipCode" Visible="False" UniqueName="ZipCode"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Country" HeaderText="Country" SortExpression="Country" Visible="False" UniqueName="Country"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="EmailAddress" HeaderText="EmailAddress" SortExpression="EmailAddress" Visible="False" UniqueName="EmailAddress"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ContactID" ReadOnly="True" Visible="False" UniqueName="column5"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Notes" MaxLength="1000" HeaderText="Note" Visible="False" UniqueName="column"></telerik:GridBoundColumn> |
| </Columns> |
| <EditFormSettings> |
| <EditColumn UniqueName="EditCommandColumn1"></EditColumn> |
| </EditFormSettings> |
| <ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle> |
| <GroupHeaderItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></GroupHeaderItemStyle> |
| <AlternatingItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></AlternatingItemStyle> |
| <EditItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></EditItemStyle> |
| <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="20" Position="TopAndBottom" HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></PagerStyle> |
| <HeaderStyle HorizontalAlign="Center" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle> |
| </MasterTableView> |
| <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True"> |
| <Selecting AllowRowSelect="True"></Selecting> |
| </ClientSettings> |
| <FilterMenu EnableTheming="True" Skin="Hay"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| <EditItemStyle BackColor="White" HorizontalAlign="Left" /> |
| <FilterItemStyle HorizontalAlign="Center" /> |
| </telerik:RadGrid> |