This question is locked. New answers and comments are not allowed.
Hi again everyone,
I recently have been working on a project that utilizes the Telerik Grid along with the Telerik Window in order to function as a basic modal pop-up editor / viewer. I will be first to say that I love both of these components and they are outshine their competitors.
The issue I have encountered is as follows : I have a single Window that I am reusing to populate with a single partial view which is based on the id of the item selected from the grid. Upon clicking on the username / item id in the grid, it will call a javascript function that performs a post to a div that is located within the window and it will display the partial view, complete with all of the information pertaining to the id that it was passed.
The Grid itself: (Html.JavascriptLink is a custom extension that basically passes parameters to a Javascript function)
The Window :
The Javascript function :
This works great, and just as intended ... in Mozilla. As I am able to open the Window / perform editing functions / etc. and Close the window with no issues, and then I could click on another id to populate the same instance of the window with different data, as intended. However, the issue that I am encountering deals with the Window in IE.
Upon first opening the window, it will populate the data inside without issue. However, after closing the window and attempting to reopen it, it opens and populates with all the correct data, but seems to add an additional margin to the top and left sides, pushing the content over. This eventually causes scroll-bars to appear, which makes someone a picky UI person like myself cringe.
I have created a sample solution to demonstrate this issue, and I have also included code examples of the actual implementation of the working project itself.
I look forward to any helpful reponses to resolve this issue and thank you greatly!
Rion Williams
I recently have been working on a project that utilizes the Telerik Grid along with the Telerik Window in order to function as a basic modal pop-up editor / viewer. I will be first to say that I love both of these components and they are outshine their competitors.
The issue I have encountered is as follows : I have a single Window that I am reusing to populate with a single partial view which is based on the id of the item selected from the grid. Upon clicking on the username / item id in the grid, it will call a javascript function that performs a post to a div that is located within the window and it will display the partial view, complete with all of the information pertaining to the id that it was passed.
The Grid itself: (Html.JavascriptLink is a custom extension that basically passes parameters to a Javascript function)
<%= Html.Telerik().Grid<UserAccount>() .Name("UserAccount") .Pageable() .Sortable() .Columns(columns => { columns.Bound(o => o.UserName).ClientTemplate(Html.JavascriptLink("<#=UserName#>", "EditUserAccount", "<#=UserName#>")).Title("Username"); }) .DataBinding(dataBinding => dataBinding .Ajax() .Select("_AjaxBinding", "AccountAdministration") ) %>The Window :
<% Html.Telerik().Window() .Name("Window") .Title("Edit User") .Visible(false) .Modal(true) .Content("<div id=\"WindowContent\" style=\"width: 500px; height: 400px; \"></div>") .Width(520) .Height(440) .Render(); %>The Javascript function :
function EditUserAccount(username) { var window = $("#Window").data("tWindow"); $.post("/AccountAdministration/EditUserAccount/", { userName: username }, function (data) { $("#WindowContent").html(data); window.center(); window.open(); }); }This works great, and just as intended ... in Mozilla. As I am able to open the Window / perform editing functions / etc. and Close the window with no issues, and then I could click on another id to populate the same instance of the window with different data, as intended. However, the issue that I am encountering deals with the Window in IE.
Upon first opening the window, it will populate the data inside without issue. However, after closing the window and attempting to reopen it, it opens and populates with all the correct data, but seems to add an additional margin to the top and left sides, pushing the content over. This eventually causes scroll-bars to appear, which makes someone a picky UI person like myself cringe.
I have created a sample solution to demonstrate this issue, and I have also included code examples of the actual implementation of the working project itself.
I look forward to any helpful reponses to resolve this issue and thank you greatly!
Rion Williams