can a client event be added to a control in a EditItemTemplate at design time?
<EditItemTemplate>
<telerik:RadNumericTextBox ID="rntbNetCost" Text='<%# Bind("NetCost") %>' runat="server">
<ClientEvents OnValueChanged="UpdateCostSource" />
<NumberFormat DecimalDigits="2" />
</telerik:RadNumericTextBox>
<asp:RequiredFieldValidator ID="rfNetCost" ControlToValidate="rntbNetCost" ErrorMessage="Net Cost Required" runat="server">
</asp:RequiredFieldValidator>
</EditItemTemplate>
the function hasn't been implemented (yet)
function UpdateCostSource(sender,args) {
alert('me');
}
or do I have to add it as an attribute on the ItemCreated event handler in code
I'm working in VS2010 .NET 4.0
UPDATE - the event triggers, it just doesn't allow me to break
Marianne
<EditItemTemplate>
<telerik:RadNumericTextBox ID="rntbNetCost" Text='<%# Bind("NetCost") %>' runat="server">
<ClientEvents OnValueChanged="UpdateCostSource" />
<NumberFormat DecimalDigits="2" />
</telerik:RadNumericTextBox>
<asp:RequiredFieldValidator ID="rfNetCost" ControlToValidate="rntbNetCost" ErrorMessage="Net Cost Required" runat="server">
</asp:RequiredFieldValidator>
</EditItemTemplate>
the function hasn't been implemented (yet)
function UpdateCostSource(sender,args) {
alert('me');
}
or do I have to add it as an attribute on the ItemCreated event handler in code
I'm working in VS2010 .NET 4.0
UPDATE - the event triggers, it just doesn't allow me to break
Marianne