<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript"> function EnableButton() { var btn = document.getElementById("btnTarget"); btn.disabled = false; } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <telerik:RadFormDecorator Skin="Office2007" ID="RadFormDecorator1" DecoratedControls="all" runat="server" DecorationZoneID="zoneButtons" /> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <div id="zoneButtons"> <asp:Button ID="btnTarget" Text="Target" runat="server" Enabled="false" /> <asp:Button runat="server" ID="btnSource" Text="Click to enable 'Target'" Enabled="true" OnClientClick="EnableButton();return false;" /> </div> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html>
ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="false" AllowAutomaticInserts="True"
AllowSorting="true" AllowAutomaticUpdates="True" AllowPaging="false"
AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" ShowStatusBar="true"
Width="950px" OnItemDataBound= "rgQueue2_OnItemDataBound">
<MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataSourceID="ObjectDataSource1"
HorizontalAlign="NotSet" AllowSorting="false" EditMode="InPlace">
<Columns>
<telerik:GridTemplateColumn HeaderText="Source" DataField="SourceName" UniqueName="Source"
HeaderStyle-Width="250px" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:Label ID="lblsource" runat="server"> <%# DataBinder.Eval(Container.DataItem, "SourceName")%> </asp:Label></ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddlsource" runat="server">
</asp:DropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
ASPX.CS:
protected void rgQueue2_OnItemDataBound(object sender, GridItemEventArgs e)
{
if ((e.Item is GridEditableItem) && e.Item.IsInEditMode)
{
GridEditableItem item = e.Item as GridEditableItem;
DropDownList list = item.FindControl("ddlsource") as DropDownList;
}
}
PageSize='<%# GlobalPageSize %>'PageSize='15'<telerik:RadDatePicker ID="dpVeljaOd" AutoPostBack="false" CausesValidation="false" runat="server"> <DateInput CausesValidation="false" runat="server"></DateInput> <DatePopupButton Enabled="true" runat="server" /> </telerik:RadDatePicker> <asp:RequiredFieldValidator ID="valrqVeljaOd" CssClass="errorText" ErrorMessage="Obvezno polje" ControlToValidate="dpVeljaOd" Enabled="true" runat="server"></asp:RequiredFieldValidator>Hi all,
I'm implementing a user control which uses a radtreeview as filter, I need to have access to the checkbox element of each radtreenode in order to attach an onclick=Function(param1,param2..). The "OnClientNodeChecked" event does not work for me because the user control has several other controls inside, which makes obtaining clientId's a bit tricky...I tried making a template with the checkboxes for the radTreeView, but that makes useless a lot of the javascript that handles checkbox behavior (like the get_checked()).
A bit like going through a client select column in a grid...and doing something with the check...
Thanks in advance.

function nodeDropping(sender, eventArgs) {
var node = eventArgs.get_sourceNode();
var args = node.get_value();
__doPostBack(
'ctl00$ContentPlaceHolder1$upTest', args);
}
Then in the page load, I catch these arguments and insert an appointment.
My problem is: how to get the date and time of the Scheduler? Meaning the spot I dropped my item on. I have searched the documentation, but I can not find a list of the functions like get_sourceNode() etc that I can use. I can use
eventArgs.get_htmlElement() to get a referance to the element where I dropped the item (the Scheduler), but how to get the exact position I dropped it into?

