-
Notifications
You must be signed in to change notification settings - Fork 270
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
How to send my own product id for update records #195
Comments
Use the method getRowId(index) available on editablegrid |
Hi, I do not know how can I Thanks for your answer, I added this |
This is the link |
Would you please help me? |
in your method the variable rowIndex represent what you have to use to get the id so, write this:
|
Thanks a lot but this will post the row id that starts from 1, not my product id in my product table, so i can not update product table, I want to post product id from each product as a row
` as you see the id is 1 but the ID of that product is 52, I should send 52 as id not row index or row id that is 1. thanks a lot for your help |
I see that from your php method you return a json like this {
"metadata" : [...],
"paginator" : [...],
"data" : [
{
id : null,
values : [52, ...]
},
{
id : null,
values : [53, ...]
}, ...
]
} You have to set the id in the "id" property of the object in the array too like this: {
"data" : [
{
id : 52,
values : [52, ...]
},
{
id : 53,
values : [53, ...]
}, ...
} |
Thanks Thanks a lot,
How can I do this? I do not understand exactly that where i should make changes, which file? |
That problem solved by your kindly help, but now it seems that responsive or mobile friendly does not work |
id: editableGrid.getValueAt(rowIndex,0) you can select column index for value. |
Hi
I want to thanks for sharing this script with us, I used this editable table for my products, I want to update price of each product, but this program will send rowIndex as the product id, how can i send product_id instead of rowIndex?
Thanks in advance
The text was updated successfully, but these errors were encountered: