Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

102
Views
Convert EJ Dialog to EJ2 Dialog

I have a dialog that I want to open from my Index.cshtml page. The dialog I want to show is in ViewRace.cshtml. I can open it with ejDialog but it's kind of clunky. For EJ2 is there a better way to open a modal dialog. This is my ej code and html

        function ViewRace(id) {

            $("#ViewModal").css({
                display: "block",
                visibility: "visible"
            });

            var url = $(location).attr('protocol') + "//" + $(location).attr('host') + "/CAdminDistrictRace/ViewRace/?Id=" + id;
            //alert(url);

            contentUrl = url;
            $("#ajaxDialog").ejDialog(
                {
                    contentUrl: contentUrl,
                    contentType: "ajax",
                    title: "View Race",
                    width: 1200,
                    height: 675,
                    showHeader: true,
                    content: ".cols-sample-area",
                    close: "onDialogClose"
                });
            $("#ajaxDialog").ejDialog("open");

            return false;

        }
<div class="content-container-fluid" id="ViewModal">
    <div class="row">
        <div class="cols-sample-area">
            @*<input class="e-btn" id="btnOpen" value="Click to open dialog" />*@
            <div class="control">
                <div id="ajaxDialog">
                </div>
            </div>
        </div>
    </div>
</div>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!