<table style="width:90%;margin-right:auto;margin-left:auto;margin-top:20px"> <tr> <td style="height:20px;width:100%;border-bottom:double;border-color:red">iDRAT Management Options</td> </tr> </table> <table style="width:90%;margin-right:auto;margin-left:auto;margin-top:20px"> <tr> <td style="width:25%;align-content:center;vertical-align:top"> <asp:HyperLink ID="lnkAdmin" runat="server" onclick="LoadWindow(1)" ><asp:Image ID="imgAdmin" runat="server" ImageUrl="~/Images/AdminIcon2.png" /> Manage Admin</asp:HyperLink> </td> <td style="width:25%;text-align:center"> <asp:HyperLink ID="lnkInventory" runat="server" onclick="LoadWindow(2)" ><asp:Image ID="imgtest" runat="server" ImageUrl="~/Images/AdminIcon2.png" /> Manage Inventory</asp:HyperLink> </td> <td style="width:25%;text-align:center"> <asp:HyperLink ID="lnkEquiptypes" runat="server" onclick="LoadWindow(3)" ><asp:Image ID="Image1" runat="server" ImageUrl="~/Images/AdminIcon2.png" /> Manage Equipment Types</asp:HyperLink> </td> <td style="width:25%;text-align:center"> <asp:HyperLink ID="lnkPo" runat="server" onclick="LoadWindow(4)" ><asp:Image ID="Image2" runat="server" ImageUrl="~/Images/AdminIcon2.png" /> Manage Purchase Orders</asp:HyperLink> </td> </tr> </table><script type="text/javascript"> function LoadWindow(Type) { var radWidow = $find("<%= RadWindow.ClientID%>"); if (Type == 1) { radWidow.show(); radWidow.setUrl("ManageAdmins.aspx"); radWidow.maximize(); } else if (Type == 2) { radWidow.show(); radWidow.setUrl("ManageEquip.aspx"); radWidow.maximize(); } else if (Type == 3) { radWidow.show(); radWidow.setUrl("ManageDb.aspx"); radWidow.maximize(); } else if (Type == 4) { radWidow.show(); radWidow.setUrl("ManagePO.aspx"); radWidow.maximize(); } else if (Type == 5) { radWidow.show(); radWidow.setUrl("ReceiveItems.aspx"); radWidow.maximize(); } else if (Type == 6) { radWidow.show(); radWidow.setUrl("IssueItem.aspx"); radWidow.maximize(); } else if (Type == 7) { radWidow.show(); radWidow.setUrl("Transaction.aspx?Tran=5"); radWidow.maximize(); } else if (Type == 8) { radWidow.show(); radWidow.setUrl("Transaction.aspx?Tran=24"); radWidow.maximize(); } } </script>

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
How do I do this?
I have a website that requires a username and password in order to access the site. The name of the user that logs in determines which treeview node in the left-hand pane of FileExplorer receives focus. Basically in OnLoadComplete() I have:
userNode.Selected = true;
This does select the correct node immediately after the user logs in, but the right-hand pane of FileExplorer displays the files and folders that are associated with the root node, instead of displaying the files and folders of the selected node. How do I get the right-hand pane to display the content (files and folders) that are associated with the programmatically selected node, instead of displaying the content of the root node?
Thank you
foreach (blah blah) { templateColumn = new GridTemplateColumn(); RadGrid1.MasterTableView.Columns.Add(templateColumn); templateColumn.ItemTemplate = new MyTemplate(blah); templateColumn.HeaderText = blah; }private class MyTemplate : ITemplate{ protected CheckBox chk; private string columnName; public MyTemplate(string columnName) { this.columnName = columnName; } public void InstantiateIn(Control container) { chk = new CheckBox(); chk.ID = "chk" + columnName; chk.DataBinding += new EventHandler(DataBinding); chk.Enabled = true; container.Controls.Add(chk); } void DataBinding(object sender, EventArgs e) { CheckBox cBox = (CheckBox)sender; GridDataItem container = (GridDataItem)cBox.NamingContainer; cBox.Checked = (bool)((DataRowView)container.DataItem)[columnName]; }}Hi, i am trying to make a confirmation box when moving an appointment.
The problem here is that the:
args.get_targetSlot().get_startTime().format("HH:mm");
returns wrong time, wye is that?
function onAppointmentMoveEnd(sender, args) { var appointment = args.get_appointment(); var scheduler = $find("<%= RadScheduler1.ClientID %>"); var fromTime = appointment.get_start(); var customerName = appointment.get_resources().getResourceByType("Kunder").get_text(); var fromRoom = appointment.get_resources().getResourceByType("Rum").get_text(); var targetRoom = args.get_targetSlot().get_resource().get_text(); var targetTime = args.get_targetSlot().get_startTime().format("HH:mm"); // Calculate the duration of the appointment var appointmentDuration = appointment.get_end() - appointment.get_start(); var newFromEndTime = new Date(fromTime.getTime() + appointmentDuration); var editSeries = args.get_editingRecurringSeries(); // Pop a confirmation window var confirmMessage = "Är du säker på att du vill flytta " + customerName + "?<p> <strong> Från:</strong> " + fromRoom + " <strong>kl:</strong> " + fromTime.format("HH:mm") + "<br/> <strong>Till:</strong> " + targetRoom + " <strong>kl:</strong> " + targetTime + "</p>"; radconfirm(confirmMessage, function (arg) { if (arg == false) { // The user has confirmed moving the appointment. Update the start and end time. appointment.set_start(fromTime); appointment.set_end(newFromEndTime); scheduler.updateAppointment(appointment, editSeries); } }, 330, 100); }