handsontable

Javascript function fails to return element

半腔热情 提交于 2019-12-17 06:18:12
问题 So I'm working with the Handsontable jQuery plugin for a project at the moment, and I've written some custom functions to work with it. The function I'm currently having trouble with is one I've written to return the currently selected cell(when the user has only selected one, not multiple, and yes that is checked for). Here is my code: function getCurrentCell(){ var selection = $('div.current'); var left = selection.offset().left; var right = left + selection.width(); var top = selection

handsontable formula returning #NEED_UPDATE

主宰稳场 提交于 2019-12-13 19:09:48
问题 I have a handsontable, for example: +---+------+-------+-------+ | | A | B | C | +---+------+-------+-------+ | 1 | 10 | 20 | 30 | +---+------+-------+-------+ | 2 | 5 |=0.5+A3|=0.5+B3| +---+------+-------+-------+ | 3 |=A1+A2|=B1+B2 |=C1+C2 | +---+------+-------+-------+ when the table is loaded, B2 and C2 has value of #NEED_UPDATE instead of calculation result of its formula. how to handle this issue? 回答1: Nevermind, I solved this. add afterRender callback: afterRender: function(){ this

Jquery Handsontable Sorting on specific columns

a 夏天 提交于 2019-12-13 18:04:33
问题 **Sorting Issue** I have a plugin for the handsontable.I am sorting on the column headers,sorting is working fine,but what i needs is the sorting on the specific columns. Is this possible in handsontable??.I am searching from the whole day. I have the following code: **Code Section Handsontable** var $container = $("#grid"); $container.handsontable({ data:myData, startRows:10, startCols: 22, colWidths: [50, 50, 50, 50, 50, 50, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 70, 80, 80, 80],

Handsontable Dynamically Set Settings

心不动则不痛 提交于 2019-12-13 15:44:10
问题 I have a very big handsontable. I have dropdown columns defined, but, the values for the sources are retrieved with AJAX. How can I set the "source" property of a "column" of type "dropdown" dynamically? Regards! 回答1: You can, and should, use: hotInstance.updateSettings({ columns: getNewColumns() }) Where getNewColumns() would return an array of columns with the data and new source (or make the AJAX call from in here). That should do it! 回答2: Thank you for the answer ZekeDroid. I was able to

Custom cell renderer action not triggered in handsontable

China☆狼群 提交于 2019-12-13 15:39:04
问题 My table html looks like: <hot-table settings="settings" row-headers="rowHeaders" min-spare-rows="minSpareRows" datarows="myData" columns="columns" > </hot-table> My options: $scope.columns = [ ... { data:'name', readOnly:true, renderer:$scope.myRenderer } ]; My renderer: $scope.myRenderer = function(hotInstance, td, row, col, prop, value, cellProperties) { var metaId = hotInstance.getDataAtRowProp(row, 'metaId'); var specificationCode = hotInstance.getDataAtRowProp(row, 'specificationCode');

Table filter not working with backspaces

青春壹個敷衍的年華 提交于 2019-12-13 15:10:16
问题 I'm working on reproducing a live filter box with handsontable based on the built in search functionality at http://docs.handsontable.com/0.15.0-beta6/demo-search-for-values.html. Right Now I've got a basic setup working at http://jsfiddle.net/uL3L4teL/4/ As explained in the docs, In this code if you enter a search string, you get the matching cells outputted to the console using the following function: Handsontable.Dom.addEvent(searchFiled, 'keyup', function (event) { var queryResult = hot

Formulas not working in nghandsontable

早过忘川 提交于 2019-12-13 08:50:55
问题 my code is look like this,still i am not able to calculate the sum value. Can any one help me to solve this.I want to add the values of a and b in C column. But I'm getting output as SUM(A1:B1). Can anyone tel me how to solve this?The same code works fine in when done using Jquery. <script src="handsontable.full.js" type="text/javascript"></script> <link href="handsontable.full.css" rel="stylesheet" type="text/css"> <script src="angular.js" type="text/javascript"></script> <script src=

fullpage.js + handsOnTable.js slow performance on scrolling

我与影子孤独终老i 提交于 2019-12-13 07:06:27
问题 I'm using fullpage.js to split the page into sections. One of the sections has a grid built with handsOnTable.js. It works perfectly, apart from the performance in IE (all versions up to 11). When you scroll to the section with the grid, the actual scrolling is very slow, not smooth and kind of jumping. The issue does not persist in other browsers. I assume that the scrolling is causing the grid to re-render or something like this and that affect the performance. Any help will be appreciated.

Handsontable related error cannot find modules numbro, moment, pikaday, ZeroClipboard

南笙酒味 提交于 2019-12-13 06:50:57
问题 I've added handsontable-pro , numbro , moment , pikaday and ZeroClipboard in my package.json dependencies, e.g.: "dependencies": { "numbro": "^1.9.0", "moment": "^2.14.1", ... } and imported these libraries in my angular1.5 app.ts file like this: import 'handsontable-pro'; import 'numbro'; import 'moment'; ... After running npm install , npm run build and also building and running my project, I'm getting the following error in the console of the developers tools of Chrome: Uncaught Error:

Double rendering of col and row headers using HandsOnTable

こ雲淡風輕ζ 提交于 2019-12-13 06:30:41
问题 I have a problem with both column and row headers being rendered what looks like twice! I'm using an app called Hype (link). Everything else works ok (seemingly) except for headers. I've reported the issue on Hype forums (here) where those who are familiar with the Hype product can download my test document. All help appreciated. 回答1: We need the actual fiddle with your Handsontable instance. This doesn't help us much. I can guess at the issue, it's the "clone" instance of the table which