This is a migrated thread and some comments may be shown as answers.

Attach Client Event to EditItemTemplate

2 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Elliott
Top achievements
Rank 2
Elliott asked on 24 Jun 2010, 06:59 PM
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

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 25 Jun 2010, 09:23 AM
Hi Marianne,

Either way is possible for attaching the client event handler.

Regards,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Accepted
Tsvetoslav
Telerik team
answered on 25 Jun 2010, 09:41 AM
Hi Marianne,

Either way is possible for attaching the client event handler.

Regards,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Elliott
Top achievements
Rank 2
Answers by
Tsvetoslav
Telerik team
Share this question
or