jQWidgets Forums

jQuery UI Widgets Forums Lists ListBox Rendering widgets within ListBox items.

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Rendering widgets within ListBox items. #78404

    Gary
    Participant

    We would like to display visual widgets (such as sparklines) in the jqxListBox and other controls.

    In the jqxChart sparkline example using jqxGrid, I see that ‘renderer’ is used to set up a div for the chart widget and the ‘rendered’ event is used to attach the visual to the generated div.
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/index.htm?(arctic)#demos/jqxchart/javascript_chart_datatable_sparklines.htm

    I also see that ListBox has a ‘renderer’ function. Is there an equivalent event to ‘rendered’ for ListBox or another way to produce this behavior?
    I looked at using ‘bindingComplete’, but this did not appear to come in after the ‘renderer’ function calls, at least when using ‘addItem’.

    I can cover the initial drawing by generating the widgets after the contents are generated, but I ran into trouble when the selection was updated, causing the list item to be re-rendered and removing my previous contents.

    Any thoughts on ways to achieve this with the current functionality?
    Any thoughts on adding ‘rendering/rendered’ to the widgets that have ‘renderer’ parameters?

    Rendering widgets within ListBox items. #78442

    ivailo
    Participant

    Hi Gary,

    Unfortunately about jqxListBox there is no option to be rendered widgets as items.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.