This is a migrated thread and some comments may be shown as answers.
Populating Html on Grid Row Click
2 Answers 10 Views
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 2
Roger asked on 30 Mar 2021, 07:49 PM

I would like to be able to populate some Html on a page after I click a row in a Kendo Grid.  I am able to get data from the clicked row but not sure how populate the Html once I get it.  I have a demo app that illustrates my problem at https://dojo.telerik.com/@rswetnam/iNATUDOz

As well as that, I was hoping to get assistance in:

  1. Making an additional call on the change event to get other data associated with the original record select - e.g. customer purchases  
  2. Finding documentation associated with https://demos.telerik.com/kendo-ui/service/Northwind.svc/  e.g. how to make calls to order-details etc.

Thank you.

Roger 

2 Answers, 1 is accepted

Sort by
0
Accepted
Richard
Top achievements
Rank 1
answered on 30 Mar 2021, 09:43 PM

You can just update the HTML via jQuery for example.  I have updated the version here:

https://dojo.telerik.com/@rbrynteson@brynteson.info/IkoPuJid

Clicking a row now updates the header HTML on the right.  As for the additional questions. Not sure what type of "calls" you are trying to make.  From the change() event you could make other jQuery/ajax calls to gather specific information about the row selected.  I just don't know the schema of the Northwinds example code.

Richard

0
Roger
Top achievements
Rank 2
answered on 31 Mar 2021, 11:20 PM
Great - thanks for this!
Tags
Grid
Asked by
Roger
Top achievements
Rank 2
Answers by
Richard
Top achievements
Rank 1
Roger
Top achievements
Rank 2
Share this question
or