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

Update Templated Column using ajax

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 15 Sep 2008, 06:27 PM
I'm wondering if anyone has an example of how to populate a dynamically created templated column using ajax.  I have a user control that contains a grid.  The last column in the grid is a templated column that contains a dropdown with several options.  Because the logic involved with determining which options to display varies by item and is someone time consuming, I'd like to have the grid returned quickly and then have an ajax update occur in this column that will populate afterwards.  I'm envisioning a spinning loading panel in each this column that will be displayed until the contents are available.  

Is there an example floating around about how best to do this? 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 17 Sep 2008, 08:53 AM
Hello Randy,

Unfortunately, it is not possible to ajaxify separate HTML table elements (rows, cells or columns) because this leads to unexpected client-side behavior. You can ajaxify only the whole table or in this case - the RadGrid control.

However, you can ajaxify controls inside RadGrid, for example all dropdowns in the template column. This can be done programmatically in the ItemCreated event handler. Here is an example demonstrating a similar scenario:

http://demos.telerik.com/aspnet/prometheus/Ajax/Examples/Manager/PartialAjaxification/DefaultCS.aspx


Best wishes,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Randy
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or