Comments (3)
What kind of type is your ID? Is it numeric
? If yes, you should tag the affected column with data-converter="numeric"
(see here).
from jquery-bootgrid.
The key point of this question is how to uniquely identify a row, about id of a row, and can be access by code freely.
For example, There is a table like this:
Name Age Operation
Jim 20 Edit | Delete
Tom 20 Edit | Delete
Jim 21 Edit | Delete
The data structure is like this:
var persons = [
{ personId: 1, name: 'Jim', Age: 20 },
{ personId: 2, name: 'Tom', Age: 20 },
{ personId: 3, name: 'Jim', Age: 21 }
];
I want to remove a row use the remove() method, I don't want to show checkbox for users to select any row, but have a column "Operation" that can edit or delete a row. Under these conditions, I only have to pass a rowId argumnet to remove() method to remove a row. But I don't know the id of a row. Maybe I can add a column named "personId" to identify each rows, but personId is not suitable for presentation, so I don't want to show this column.
I have a idea but not very sure for my poor javascript skills. That is, if there is a way to config the identifier option of each rows not by the column setting "data-identifier", this issue can be solved. Or, the identifier column can be hide or removed.
Hoping for your solutions!
from jquery-bootgrid.
Take a look on the Command Buttons Example. There you will find your answer.
from jquery-bootgrid.
Related Issues (20)
- Get all rows (ajax: true)
- Wrong page calculation for linkes "next" and "prev" pages HOT 1
- How to use with local language?
- Any solution for natural sorting?
- Problems deleting in bootgrid / Problemas al eliminar en bootgrid
- Bootgrid and .Net Core Ajax Posting not working ...
- 关于初始化的问题
- Filtering between dates
- How to customize row background based on a field value? HOT 1
- Any plan to update? HOT 2
- Bootstrap 4 HOT 1
- thead fixed and tbody scrollable
- Jquery bootgrid icon is not displaying in web app HOT 1
- how to load static columns and data to jQuery-bootgrid HOT 1
- how to delete row in Jquery boot grid
- Jquery Bootgrid Header Checkbox(Hide/Show) Table columns Customize and place in userdefined Dropdown?
- individual Column Search on top of each column in bootgrid?
- How to use styling in bootgrid? HOT 1
- Passing json variable to bootgrid table
- Tooltip in cell
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 jquery-bootgrid.