In your case - All the models should be available in a datatable and start looping through this datatable
First few steps should be to search based on the brand and reach on the above screen. Then do the same
For getting all brands - If it is fixed - you can create a data table with these values manually as a one time configuration