Dropdownlist in Blazor Grid

Hi Team,

I am creating the similar poc demo like given below URL

https://blazor.syncfusion.com/demos/datagrid/dialog-editing?theme=bootstrap4

For this demo there is no complete code. 

could please give me demo, where order details will come Order table and Country dropdown data will come Country table.



1 Reply 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team April 12, 2021 07:10 AM UTC

Hi chandradev, 
 
Greetings from Syncfusion support. 
 
Query 1: For this demo there is no complete code.  
 
We have validated your query and we have added the model class and datasource in Index1.razor file for the dialog editing demo sample link which you have provided to us. Also you can refer the below github link which contains the entire code of the demo samples. 
 
 
 
Query 2: could please give me demo, where order details will come Order table and Country dropdown data will come Country table. 
 
We suspect that you want to bind a particular column data from a different class.  So we suggest you to use the ForeignKeyColumn feature of the grid. Please find the below documentation. 
 
 
If you want to render the SfDropDown in a particular column then we suggest you to render the SfDropDownList in Column Template or Edit Template based on your scenario. We have attached a sample for your reference in Component.razor file.  
 
 
Documentation : 
 
Regards, 
Jeevakanth SP. 


Marked as answer
Loader.
Up arrow icon