General Interface is an open source project hosted by the Dojo Foundation

make first row of grid auto selected.

make first row of grid auto selected.

Postby sumit1286 » Mon Aug 13, 2012 5:24 am

Hi All.

Can you please help me to make first row of grid auto selected.

We are having requirement where we want to make first row of grid auto selected by default and perform some action on that selection (i.e. making one
control enabled, making one component as visible).

Thanks,
Sumit
sumit1286
1-Star
1-Star
 
Posts: 18
Joined: Mon Mar 28, 2011 10:00 pm

Re: make first row of grid auto selected.

Postby mongonv » Mon Aug 13, 2012 8:48 am

You can dynamically set the selected record(s) by using setValue() on the matrix and passing the jsxid values of the record(s) you want selected. If you look in the API documentation it covers it briefly.

You can probably do that during the onAfterDesearialize of the form you are loading.

So you would set the matrix value, then call your routine for setting up the other components you need to handle once the matrix value is set.

Hope that helps,
Ed
User avatar
mongonv (Ed)
5-Stars
5-Stars
 
Posts: 596
Joined: Tue Jul 28, 2009 9:24 am
Location: Reno


Return to GI Developers

Who is online

Users browsing this forum: No registered users and 1 guest