Edit window pop up using in table form controls

Edit window pop up using in table form controls

Khalid TeliKhalid Teli Posts: 251Questions: 71Answers: 0

Why is it when I click on th edit using the code belwo, the EDIT window pops up as expected

      {
                            data: null,
                            className: "center",
                            defaultContent: '<a href="" class="editor1_edit">Edit</a>'
                        }

However, I use the same here and window still pops up but with no information inside? Just a blank window pops up

   { data: "execution" ,
              render: function ( data, type, row ) {
                        return '<a href="" class="editor1_edit">'+data+'</a>';     
                  }
        }

Am I missing something here?

Answers

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    Am I missing something here?

    Guessing this isn't with the Datatable's Editor but with your own custom code and event handler. You can start by posting the event handler code. Better is a link to your page or a test case replicating the issue so we can see what you have.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • Khalid TeliKhalid Teli Posts: 251Questions: 71Answers: 0

    @kthorngren
    thankyou.
    I have sorted it out now.
    Apparently, I was using same form template which was causing the error. As, soon as I removed one, it worked fine

This discussion has been closed.