Hi, I'd like to know if there is a a method to get the total working time of the day, which is the beginning of the first appointment to the end of the last appointment of the day (including possible pauses between them as work time)
On Day view, i found it easy to get this with client-side scripting, looping though scheduler.appointments, and then inserting it as dom node in the header
However, i can't find how to do this in the week view.
My client do not want to use Month and TimeLine view now but, if possible, I'd like to know how to do this for them too
Thank you very much in advance.
Regards,
Andre
radComboUseStat.Items.Clear(); radComboUseStat.Enabled = false;Hello,
I have a radgrid with a form template editform to do the updates. In this editform there is a radtextbox. To change the value of this radtextbox, I use a Radwindow. When the radwindow is closed, the selected value from the radwindow is sent to the radtextbox on the parent page. So the radtextbox in the form template editform has now the new value.
I use javascript:
function GetGridServerElement(serverID, tagName) { if (!tagName) tagName = "*"; var grid = document.getElementById("<%=RadGrid1.ClientID %>"); var elements = grid.getElementsByTagName(tagName); for (var i = 0; i < elements.length; i++) { var element = elements[i]; if (element.id.indexOf(serverID) >= 0) return element; } }function clientShow(sender, EventArgs) { var radtextbox = GetGridServerElement("radtextbox", "input"); sender.argument = radtextbox.value; } function clientClose(sender,args) { if (args.get_argument()!= null) { var radtextbox = GetGridServerElement("radtextbox", "input"); radtextbox.value = args.get_argument(); } }
But when I click the update button from my form template editform, the value isn’t saved to the database. The old value of the radtextbox in my database isn’t replaced by the new one.
<tr> <td> <asp:Label ID="Label25" runat="server" Text="Vendor Type: "></asp:Label> </td> <td> <telerik:RadComboBox ID="ddlVendorTypes" runat="server" SelectedValue='<%# Bind("RoleTypeCode") %>' DataSourceID="SqlDataSourceVendorTypes" DataTextField="Name" DataValueField="RoleTypeCode" AutoPostBack="true" TabIndex="6" MarkFirstMatch="true" EnableLoadOnDemand="true" EnableTextSelection="true" onselectedindexchanged="ddlVendorTypes_SelectedIndexChanged"> </telerik:RadComboBox> </td> </tr> <tr> <td> <asp:Label ID="Label6" runat="server" Text="Vendor: "></asp:Label> </td> <td> <telerik:RadComboBox ID="ddlVendors" runat="server" TabIndex="8"> </telerik:RadComboBox> </td> </tr>protected void ddlVendorTypes_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) { GridEditableItem editedItem = (o as RadComboBox).NamingContainer as GridEditableItem; RadComboBox ddlVendors = editedItem.FindControl("ddlVendors") as RadComboBox; RadComboBox ddlVendorTypes = editedItem.FindControl("ddlVendorTypes") as RadComboBox; VendorBinding(ddlVendors, ddlVendorTypes.SelectedValue); } private void VendorBinding(RadComboBox ddlVendors, string VendorType) { if (SqlDataSourceVendors.SelectParameters.Count > 0) SqlDataSourceVendors.SelectParameters.RemoveAt(0); SqlDataSourceVendors.SelectParameters.Add("RoleTypeCode", VendorType); ddlVendors.DataSource = SqlDataSourceVendors; ddlVendors.DataTextField = "Name"; ddlVendors.DataValueField = "PartyRoleID"; ddlVendors.DataBind(); }