jQWidgets Forums

jQuery UI Widgets Forums Grid Selector for widgets in Grid

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Selector for widgets in Grid #74157

    joelk
    Participant

    Many examples for working with widgets ID the element directly, e.g. ‘#jqxdropdownlist’, which makes sense if I create that element directly.

    It’s not clear to me, though, how I can select a dropdownlist (or other type widget) which is created for me within a grid as a result of a column specification, e.g.:
    $(“#mytable”).jqxGrid(
    {
    columns : [
    { text: ‘Data Type’,
    datafield: ‘dataType’,
    columntype: ‘dropdownlist’,
    }…
    ]…
    }

    1) What is the default selector given to such an element? Esp. including if I have multiple of the same type within a single grid?
    2) Is it possible to specify user-defined CSS ID’s and/or classes in the definition of columns containing widgets?

    Thanks

    Selector for widgets in Grid #74165

    Dimitar
    Participant

    Hello joelk,

    The editor widget (in this case – jqxDropDownList) is only accessible in the column’s createeditor, initeditor and geteditorvalue callback functions as the editor parameter – a jQuery object you can use directly to manipulate the widget. Please check out the demos Customized Editors, Custom Column Editor and Custom Row Editor to see these in action.

    Best Regards,
    Dimitar

    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.