tal icon indicating copy to clipboard operation
tal copied to clipboard

is there any way to dynamically add data into a gird ?

Open Arunprasanth opened this issue 6 years ago • 1 comments

I have a grid with 12 data (3 rows 4 columns) and I need to add few more items to the grid in some cases, I have tried to add the data using below code

 this.historyGrid._childWidgetOrder.push(null);
                   this.historyGrid.setWidgetAt(1,3, sampleWidget);

But when i dynamically add the items the output element of grid will not be null and it goes to the

if (this.outputElement && this._autoRenderChildren) {
                        var device = this.getCurrentApplication().getDevice();

                        if (!widget.outputElement) {
                            widget.render(device);
                        }

                        device.appendChildElement(this.outputElement, widget.outputElement);
                    }

render method of the particular widget instead of render method defined in the grid and the dom tree looks like below capture All the dynamically added items are directly placed into the dom, they are not coming under the next row.

is there any way to fix this issue ?

Arunprasanth avatar May 03 '18 06:05 Arunprasanth

To solve the above issue I have created my own custom grid , with vertical carousel and horizontal list.

Arunprasanth avatar May 15 '18 05:05 Arunprasanth

We have deprecated this project and there are no plans for active development going forward.

Please see the deprecation notice.

kukulaka avatar Jan 06 '23 11:01 kukulaka