RadGrid NestedViewTemplate Hierarchy with Programmatic Binding and Accessing Controls

Thread is closed for posting
1 posts, 0 answers
  1. BC36940A-3DDA-4D74-9EDF-0CC5B44D1CAB
    BC36940A-3DDA-4D74-9EDF-0CC5B44D1CAB avatar
    11 posts
    Member since:
    Oct 2012

    Posted 01 Oct 2018 Link to this post


    Telerik Product and Version


    Supported Browsers and Platforms

    All browsers supported by Telerik UI for ASP .NET AJAX

    Programming language

    C#, JavaScript


    This sample demonstrates the proper way of programmatic binding of RadGrid hierarchy with NestedViewTemplate. The difference with standard NeedDataSource event handler binding is that the inner grid also requires the DataBinding event. This sample actually demonstrates a lot more to be fair, one of the main things being accessing controls which are residing inside the nested template. Here is a list of the demonstrated implementations:

    1. Grid - Hierarchy with Templates
    2. How to bind RadGrid properly on server-side
    3. Access Telerik Controls on Client-Side
    4. Server-side item.GetDataKeyValue() and Client-side item.getDataKeyValue()
    5. GetItem() method
    6. Registering script from server-side like in Opening RadWindow from the Server


Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.