<c1-flex-grid> update model/post form (MVC Core 3)

Posted by: sebastian73 on 21 January 2020, 6:40 am EST

  • Posted 21 January 2020, 6:40 am EST

    Hi!!
    I'm working on a form with several inputs, combos and a <c1-flex-grid>.
    My problem it that when I post the form, the information in the <c1-flex-grid> is not posted to the controller through the model.
    I was looking in the documentation and I wasn't able to find and example using the model to update data.
    Should I implement remote data binding to send the added data in the flexGrid to the controller? or Is it posible to use the model for simplification?

    Can you provide a simple example for implementing posting data in this mixed type of forms?

    Thanks in advance.



  • Replied 22 January 2020, 12:27 am EST

    Hi Sebastian,

    We are working on this and will update you as soon as possible.

    Regards,
    Ashwin
  • Replied 22 January 2020, 3:02 am EST

    Thanks for your help! :))
  • Replied 22 January 2020, 4:16 pm EST

    Hi Sebastian,

    Sorry for the delayed response.

    You can use basic editing for this. Please refer to the documentation link below that shows how to update the data from the View side to Controller side on the go:

    https://www.grapecity.com/componentone/docs/mvc/online-mvc-core/FlexGridExcelStyleEditing.html

    This will automatically update the data on the Controller side as soon as the grid is edited.

    Let me know if you face any issues.

    ~regards
  • Replied 23 January 2020, 2:35 am EST

    Thanks for your response, but in the future, I think that Grapecity should consider that the control must have the ability to update de data in the model and be able to post the data with the rest of the form.

    regards.
  • Marked as Answer

    Replied 23 January 2020, 4:26 pm EST

    Hi Sebastian,

    Please refer to the sample attached that demonstrates your requirements.

    In this sample, I have created a FlexGrid inside a form which is bound to the Model and used a hidden input to send the data of the grid to the controller.

    ~regards

    GridInForm-Core.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels