Skip to content

How to Access a Foreign Key Value During getColumns Execution in a Master-Detail Grid #7234

Closed Answered by L30P1N0
L30P1N0 asked this question in Help
Discussion options

You must be logged in to vote

I managed to resolve it this way, and I'm sharing it here for future reference.

In the constructor of the dialog that calls the grid, I used the grid's click method and executed my own method called cambiarColumnas (changeColumns). This executes in the order I need, as the Id is assigned a value.

This is the constructor of Dialog.ts:

``
private FlujoDeFondoSemanal: FlujoDeFondosSemanalGrid;

constructor() {
super();

this.FlujoDeFondoSemanal = new FlujoDeFondosSemanalGrid(this.byId("FlujoDeFondosSemanalGrid"));

this.tabs.on('tabsactivate', (e, i) => {
    this.arrange();
});

this.tabs.click((e, h) => {
    let key = e.target.innerText;
    console.log('KEY: ' + key);
    if (key === 'Deta…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by L30P1N0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant