Comments (10)
hm... been a while since I did this demo.
In the linked example, where the checkboxes are created automatically, each checkbox has an id like selectRow-1
, selectRow-2
, ... so you could extract the row number(s) from the checked checkboxes. This would give you the rows.
To get a cell value in a specific row, you could check for the target cells' headers
attribute, which is used to toggle columns and contains the id of the column (= in column 1, header cell id = co-1
, all cells in this column have headers=co-1
)
id=co-0 id=co-1 id=co-2
selectRow-1 headers=co-1 headers=co-2
selectRow-2 headers=co-1 headers=co-2
selectRow-3 headers=co-1 headers=co-2
selectRow-4 headers=co-1 headers=co-2
For example:
Say you know the row and need the 5th cell in this row, which contains a value for "price". If this column is named "price" you need to loop through all column header cells and check if the column text() is "price". This will give you the column header cell. Then select the id
of this header cell (will be co-5
, as it's the 5th column). Then find the cell in your selected row whose headers
attribute equals co-5
(header cell id). That should give you the correct cell. Then get it's value via text().
from tableview.
Are you planning to upgrade/change this demo? It is really interesting.
from tableview.
you mean update in terms of latest JQM?
from tableview.
If it will be possobile :) It is great plugin. I was also thinking about
datatables, but this looks much better on my mobile and desktop.
On Mon, Sep 24, 2012 at 2:03 PM, Sven Franck [email protected]:
you mean update in terms of latest JQM?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-8816516.
from tableview.
I happen to have made a tableview-datatables version, too :-)
Give me some time. Need to catch a deadline Thursday, afterwards I should be able to try and commit something here.
from tableview.
Great. Thanks a lot.
On Mon, Sep 24, 2012 at 3:00 PM, Sven Franck [email protected]:
I happen to have made a tableview-datatables version, too :-)
Give me some time. Need to catch a deadline Thursday, afterwards I should
be able to try and commit something here.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-8817906.
from tableview.
Do you have source code of using datatables in JQM?
On Mon, Sep 24, 2012 at 3:12 PM, Piotr Stapp [email protected] wrote:
Great. Thanks a lot.
On Mon, Sep 24, 2012 at 3:00 PM, Sven Franck [email protected]:
I happen to have made a tableview-datatables version, too :-)
Give me some time. Need to catch a deadline Thursday, afterwards I should
be able to try and commit something here.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-8817906.
from tableview.
You can see my answer on SO here
from tableview.
Unfortunattley it works strange during Ajax load in JQM
On Mon, Sep 24, 2012 at 5:23 PM, Sven Franck [email protected]:
You can see my answer on SO herehttp://stackoverflow.com/questions/10386821/mobile-data-entry-mobile-friendly-datagrid
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-8822554.
from tableview.
wait for the example. Works fine here, no matter if on first or subsequent pages both with static-updating and ajax-server-side updating.
from tableview.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tableview.