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

RadGrid Client-side binding with a custom control

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
xrimson
Top achievements
Rank 1
xrimson asked on 24 May 2012, 12:14 AM
Does anyone have any examples of doing client-side databinding on a RadGrid where one of the columns is a custom AJAX control?

I've been using a GridTemplateColumn for my custom control, but am unsure how to bind the data to the control at the client level.

Thanks,
Jason

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 28 May 2012, 12:55 PM
Hi Jason,

This depends on the control and whether it allows being bound, set up on the client side. In general, you should use the RowDataBound client event to access the control and set its properties with regard to the content of its parent row. This is so because when paging without a trip to the server, the control is not recreated, so you need to modify its properties manually.

Also, depending on your requirements, if the information that you want to display can be represented with HTML (and where needed javascript) only, you can consider using the ClientItemTemplate of the GridTemplateColumn which will be available in Q2 2012:
ClientItemTemplate

Regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
xrimson
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or