jQWidgets Forums

jQuery UI Widgets Forums Grid Edit Grid

This topic contains 24 replies, has 2 voices, and was last updated by  Martin 6 years, 4 months ago.

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Edit Grid Posts
  • Edit Grid #103199

    dzimen
    Participant

    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?

    Edit Grid #103205

    Martin
    Participant

    Hello dzimen,

    Could you clarify what do you mean by “open a new site”?
    Do you want to open another browser tab?

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    Edit Grid #103206

    dzimen
    Participant

    Yes another browser tab

    Edit Grid #103228

    Martin
    Participant

    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,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    Edit Grid #103230

    dzimen
    Participant

    So, How I can create edit site with ID row? I created <a/> but i dont know what the href put?

    Edit Grid #103240

    Martin
    Participant

    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,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    Edit Grid #103242

    dzimen
    Participant

    I understand everything, but this particular url must have in me the ID of this row to be able to edit the correct row.

    Edit Grid #103254

    Martin
    Participant

    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,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    Edit Grid #103256

    dzimen
    Participant

    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.

    Edit Grid #103273

    Martin
    Participant

    Hello dzimen,

    Yes, you can use the getrowid method of the grid. If you are creating the link cells with createwidget,
    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,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 10 posts - 16 through 25 (of 25 total)

You must be logged in to reply to this topic.