jQWidgets Forums

jQuery UI Widgets Forums Grid Dynamically create Dropdown List in Grid Cell

This topic contains 2 replies, has 2 voices, and was last updated by  rajpad 5 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • rajpad
    Participant

    Hi,
    I have a jqxgrid containing dynamic columns. I want to be able to insert a dropdown list in a specific cell (not the entire column) on cell select. Can someone help me figure this out?

    Thanks
    Rajpad


    Hristo
    Participant

    Hello Rajpad,

    There is no simple option to do that.
    You could create the column where you expected to have such jqxDropDownList and depends on the case to show it.
    Also, you should use columntype: "custom" option.
    With internal logic to determinate in which cell what editor to use.
    Please, take a look at this demo.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com


    rajpad
    Participant

    Hi Hristo,
    Thanks for your reply. Sorry for late response. I have been trying in vain in several ways to make it work for my environment. However, the below section did not work for me, as my columns are dynamic and not static as in the example. Can you please help me to resolve this?

    {
    text: ‘Boston’, columntype: ‘custom’, datafield: ‘Boston’, width: 150,
    createeditor: createGridEditor, initeditor: initGridEditor, geteditorvalue: gridEditorValue
    },
    {
    text: ‘Berlin’, columntype: ‘custom’, datafield: ‘Berlin’, width: 150,
    createeditor: createGridEditor, initeditor: initGridEditor, geteditorvalue: gridEditorValue
    },
    {
    text: ‘London’, columntype: ‘custom’, datafield: ‘London’,
    createeditor: createGridEditor, initeditor: initGridEditor, geteditorvalue: gridEditorValue
    }

    Thanks
    Rajpad

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

You must be logged in to reply to this topic.