jQuery UI Widgets › Forums › DataTable › Edit data
Tagged: data, database update, edit, form edit data, grid, table
This topic contains 5 replies, has 2 voices, and was last updated by Martin 7 years, 2 months ago.
-
AuthorEdit data Posts
-
Hi, how to edit the data in the table so that the “Edit” button redirects to the external form. I would just like to have a separate form, i.e. just like the dialogue option pops up, I just want to click on edit to get a form that I created or that I can compose. Can you do something like this or are there only those options that are visible on the site?
Hello dzimen,
You can take a look at this Demo.
As you can see the edit dialog is fully customizable and you can compose it yourself.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/I know, but I need external personalize form for me. I want some fields block in form or in one field I have to download the current time
Hello dzimen,
I am not sure what is the issue with this, as you can see Here the edit dialog is just a jqxWindow and you can have whatever content you need in it.
However, you can also check this Example, where you bind to the ‘click’ event of the Edit button, and add you own logic for opening your external form and then when you are ready editing, you will call theupdateRowmethod of the DataTable to update it with the new data.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/Ok, I changed a DataTable to Grid, so How I can send to SQL database edited grid? How I can use a updateRow? Have you got a example issues? In updateRow function I must define a SQL Query? How?
Hello dzimen,
Firstly, if you are using a Grid the method is called
updaterow. It is a callback property of the source which is executed when you invoke
updaterowmethod of the jqxGrid:$("#grid").jqxGrid('updaterow', id, datarow);.
In this callback you should send a request to your server to update the data (ajax call).You can see the code of this Demo on the site on how
addrow,updaterowanddeleteroware used.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.