RadGrid Hierarchy detail javascript on click

2 posts, 0 answers
  1. Eli
    Eli avatar
    10 posts
    Member since:
    Feb 2019

    Posted 02 Apr 2019 Link to this post

    Im having a small issue.

     

    I have the radgrid using an expandable detail view associated. i have the functionality to bring up a document when clicked on the master row, but need to have only a javascript function fire when i click on the expanded detail row. currently whenever i click on a detail row it fires the main c# function i use to get my document. and i have tried adding a javascript call using the scriptmanager.RegisterClientScriptBlock c# to call my js function. but i need it to be done outside of the postback as i want to use the detail grid to pass a variable to javascript function.

  2. Attila Antal
    Admin
    Attila Antal avatar
    609 posts

    Posted 04 Apr 2019 Link to this post

    Hi Elisha,

    We have a similar article that I would recommend checking out: It is a code-library sample that was created for Hierarchical Cell selection: Select cells in RadGrid with Hierarchy. The sample does postbacks when a cell is clicked, but you could change that to fit your requirements.

    Please let us know if you have any questions.

    Kind regards,
    Attila Antal
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top