jQuery UI Widgets Forums Dialogs and Notifications Window jqxwindow with partial view?

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  bulentgokdas 10 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • jqxwindow with partial view? #22547

    rafmoura
    Member

    Hi 😀

    I can create a jqxwindow calling a partial view instead of getting div?

    I need to display the details of the selected row in a grid, and it will pass the Primary key of the line for a new view, opening in jqxwindow. Is it possible?

    Thnx !!

    jqxwindow with partial view? #22548

    Peter Stoev
    Keymaster

    Hi,

    jqxWindow can be created only from a DIV tag. Inside that DIV tag is required to have 2 additional DIV tags – one for the window’s header and another for the window’s content.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    jqxwindow with partial view? #22549

    rafmoura
    Member

    Thank you Peter!

    jqxwindow with partial view? #49530

    bulentgokdas
    Participant

    Hi, this code is okey

    html:

     <input type="button" id="testbasla"  value="Başla" />
                   <div id="myPartialViewDiv"> </div>
                        <div id='jqxtestwindow'>
    	                    <div>Test Sayfası</div>
    	                    <div></div>
                        </div>
    

    script:
    `$(“#testbasla”).click(function () {

    $.ajax({
    type: “POST”,
    data: { paketid: secilenpaketObjid, dilsecim: secilendil, sinavsekli: secilensinavSekli },
    url: “Test/Start”,
    success:
    function (data) {
    //$(‘#myPartialViewDiv’).text = “”;
    $(‘#myPartialViewDiv’).html(data);
    $(“#jqxtestwindow”).jqxWindow(‘setContent’, $(‘#myPartialViewDiv’));
    $(“#jqxtestwindow”).jqxWindow(‘open’);
    }
    });

    
    
    controller:
      
    

    public PartialViewResult Start(long paketid,DilSecimEnum dilsecim, SinavSekliEnum sinavsekli)
    {
    var kelimeler = testrepository.GetTestKelimeleri(paketid);

    TestStart test = new TestStart();

    test.kullanicikelimeler = kelimeler;
    test.dilsecim = dilsecim;
    test.sinavsekli = sinavsekli;

    return PartialView(“_TestStart”, test);
    }`

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.