Bootbox with a datatable

Bootbox with a datatable

JohnEzlabJohnEzlab Posts: 17Questions: 4Answers: 0
edited February 2014 in General
In my development environment I am trying to create a bootbox.js that contains a datatable populated through js but am having trouble initialising the datatable and have had to resort to using setTimeout()

I have tried to create a basic version with DataTables but cannot get it up and running. This may be because I am not referencing bootbox.js correctly. If someone could provide some feedback then that would be fantastic.

http://live.datatables.net/gaw/1/

Replies

  • amaanramaanr Posts: 1Questions: 0Answers: 0
    I'm having a similar issue where I have values in each of the dataTables columns that contains a button. The first button works fine and opens up the modal, however preceding buttons have no action.

    [code]
    ...

    (@modalValue.ToString("N1")% incorrect)
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    > $("#bootbox-regular").on("click", function() {

    You are using a static event. Use a delegated one:

    [code]
    $(document).on("click", "#bootbox-regular", function() {
    [/code]

    Refer to the jQuery events documentation for further information.

    Allan
This discussion has been closed.