javascript - bootstrap modal from button inside slickgrid -


i trying call modal within button inside slickgrid. have tried using.

$('#mymodal').modal('show'); 

clicking on button inside grid not display second modal. plan on having grid inside new modal. have looked @ perhaps using latest version of bootstrap because thought may causing issue has not made difference. here fiddle jsfiddle undefined function

here option: http://jsfiddle.net/sh1fcygt/1/

launch modal though data attributes in '.show-report' button.

   function reportformatter(row, cell, value, columndef, datacontext) {         return "<button class='show-report' data-toggle='modal' data-target='#mymodal'>show</button>";} 

comment modal show in subscribe event.

grid.onclick.subscribe(function(e,args) {  if ($(e.target).hasclass('show-report')) {          //$('#mymodal').modal('show'); 

Popular posts from this blog