Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Popup Window Issues

$
0
0

That helped with the background.  Now I almost understand the close, but I just want to clarify it.

to create the var would I be using the name from the page calling, or creating a new one on the page.  This I think is where my confusion lies.  For instance when I call the popup window:

 

 

@(Html.Kendo().Window()
               .Name("Select")
               .Title("Select a Character")
               .Content("Loading information.....")
               .LoadContentFrom("Index", "Characters")
               .Modal(true)
               .HtmlAttributes(new { style="background:grey"})
               .Visible(false)
               .Width(500)
               .AutoFocus(true))
           <spanid="selE"class="btn btn-default">Edit Character</span>
           <script>
               $(document).ready(function () {
                   $("#selE")
                       .bind("click", function () {
                           $("#Select").data("kendoWindow").center().open();
                       });
               });
           </script>

 

The example uses:

<divid="dialog"></div>
<script>
$("#dialog").kendoWindow();
var dialog = $("#dialog").data("kendoWindow");
setTimeout(function() {
  dialog.close();
}, 1000);
</script>
Which I understand it is using the dialog name of the window, as mine would be select.  But I use selE as the div tag for the button that call the window.  Then inside the window on the content page I have the aref tag id as SelChar which references the select window to change the top page.  Of course I might have answered my own question here.  

 

 


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>