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

Update Button in UserControl

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 04 Mar 2011, 01:12 AM
Hello,

I am using a Usercontrol as my edit form for my radgrid and cannot seem to get its Update button to function properly.

The grid is ajaxified with a radajaxmanager to update itself and has the OnUpdateCommand set to the name of my code-behind function that handles the grid's .UpdateCommand event.

The input button that I put in my usercontrol is shown below.

<asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" />

When clicked, it causes the Ajax loading panel to appear briefly but does not change anything (data or the edit form).  It does not close the edit form the way the Cancel button does, either.

Any idea what I might be missing here?

Mike

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 08 Mar 2011, 04:20 PM
Hi Mike,

 
Take a look at the following online example:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

Do notice the binding expressions for the controls in the edit form and how the update/insert operations are handled in code-behind.

Hope it helps.

All the best,
Tsvetoslav
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or