How to set the Foreign key filter value as default value for a new row?
If I have filtered my grid (see picture) and I click add new I want to have that filter value in my dropdownlist of the new row as the default value...
robert
1 Answer, 1 is accepted
0
Accepted
Silviya Stoyanova
Telerik team
answered on 06 Mar 2020, 12:41 PM
Hello, Robert,
Thank you for the provided screenshot.
Setting a default value for a field could be done within the dataBinding event handler of the Grid. You could check if the filter and add record actions are applied, as well as if the filtered column is the foreign key column. Then with the set() method of the observable set the filtered value.