This knowledge base explains how to select the records based on the primaryKey values.
To achieve this requirement, we have to use getCurrentViewData and selectRows methods of ejGrid.
In dropdown we have bind the primaryKey values as a dataSource and based on the dropdown value the records will be selected in Grid.
The following code example explains that how the records will be selected based on the primaryKey values.
1. Render the Grid as follows.
Using the index, we select the row element using selectRows method of ejGrid.
Figure: Based on dropdown value(PrimaryKey) the grid row has been selected.
This page will automatically be redirected to the sign-in page in 10 seconds.