Jump to content
Sign in to follow this  
lcmorley

HTML Grid Controls

Recommended Posts

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.

Share this post


Link to post
Share on other sites

:)do you have an example of what you're talking about?

Share this post


Link to post
Share on other sites

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.

Edited by Deirdre's Dad

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...