This question is locked. New answers and comments are not allowed.
Hi,
I am using Telerik MVC Grid with Ajax Binding. I want a functionality in which when i click on a Grid Column with hyperlink it should open a new Modal Popup window. I also want to pass Id of that column to that window. I tried with Popup window demo provided. I am getting the normal popup window but when i try to populate content of that window through Jquery get method it is giving me error. I have tried the following link also but it is not working for me.
http://www.telerik.com/community/forums/aspnet-mvc/grid/grid-custom-popup-model-window.aspx
Below is the code i am using:
In my column:
I am using Telerik MVC Grid with Ajax Binding. I want a functionality in which when i click on a Grid Column with hyperlink it should open a new Modal Popup window. I also want to pass Id of that column to that window. I tried with Popup window demo provided. I am getting the normal popup window but when i try to populate content of that window through Jquery get method it is giving me error. I have tried the following link also but it is not working for me.
http://www.telerik.com/community/forums/aspnet-mvc/grid/grid-custom-popup-model-window.aspx
Below is the code i am using:
In my column:
columns.Bound(o => o.Title) .Width(100) .Title("") .ClientTemplate(@"<a href='#' onclick='Details()' ><#= Title #></a>")
In jquery:function TaskDetails() { var url = '@Url.Action("Action", "Controller")';}$.get(url , function(data) {var modalwindow = $('#Window').data('tWindow'). modalwindow.content(data); modalwindow.center().open();
});
This is my modal window:
@{ Html.Telerik().Window() .Name("Window") .Title("Details") .Width(500) .Draggable(true) .Modal(true) .Visible(false) .Render();}
Please help.
thanks
Tarun