or
| /* 090825b Need this class to emulate the NoRecordsTemplate |
| * so that we can control when and what message to display |
| * when no equipment records exist yet */ |
| class iqNoRecordsTemplate : ITemplate |
| { |
| string iqText; |
| System.Drawing.Color iqColor; |
| public iqNoRecordsTemplate(string text,System.Drawing.Color Color) |
| { |
| iqText=text; |
| iqColor = Color; |
| } |
| public void InstantiateIn(Control container) |
| { |
| Label lbl = new Label(); |
| lbl.ID = "Label1"; |
| lbl.Text = iqText; |
| lbl.ForeColor = iqColor; |
| container.Controls.Add(lbl); |
| } |
| } |
| if (Session["AnyDataRead"] == "No") //090815a |
| { |
| ftbox.Text = "0"; |
| // Create new No Records Template on the fly from iqNoRecordsTemplate() |
| // No records found messages. |
| iqText = "No Equipment to List as yet"; // 090825b |
| equipmentGrid.MasterTableView.NoRecordsTemplate = new iqNoRecordsTemplate(iqText, System.Drawing.Color.Brown); // 090825b |
| } |
| else |
| { |
| ftbox.Text = equipmentGrid.PageSize.ToString(); |
| iqText = " ";// 090825b |
| equipmentGrid.MasterTableView.NoRecordsTemplate = new iqNoRecordsTemplate(iqText, System.Drawing.Color.Brown); // 090825b |
| } |
| <telerik:RadNumericTextBox ID="DTPNumericTextBox1" runat="server" |
| NumberFormat-DecimalDigits="0" NumberFormat-AllowRounding="false" ></telerik:RadNumericTextBox> |
