lcmorley Posted March 31, 2010 Share Posted March 31, 2010 Hi,I am looking for an Editable Grid Control which can be used within an HTML page.I have seen ActiveWidgets which appears to be great for what I want, only it requires licensing.Do people out there tend to use this, or is there an opensource alternative.Thanks. Link to comment Share on other sites More sharing options...
thescientist Posted March 31, 2010 Share Posted March 31, 2010 :)do you have an example of what you're talking about? Link to comment Share on other sites More sharing options...
zeeshan_2011 Posted April 14, 2010 Share Posted April 14, 2010 no cannot believe this example. Link to comment Share on other sites More sharing options...
jeffman Posted April 14, 2010 Share Posted April 14, 2010 I have very successfully created grids using only text inputs. Say your grid is 10 X 10, and we index them from 0. All elements and displayed as block elements, and all are floated left. That puts them on the same horizontal. Elements 10, 20, 30 and so on also have a clear:both property. That begins each new row.You'll want to intercept keydown events for each input. Be sure to trap up, down, and return keys for navigation in the grid (that is, changing focus from one element to another element). This only works if the inputs have sensibly organized id's, like "a00:00" and so on. This facilitates incrementing and decrementing.You'll need to add tab indexes also, because you cannot intercept tab keys, but you do want correct tab behavior.Adding/deleting rows or columns is also facilitated by the id pattern I mentioned. It takes a little math, but can certainly be done. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.