I want create the universal toolbar for different grids. For example, we have three grid on the screen. And over each grid is a toolbar - create and delete row. I want to set on the button "create" the same action - "addRow". I need to get the name of the grid and the datasource on the current panel, which is a button. How do I do this? |
Hi Ramil, Here is how i would do it:
3) The buttons in the toolbar can link to a generic action 'addRow'. Now to know in which datasource to create the row, you can get get the datasource name from the panel in two ways: For button pressed i use the getfocusedcomponent api to get the panel name like:
Using the client event, like Now you know the panel and the component you can simply use the Hope this helps, |