-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About sorting #21
Comments
What kind of type is your ID? Is it |
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 OperationJim 20 Edit | Delete The data structure is like this: var persons = [ 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! |
Take a look on the Command Buttons Example. There you will find your answer. |
If the contents of a column are images, it seems that this column can't be sorted, but, each image has a image id asociated it, and the image id is not suitable for diaplay, but suitable for sorting the image. Is there any method can solve this issue? Thanks for your great work!
The text was updated successfully, but these errors were encountered: