Hi. I want to get data from a grid current row (right click mouse event) and send them to the appropriate controls of the dialog window. How to create popup menu and actions, I already know. I do not know how to populate dialog window controls from the current row data. Please, help me in the following task. |
Hi Dmitry, As an addition to Michiel's answer, before displaying your dialog, you should set the right clicked row of your grid component as the current row of your datasource using
Kind Regards, Ibrahim |
Hi Dmitry, Different approach can be to not create 3 different datasources, but create one datasource, one grid and one dialog and set the where clause of the datasource dynamically using If you can use this approuch depends a bit on your usecase though. This is the best approach, I think. Thanks.
(17 Aug '12, 04:01)
DPushkashu
|
Hi, This is how you do it:
Create a dialog window and a panel with the necessary controls. When creating the controls, just link them to the same datasource as the grid, like for example:
Formspider will then automatically show the current row data of the defined datasource. best regards, Michiel Great, very simple ...
(17 Aug '12, 02:19)
DPushkashu
|
The same question but in other form. I have 3 queries (so I defined 3 data-sets), the result of queries are equal (column set is the same) but different where conditions. I define three different grid, and I want to edit the data using a single dialog box. What can I do in this case? I do not want to duplicate the same dialog box 3 times. |
Hi Dmitry, To achieve this, create 3 separate panels based on each of your data-set and create a single dialog box. In your dialog XML, enter a cell name value for the dialog cell which will contain your panel. In the following example, "cell_center" is used as the cell name;
Then, just before displaying your dialog box, place the appropriate panel in your dialog box using the
|