I have a datagrid which has id="myGrid"
in my application, from it I call a component. Now from the component I can call parentDocument.myGrid.selectedIndex = 0;
and it works fine.
But I want to make the component reusable, and I would like to pass the ID to the component each time, so myGrid
will change, how to properly send the ID to the component, and use it in the component?