jonnyadaptabletools / adaptablegrid Goto Github PK
View Code? Open in Web Editor NEWRepo of the Adaptable Tools - Grid
Repo of the Adaptable Tools - Grid
So I think you need to allow a column to be Readonly. this can then be set by the dev at design time when they set up the grid. if its readonly then you cannot enter edit mode for the column.
And also the column object should have an IsReadOnly or IsEditable or some similar property to say if readonly has been set.
This is quite useful in lots of scenarios.
e.g. does AdaptableGrid.applyStyles need definition explicitly stated if never used by AB?
Implement methods for Cell/Row to see if cell has styling, remove and add (only if not there already).
It probably shouldn't but not the end of the world so long as we are aware its happening and can deal with it. but i cannot think of a situation in which you would want it.
perhaps we could add a getHeaderRow() method IF we need to get it but i don't think we do and in any case it shouldn't be returned in get visible rows.
Looks like as though its failing on a tostring() call when the column is not a string
We can easily add styles to Cells and Rows (though not sure why for cell is AddClass and for row is AddCSS).
But we cannot easily remove them.
Is it possible to add a method so we can easily remove a style by name.
Instead of having to use $(grid).keydown(function (e) { });
Not sure if we have concept of pre-edited value but worth doing this.
You will need to have some kind of keypress listener
Some way of giving us the currently focussed cell.
if we are editing a cell then getselectedcells is null.
I'm guessing its when the value is null - don't forget that sometimes a cell might be null or empty. Im assuming the error is when there is no value for the cell: this is the error:
This is hard - not sure how you will move focus to next cell but worth trying...
Also need a way of referencing a Column by its position
Be more clear if method needs/returns an Id or position
Not so urgent this as we can loop through all the rows and call getrowidbyrow but i guess if you can do it - and make it super quick by using JQuery - then it might be helpful...
definitely not urgent.
Not sure why but it takes a long time when you multi select
Add moment we have
getVisibleColumns
getHiddenColumns
getAllColumns
but for rows we just have hidden and visible. a get all would be helpful for scenarios where we need to loop for all rows and don't care if they are hidden or visible
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.