question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: that.fieldsColumnsIndex is undefined

See original GitHub issue

Hi I included the bootstrap-table-filter-control.js v2.1.2 and … .css and the settings inside the constructor. I’ve encountered this problem ; TypeError: that.fieldsColumnsIndex is undefined bootstrap-table-filter-control.js:196:21

columns:[{ "field": "name", "title": "name", "sortable": true, "filterControl": 'input', "editable" : { "type" : "text", "title" : "name", validate: function (value) { value = $.trim(value); if (!value) { return 'empty'; } var data = $table.bootstrapTable('getData'), index = $(this).parents('tr').data('index'); // console.log(data[index]); return ''; } }]

and also set option filterControl:true in the constructor.

and also set html <table id="table" data-url="./api/demo.json" data-toggle="table"> </table>

I did not know how to code in jsfiddle. So I could not handle your recommendation, and I hope that the same resolution will solve the problem. what’s the solution ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
fahamidevcommented, Dec 29, 2017

@jimgit I thank you for your guidance. I really appreciate you 👍 💯

@djhvscf But about the problem : Yes, this problem has been solved and now I have no error and the table works correctly. When I added <th> to the <table>. I was able to apply the settings and solve my problem. also I’ve updated all the plugins and used their latest releases .

Thanks for creating the table from its creators. 👍 This plugin is really perfect for the client side 🥇

1reaction
jimgitcommented, Dec 19, 2017

Is this what you are trying to do - jsFiddle added filter control ?:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError, variable is undefined - javascript
When "pattern" parameter is undefined, no matter where in which browser, it means that something is wrong with calling the function and you...
Read more >
Uncaught TypeError: Cannot read property of undefined
'Undefined' is the property of the global object. If you don't assign any value to a variable is of type 'undefined'. A code...
Read more >
Uncaught TypeError: undefined is not a function when ...
It seems any jQuery plugin I try to use results in this undefined error above? UPDATE. So I have been experimenting with a...
Read more >
Value is not an object: undefined) when using kinesis with ...
I have a realm function that's meant to send data to an aws kinesis data stream. Third party services have been deprecated in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found