Grid with ClientTemplate opening Window

3 posts, 0 answers
  1. Anton
    Anton avatar
    6 posts
    Member since:
    Nov 2014

    Posted 02 Feb 2015 Link to this post

    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. Anton
    Anton avatar
    6 posts
    Member since:
    Nov 2014

    Posted 03 Feb 2015 in reply to Anton Link to this post

    Anyone from Telerik?
  3. Alexander Popov
    Admin
    Alexander Popov avatar
    1444 posts

    Posted 04 Feb 2015 Link to this post

    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.

     
Back to Top