18
Views
1
Comments
[Data Grid Web] EventTrigger - Uncaught Positive number expected Error
Question
Forge component by OutSystems R&D
41
Published on 18 Nov 2020

Hi

Anybody had this error before?

I'm trying to use the EventTrigger, I'm binding it with the Grid.Id widget, but sometimes the grid is frozen with the "Loading" layer and on console log I can see this error:

It looks like the javascript that creates the trigger tries to bind the widget.id before it already rendered on the screen because, if you refresh the screen, sometimes it works, sometimes not.

Not the best way to solve this, but if I customize this EventTrigger action putting a setTimeout to call the triggerAdd, like this, It works well, but of course, just a temporary workaround:

    setTimeout(function(){
        GridOS.eventHandler.triggerAdd('" + GridWidgetId + "','" + EventId + "', '" + EventTrigger.RuntimeId + "', '" + JSONField + "');
    }, 2000);