KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Feature Request: add 'id' attribute to krwidget tag #3293

Open Roger Mangraviti opened this topic on on May 20 - 4 comments

Roger Mangraviti commented on May 20

Hi Team,

Not sure the best way to make a feature request and I dont believe this is possible atm.

Can we please request to add an 'id' attribute to the krwidget tag when using the create function.

Thanks, Roger.

KoolReport commented on May 20

Hi Roger,

If you need to access the krwidget at client-side, there are two ways:

First way, you can access via widget-name attribute:

$krwidgetElement = $(document).find("[widget-name='nameOfWidget']"); 

or second way

$krwidgetElement = $("#nameOfWidget").parent();

Let me know if you need further information.

Roger Mangraviti commented on May 20

Yes I know how to using the css selectors and find the parent. Was hoping for a more direct solution of naming the parent, useful for direct css and widget management.

KoolReport commented on May 20

I see, well the krwidget tag is not standard html tag and does not have any effect on appearance, it only does one thing for us is to easily manage the widget from koolreport.

Roger Mangraviti commented on May 20

yes I understand and by using an id tag preferable it is easier to control its appearance.

For example, the data table/grid with hidden columns flashes due to the table rendering and then hiding the hidden column, results in the table re-rendering.

So either I need to find a solution to the re-rendering of the data table or an easier way to hide and show the krwidget

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None