Hi,
I was trying to create data grid, One column is Dropdownlist. I want to pass the dynamic datasource from the Model. where Model is List<object> . But the ForeignKey cloumn accepts only SelectList as second parameter. But I want to make this dynamic i.e model.
See Below)
Current Functionality :
columns.ForeignKey(s => s.FaceId, SelectList)
I need like columns.ForeignKey(s => s.FaceId, x => x.FacesList)
Please suggest me to achieve this functionality.
Thanks
Sunder
I was trying to create data grid, One column is Dropdownlist. I want to pass the dynamic datasource from the Model. where Model is List<object> . But the ForeignKey cloumn accepts only SelectList as second parameter. But I want to make this dynamic i.e model.
See Below)
Current Functionality :
columns.ForeignKey(s => s.FaceId, SelectList)
I need like columns.ForeignKey(s => s.FaceId, x => x.FacesList)
Please suggest me to achieve this functionality.
Thanks
Sunder