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

Loading User Control from Link Button in Template Column

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard Butler
Top achievements
Rank 1
Richard Butler asked on 14 Feb 2009, 09:11 PM
I have an aspx with a panel on it, into which I load different user controls, which all works fine with Ajax etc
One of the controls is a grid with a link button in which is to be an edit button and when a user clicks it I raise an event in the parent page to load the edit usercontrol into the panel instead of the grid.

The help and documentation suggest using the item created event of the grid to hook up the Ajaxsetting in my RadAjaxManager, this seems to half work in that when I click the edit button I get the ajax loading panel over the entire parent panel but when it finishes it display the grid still.   If I click the edit button again it immediately displays the edit user control but not rendering entirely as it should.

Its as though the item created event is too late to be adding AJax settings.   Anyone got any suggestions on how to do this as its driving me mad?

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 17 Feb 2009, 02:54 PM
Hello Richard,

It is not suggested practice to ajaxify only a button which is in any GridColumn. You should ajaxify the whole RadGrid or the parent that hold it. for example:  
AjaxSettings(RadGridInstance,RadGridInstance,LoadingPanelInstance)

Please give this suggestion a try.

Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Richard Butler
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or