RadGrid in HeaderTemplate- client side binding gives blank values

2 posts, 1 answers
  1. Kiran
    Kiran avatar
    4 posts
    Member since:
    Sep 2011

    Posted 27 Jun Link to this post


    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?




  2. Answer
    Ivan Danchev
    Ivan Danchev avatar
    788 posts

    Posted 30 Jun Link to this post

    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.

    Ivan Danchev
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top