jQuery UI Widgets › Forums › Grid › Edit Grid
Tagged: current datetime, datetime, edit, edit checkbox, edit pop-up, grid
This topic contains 24 replies, has 2 voices, and was last updated by Martin 7 years, 1 month ago.
-
AuthorEdit Grid Posts
-
Already done. But Can I do this:
“I want after click edit button open a new tab with a form. Currently I open a modal popup, but I need a open a new site to edit this row”How do this? Can you help?
Hello dzimen,
Could you clarify what do you mean by “open a new site”?
Do you want to open another browser tab?Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/Yes another browser tab
Hello dzimen,
In such case, you need to use an
<a/>element with ‘href’. It is quite different from the pop-up window logic.
You can pass the current row id as a query paremeter.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/So, How I can create edit site with ID row? I created <a/> but i dont know what the href put?
Hello dzimen,
The href should refer to the url or to the file where you will have your edit page.
This depends on your project.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/I understand everything, but this particular url must have in me the ID of this row to be able to edit the correct row.
Hello dzimen,
As mentioned above, you can use query parameters for passing the ID in the url.
I would suggest you to read the topics here and here.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/I do not ask how to create a link just how to get to this link line id … You have your methods like getId etc.
Hello dzimen,
Yes, you can use the
getrowidmethod of the grid. If you are creating the link cells withcreatewidget,
its first parameter is ‘row’ and you could use it like this:createwidget: function (row, column, value, htmlElement) { ... let id = $("#grid").jqxGrid('getrowid', row.boundindex); ... }Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.