How to get record from Grid by passing its primary key and without looping through th

Hi,

How to get record from Grid by passing its primary key and without looping through the entire records in the grid. This will save a some processing time on UI side.

What are you trying to accomplish? Is this in response to a user’s selection?

If I understood correctly your question, you use the “find” method.

for example, let’s say you have a listgrid with id “lg_test” and a datasource bound to it, with field “id” as primaryKey
then by doing:

lg_test.data.find('id', value)

will return the entire record.