This question is locked. New answers and comments are not allowed.
So I'm running Telerik Q3 and MVC3. I have a window control set up in a view like so:
For some reason the onRefresh js function is getting called even when the window is initially loaded, which isn't what I want to happen. According to the documentation, the OnRefresh event should only be triggered after a refresh or ajaxRequest, neither of which get called when the view is first loaded.
This is a problem because in my js onRefresh function, the window gets opened. I don't want the window to open when the page first loads, hence why visible is set to false initially. Am I misunderstanding something? I thought only OnLoad gets triggered when the window is initialized.
@(Html.Telerik().Window() .Name("editWindow") .Title("Edit Window") .Draggable(false) .ClientEvents(events => { events.OnRefresh("onRefresh"); }) .Resizable(resizing => resizing.Enabled(false)) .Buttons(b => b.Close()) .Modal(true) .Width(300) .Height(300) .LoadContentFrom("LoadEditor", "File") .Visible(false))For some reason the onRefresh js function is getting called even when the window is initially loaded, which isn't what I want to happen. According to the documentation, the OnRefresh event should only be triggered after a refresh or ajaxRequest, neither of which get called when the view is first loaded.
This is a problem because in my js onRefresh function, the window gets opened. I don't want the window to open when the page first loads, hence why visible is set to false initially. Am I misunderstanding something? I thought only OnLoad gets triggered when the window is initialized.