jQWidgets Forums

jQuery UI Widgets Forums TreeGrid Form submit treegrid data

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  eric379990 9 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Form submit treegrid data #77046

    eric379990
    Participant

    Hello, I am now having a treegrid in a form, I need to submit the data in the form to the server side, the data rows in treegrid can be editing by user, after data rows changing, is there any example to submit all the data rows in treegrid to server side once I click the submit button for the form?

    Thanks so much for help.
    BR/Eric

    Form submit treegrid data #77066

    Vladimir
    Participant

    Hello Eric,

    I think it really depends on what exactly and how you want to achieve.

    One thing you can do is use the dataAdapter’s capabilities to add/edit/update information in your tree grid (similar to normal grid CRUD), here is a link to the document page.

    If you really insist on submitting it as formData, since this isn’t really a form, you can bind to the form’s submit event and override with the data you need. Here are two topics that might be helpful to you. Topic1 and topic2.
    You could also just use the submit event for a trigger on when to send a manual update with the data through an unrelated ajax request.

    You can use the treeGrid’s getRows method to extract the information you need and append it to the request.

    Best Regards,
    Vladimir

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

    Form submit treegrid data #77099

    eric379990
    Participant

    Thanks Vladimir:)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.