Dependent list in field in Grid

Hello, I have a grid with several fields, one of them is a select list (doc_id) and the values of said list (datasource), must be updated according to the "Period" field.How can I update the datasource values every time the "Periodo" changes?The data corresponding to the "Periodo" is returned through ajax, but I don't know how to update the "doc_id" field through javascript



The "doc_id" field is declared as follows





To perform the ajax request, I use the following code. What is between the lines is where the action should be in order to update the grid datasource.




The request through POST, returns the corresponding data every time the "Periodo" changes



1 Reply

PS Pavithra Subramaniyam Syncfusion Team August 4, 2022 01:27 PM UTC

Hi Sir,


Thanks for contacting Syncfusion support.


Before providing a solution could you please share the below details that will be helpful for us to provide a better solution as early as possible?


  1. Do you want to update the dataSource when the “period” dropdownlist is changed? Even when the row is in edit state or not?
  2. Or do you want to set the “periodo” value to the “doc_id” input box when a row is editing?


Regards,

Pavithra S


Loader.
Up arrow icon