Uncaught TypeError: No method named "setting"

Uncaught TypeError: No method named "setting"

andreibostanandreibostan Posts: 5Questions: 3Answers: 0

Did someone else have this error before?

Answers

  • andreibostanandreibostan Posts: 5Questions: 3Answers: 0

    I forgot to mention this happens in the datatable edit when I try to press new or edit a row in the datatable.

  • andreibostanandreibostan Posts: 5Questions: 3Answers: 0

    This is the code used:

    <script type="text/javascript">
        var editor;
        $(document).ready(function () {
            editor = new $.fn.dataTable.Editor({
                ajax: "/BulkEdit/IndexJson",
                table: "#bulkEdit"
            });
    
            $('#bulkEdit').DataTable({
                dom: "Bfrti",
                ajax: "/BulkEdit/IndexJson",
                select: true,
                columns: [
                 { data: 'Name' },
                 { data: 'Description' },
                 { data: 'Category' },
                 { data: 'StartingBid' },
                 { data: 'BidIncrement' }
                ],
                buttons: [
                    { extend: "create", editor: editor },
                    { extend: "edit", editor: editor },
                    { extend: "remove", editor: editor }
                ]
            });
        });
    </script>
    
  • kthorngrenkthorngren Posts: 20,322Questions: 26Answers: 4,773

    Start with defining the fields you want to edit with the fields. See this example.

    Kevin

  • osma1k90osma1k90 Posts: 3Questions: 1Answers: 0
    edited April 2021

    hi i'm struggling wiith the same issue , did you solve it?

  • osma1k90osma1k90 Posts: 3Questions: 1Answers: 0

    Maybe it will be useful maybe not.....
    but i found that including jquery and jquery-ui fix the problem.

    You just have to include :

    -javascript

    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.min.js" type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js" type="text/javascript"></script>
    

    -and css

    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" type="text/css" media="all" /> 
    

    Hope to save the day to other devs. Peace

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    @osma1k90 Thanks for reporting back,

    Colin

This discussion has been closed.