jQuery UI Widgets › Forums › Angular › BUG: widgetcolumn not match on scroll
Tagged: angular grid, createwidget, grid, initwidget, typescript grid
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 7 years, 1 month ago.
Hello, I am having an issue, I see this also happen in yout demo:
this example have isse on scroll: https://www.jqwidgets.com/angular/angular-grid/angular-grid-widgetcolumn.htm
picture doesn’t match with name column
how can be solve? thanks
Hello silvano.alda,
Thank you for this feedback. Please, try to implement the initwidget callback in the same column, next to the “createwidget”:
initwidget
initwidget: (row: number, column: any, value: any, htmlElement: HTMLElement): void => { const imgurl = '../images/' + value.toLowerCase() + '.png'; (<HTMLImageElement>htmlElement.children[1].children[0]).src = imgurl; htmlElement.children[1].children[1].innerHTML = value; }
Best Regards, Hristo Hristov
jQWidgets team http://www.jqwidgets.com
You must be logged in to reply to this topic.