Cannot read property 'oFeatures' of undefined datatables -
i getting error cannot read property 'ofeatures' of undefined datatables using bubble editing of datatable editor
<script type="text/javascript"> var editor; $(document).ready(function(){ // use global submit , return data rendering in examples editor = new $.fn.datatable.editor( { ajax: 'http://52.77.155.163/web/index.php?r=ivision/productprices/datatable', table: '#example', fields: [ { label: "id:", name: "id" }, ], formoptions: { inline: { onblur: 'submit' } } } ); $('#example').on( 'click', 'tbody td', function (e) { var index = $(this).index(); if ( index === 0 ) { editor.bubble( ); } }); var table=$('#example').datatable( { ajax: 'http://52.77.155.163/web/index.php?r=ivision/productprices/datatable', dom: "bfrtip", scrolly: 300, paging: false, bsort: false, columns: [ { data: "id" }, { data: "getcat(cat_id)" }, { data: "getproduct(p_id)" }, { data: "m_price" }, { data: "c_price" }, { data: "e_price" }, { data: null, defaultcontent: '<a href="#" class="remove">delete</a>', orderable: false }], buttons: [ { extend: "create", editor: editor }, { extend: "edit", editor: editor }, { extend: "remove", editor: editor } ], } ); }); </script>
i getting error in console, cannot read property 'ofeatures' of undefined . using bubble editing datatables.net editor.
Comments
Post a Comment