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

Grid with ClientTemplate opening Window

2 Answers 208 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 02 Feb 2015, 05:21 PM
Hello,

I am trying to make a grid (done) having a client template (done) having a hyperlink (done). When I click on the hyperlink, it should open a window (from the suite of Telerik ASP.NET MVC controls). However, when I write the javascript function and the html within the client template, it does not function as intended.

I am not posting my code because I am interested in an example of how to do something like that. Would someone be able to post an example, please?

Just to re-coup:

1) There is a grid.
2) Within the grid, there is a column, specified by client template.
3) Within the client template, there is a link.
4) Clicking on that link should open a Telerik ASP.NET MVC window and load custom content from the server via AJAX into that window.
5) For every row of the grid, different content should be loaded into the window. The window could be re-used or specified separately for each row (preferably, reused, but any working example will do).

Thank you in advance for your help.

2 Answers, 1 is accepted

Sort by
0
Anton
Top achievements
Rank 1
answered on 03 Feb 2015, 09:44 PM
Anyone from Telerik?
0
Alexander Popov
Telerik team
answered on 04 Feb 2015, 11:47 AM
Hi Violetta,

I would suggest using a function that is defined outside the template. When called using a click event handler, get the data item corresponding to the row and use it to refresh the Window's content. Here is a JavaScript proof of concept example.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Anton
Top achievements
Rank 1
Answers by
Anton
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or