FixedColumn is not initializing

FixedColumn is not initializing

dharmeshpatel82dharmeshpatel82 Posts: 15Questions: 2Answers: 0

I am using JQuery 2.1.0 and Datatable 1.9.4 and ColumnFilter 1.5.6 and FixedColumn 3.0.1 and TableTools 2.2.0

I am trying freeze first and last column using this
<code>
new $.fn.dataTable.FixedColumns(oTable1, {
leftColumns: 1,
rightColumns: 1
});
</code>

but it is not working : getting this error :
<code>
Line: 1244
Error: Object doesn't support this action
</code>

Except FixedColumn Everything is working, I have initilized Table tools same way using "new". TableTools is working.

I doubt about Script setting.
Here is my Script and Style settings :

<!--@Styles.Render("~/Content/css")-->
    
    <link href="@Url.Content("~/Content/redmond/demo_table_jui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/redmond/jquery-ui-1.10.4.custom.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/redmond/dataTables.fixedColumns.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/TableTools-2.2.0/css/dataTables.tableTools.css")" rel="stylesheet" type="text/css" />
    
    <link href="@Url.Content("~/Content/Site_Custom.css")" rel="stylesheet" type="text/css" />

    @if (false)
    {
        <script src="@Url.Content("~/Scripts/jquery-2.1.0-vsdoc.js")" type="text/javascript"></script>
    }

    <script src="@Url.Content("~/Scripts/jquery-2.1.0.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.10.4.min.js")" type="text/javascript"></script>

    <script type="text/javascript" src="@Url.Content("~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.columnFilter.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/DataTables-1.9.4/media/js/dataTables.fixedColumns.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/TableTools-2.2.0/js/dataTables.tableTools.js")"></script>
    <script src="@Url.Content("~/Scripts/json2.min.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Content/Script_Custom.js")" type="text/javascript"></script>
        
    @Scripts.Render("~/bundles/modernizr")

I might be missing something, Please let me know what I am doing wrong?
Thank you.

This discussion has been closed.