This question is locked. New answers and comments are not allowed.
I have an EditorTemplate that is repeated on a page. This EditorTemplate creates a Telerik Window (see code below). How do I ensure that only one instance of the 'PostalLookupWindow` Window is created for a given page/request?
I have tried using ViewData and TempData to store temporary values indicating that the control has been created before but was unsuccessful. I cannot put the Window creation in the controls's parent as the EditorTemplate is re-used in multiple pages.
Thank you,
Philip Fourie
I have tried using ViewData and TempData to store temporary values indicating that the control has been created before but was unsuccessful. I cannot put the Window creation in the controls's parent as the EditorTemplate is re-used in multiple pages.
Html.Telerik().Window() .Name("PostalLookupWindow") .Title("Postal Code Selection") .Height(430) .Width(700) .Modal(true) .Draggable(true) .Scrollable(false) .LoadContentFrom(Url.Action("Index","PostalCode", new { area = "" }, Request.Url.Scheme)) .Visible(false).Render(); I am using:
- Telerik MVC extensions 2010.3.1318
- ASP.NET MVC 3.0
I am using 2010.3.1318
I am using 2010.3.1318
Thank you,
Philip Fourie