React Grid within Modal, select multiple rows and save

1 Answer 93 Views
Form Grid Popup
Raj
Top achievements
Rank 1
Raj asked on 14 Sep 2023, 01:43 PM | edited on 14 Sep 2023, 01:45 PM

I am trying to implement the following and wondered if there is any documentation / examples for this: 

  1. On a page display a grid for "selected products". 
  2. When you click "add" you are shown a modal with another grid (data is products).
  3. This grid has a checkbox column (https://www.telerik.com/kendo-react-ui/components/grid/selection/)
  4. You can select one or more products and click save
  5. The "selected products" grid within the page updates to show the additional selected products.

I'm wondering if there are examples of a grid integrated within a form modal. i.e. the form isn't editing the original data that is shown on the page, instead it is loading available products but I need to know what is selected to show this within the page. There are 2 data sources - the products that have been selected and the available products. 

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 18 Sep 2023, 01:02 PM

Hi Raj,

The selected state of the rows is preserved in the "selectedState" variable in the example that you have shared. You can use that selected state to populate the main Grid (using the ID values of the selected items) and update the selectedState when the selection in the Grid in the Popup is changed.

If further assistance is needed, feel free to contact us again.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Form Grid Popup
Asked by
Raj
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or