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

RadGrid Hierarchy detail javascript on click

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eli
Top achievements
Rank 2
Eli asked on 02 Apr 2019, 10:12 AM

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.

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 04 Apr 2019, 08:51 PM
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.
Tags
Grid
Asked by
Eli
Top achievements
Rank 2
Answers by
Attila Antal
Telerik team
Share this question
or