Our blazing fast Grid component built with pure JavaScript


Post by web combatant »

https://www.loom.com/share/43b13065953642e983abbeac91bbecb3
Plz check the above video.
And let me know the reason.


Post by marcio »

Hey web combatant,

That's hard to say what could be causing that problem without some code to check the configuration of the Grid. Could you please provide one sample with that behavior?? With that, will be easier for us to assist you. Check our guidelines here viewtopic.php?f=1&t=772

Best regards,
Márcio


Post by web combatant »

  _touched = '';
  touched(param) {
    this._touched = param;
  }

  set ta_value_getter(param) {
    this.touched('');
    this.ta_value = param;
  }
  get ta_value_getter() {
    this.ta_value = this._touched == 'qty' ? this.lineScheduledValue * this.ta_qty / 100 : this.ta_value;
    return this.ta_value;
  }

  set ta_qty_getter(param) {
    this.touched('qty');
    this.ta_qty = param;
  }
  get ta_qty_getter() {
    this.ta_qty = this.ta_value ? 100 * this.ta_value / this.lineScheduledValue : 0;
    return this.ta_qty;
  }
              {
                type: 'number', field: 'ta_value_getter', text: 'Value', sum: 'sum',
                dependentFieldsOne: ['lineScheduledValue', 'ta_qty'],
                format: {
                  minimumFractionDigits: 2
                },
              },
              {
                type: 'number', field: 'ta_qty_getter', text: '% / Qty', sum: 'sum', summaryRenderer: ({ sum }) => `${sum}%`,
                dependentFieldsTwo: ['lineScheduledValue', 'ta_value'],
                format: {
                  minimumFractionDigits: 2
                },
              },

Post by web combatant »

I need to share the full code?


Post by web combatant »

What's the solution?


Post by marcio »

Hello,

A working example would be nice to debug, with a sample of code for testing. Could you provide one sample project with that code that you shared??

Best regards,
Márcio


Post Reply