It's okay!!!
this is the solution:
gridPanel2.on('rowclick', function(grid, rowIndex, e) {
var rec = gridPanel2.getStore().getAt(rowIndex);
var val= rec.get("IDENTIFIANT_SITE");
var records =
gridPanel1.store.find('IDENTIFIANT_SITE', val);
gridPanel1.getSelectionModel().selectRow(records);
});
Use the selectRow because the selectRecords don't work (Why?)
Thank you very much !!!!!!!
François Boussuges a écrit :
> This solution is interesting but I dont understand all in:
>
> var records = grid.store.find('ID_SITE', id);
> grid.getSelectionModel().selectRecords(records);
>
> 'ID_SITE' or id is a value?
> If i take this exemple; id_site=15 what is the correct synthax of the
> script?
>
>
> Pierre Giraud a écrit :
>>> Actually I can select the ID_SITE of my selected features but I don't
>>> know what do I do to select the rows with the same ID_SITE in my second
>>> gridpanel (gridpanel2.selectRows?).
>>>
>>
>> var records = grid.store.find('ID_SITE', id);
>> grid.getSelectionModel().selectRecords(records);
>>
>> Regards,
>> Pierre
>>
>>
>
>
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users