handsontable

Custom renderer function not working in handsontable plugin

只谈情不闲聊 提交于 2019-12-11 08:57:23
问题 I have a function that handles some onChange events and works well. That function calls another one to check for the contents of the cell, and if there is something wrong it should change the cell color. function Check(x, y) { var content = $editorTableContainer.handsontable('getDataAtCell', y, x); var split = content.split(' '); $.each(split, function (key, value) { $.get('check.php?word=' + value, function (data) { //blank if no error otherwise it returns an array of suggestions (only need

Create onEdit callback in handsontable

老子叫甜甜 提交于 2019-12-11 08:31:59
问题 I'm using handsontable library and I got quite amazed when I found out there isn't an onEdit callback. I tried to create it by using the script provided by one user in that same issue but it seems its for an old version and it doesn't work anymore. I tried to figure out how to add a hook, but the documentation on it is quite poor from handsontable. Does anybody know how to create such a callback for handsontable? 回答1: Capturing only double clicks is not enough, since a user may further enter

HandsonTable in IE11 Does Not Render Data Columns Lined Up with Header Columns

◇◆丶佛笑我妖孽 提交于 2019-12-11 05:10:29
问题 I developed my web app using Handsontable in Chrome. It was fun and worked well. But now I am trying to get it to work in IE11 and it has significant rendering issues. The first, and the subject of this question is that the actual width of the grid does not match up with the headers. Here is an image: I can get it close to working by adding this style to my app: .wtHolder { width: 100% !important; } But they still don't line up correctly and it seems a bit of a hack to have to do an

Handsontable increase row header width

天大地大妈咪最大 提交于 2019-12-11 03:33:14
问题 I'm using custom row header names and there is one that happens to be a little longer than others. rowHeaders: ["Entree", "", "Plat", "", "Dessert", "", "Prix 2", "Prix 3"] My question is how do I increase the row header width ? I have thoroughly checked the documentation without luck. I've tried using colWidths: 200 in the options but that only works on everything except row header width. Options documentation here. 回答1: Please take a look at this fiddle You can play with the css of columns

Hiding columns of handsontable from javascript

空扰寡人 提交于 2019-12-11 02:41:36
问题 Is there any way i can hide HOT columns from javascript? The requirement is such that the column to hide will come as a parameter in javascript and based on that the respective column will show hide accordingly. The HOT has rowHeaders and colHeaders and the data with 20 columns. Please advise. 回答1: OUTDATED SOLUTION Ok I founnd a possible solution. I tested it out on my own system but it's actually quite simple. You should be using a customRenderer in your columns option. Read up about this

rhandsontable change background of specific row

被刻印的时光 ゝ 提交于 2019-12-10 15:17:05
问题 I'm using rhandsontable in R shiny and I would like to change the color of the row with "Sum" in the first column. Since the number of rows is not fixed, selecting the "Sum" row based in its row number does not work. I have tried the attached code, which unfortunately does not work. Many thank for your help ! library(shiny) library(rhandsontable) runApp(list(server= shinyServer(function(input, output, session) { CF_amt <- as.data.frame(matrix(0.0, nrow=5, ncol=10)); CF_type <- data.frame

Access handsontable methods/properties using nghandsontable

为君一笑 提交于 2019-12-10 14:15:21
问题 I'm using ngHandsontable Angular directive for Handsontable. I managed to show the data successfully, but I'm struggling with getting access to the modified rows so I can send the data to the DB. I tried binding the afterChange callback, but the index seems to be off after column sorting. (shows the index of the row shown on the table, not in the dataSource) I wonder what's the best practice to save ngHandsontable data or what I should do to access the API like getData method or columnSorting

Retrieving a hidden header inside a sorted handsontable instance

假如想象 提交于 2019-12-10 02:14:13
问题 When using Handsontable, it seems hard to retrieve the header of a row from a contextual menu. Consider the following data source: var data = function () { return [["1212", "roman", "i", "ii", "iii"], ["3121", "numeric", 1, 2 ,3], ["4126", "alpha", 'a', 'b', 'c']]; }; It is possible to create a Handsontable instance that displays all of the data but the first two "columns", and that has a contextual menu as following: // Settings to display all columns but the first two var dataCols = [] for

Customize Handsontable Scroll Bar Design

橙三吉。 提交于 2019-12-10 00:20:14
问题 I was wondering if there is anyway to customize the design of the Handsontable scroll bars that will work on all browsers. I managed to customise the design for Chrome and Safari using the ::webkit-scrollbar pseudo element as follows: <div id="hot-container-1"> <div id="hot-1"></div> </div> ::-webkit-scrollbar { width: 10px; height: 10px; } #hot-1 ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.0); } #hot-1:hover ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.5); } But when I

Handsontable Grid - loading and saving data from aspx web page

99封情书 提交于 2019-12-08 10:58:17
问题 Is it possible to load and save data to/from a grid using c# code in the back from an aspx page, or does one have to use a web service (or PHP)? I have tried and failed using JSON.Net to map a very simple structure to code a backend structure Is it possible to use JQuery (an ajax GET I presume) to make a call to a method in the backend code file (.aspx.cs)? I have tried using code from various posts on this forum, but there is little information on the backend code (c#), and all seem to refer