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

RadGrid in HeaderTemplate- client side binding gives blank values

1 Answer 106 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Kiran
Top achievements
Rank 1
Kiran asked on 27 Jun 2016, 09:33 AM

hi,

I have a radpanelbar on our page, on one of the panels we have radgrid with client side databinding in HeaderTemplate of a panelitem. The grid has GridboundColumns. When data is bound, the grid shows empty values for all columns of all rows.However if I move the grid to content template of panelitem then there is no such issue.

 

What is causing this problem? Is there anyway we can resolve this issue?

 

Regards,

Kiran

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 30 Jun 2016, 08:13 AM
Hello Kiran,

We reproduced the issue with the Grid's binding you have experienced and the response I received from the developers with regard to this behavior is that client-side binding of complex controls such as the Grid is not supported in the PanelBar's HeaderTemplate. If such controls are nested in the HeaderTemplate other types of binding have to be used, for example binding to SqlDataSource. With regard to that limitation of HeaderTemplate, if your scenario requires the Grid to be bound client-side it is recommended to nest it in an ItemTemplate.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
PanelBar
Asked by
Kiran
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or