MVC5 Classic
wijdialog Step 2 of 3: Initializing the Widget

In the previous step, you created the wijdialog widget and specified its content using markup. This step will take you through adding jQuery script to initialize the widget.

After the closing <div> tag, add the following script:

<script id="scriptInit" type="text/javascript">
    $(document).ready(function () {
        // debugger
        // $(":wijmo-wijdialog").wijdialog("destroy").remove();
        $('#dialog').wijdialog({
            autoOpen: true,
            captionButtons: {
                refresh: { visible: false }
            }
        });
    });
    </script>

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback