jQWidgets Forums

jQuery UI Widgets Forums ASP .NET MVC jqxGrid: Needing a button in createEverPresentRowWidget

This topic contains 1 reply, has 1 voice, and was last updated by  rdouglas 6 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • rdouglas
    Participant

    Can anyone help with how to create a button in createEverPresentRowWidget? The button should open a jqxWindow. I have this working outside of the ever present row but I can’t seem to get any further. The jqxWindow contains a text area that’ll give room for a lengthy comment.


    rdouglas
    Participant

    Solved this by putting the following into the createEverPresentRowWidget block:

    var buttonTag = $(“<input type=’button’ value=’Add’ style=’margin: 2px; id=’jqxButton’></input>”).appendTo(htmlElement);
    buttonTag.jqxButton({ width: 70, height: 25 }).on(‘click’, function () { //Add button props (EverPresentRow)
    var offset = $(“#jqxGridMisc1099”).offset();
    $(“#popupWindow”).jqxWindow({ position: { x: parseInt(offset.left) + 60, y: parseInt(offset.top) + 60 } });
    // get the clicked row’s data and initialize the input fields.
    var dataRecord = $(“.ToCopyTo”);
    $(“#Conclusion”).val(dataRecord.val());
    // show the popup window.
    $(“#popupWindow”).jqxWindow(‘open’);

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

You must be logged in to reply to this topic.