jQWidgets Forums

jQuery UI Widgets Forums Grid Using the dropdown list as editor

This topic contains 1 reply, has 1 voice, and was last updated by  jmarais 13 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Using the dropdown list as editor #4909

    jmarais
    Participant

    I am able to use a list as editor but I want to load specific data into it. It uses the items currently in that specific column as entries into it but I want to use it, when it is an editor, in a similar way as a standalone list where you can use data from the database. Do you have to use the callbeginedit function for that? Or should you use something similar to:
    initeditor: function (row, cellvalue, editor) {
    editor.jqxNumberInput({ decimalDigits: 0 });

    Using the dropdown list as editor #4920

    jmarais
    Participant

    By using:
    initeditor: function (row, cellvalue, editor) {
    editor.jqxDropDownList({
    source: dataAdpter, // specified earlier
    selectedIndex: row // or rather deriving the correct value as discussed in the dropdown list group
    });

    I was able to get the correct values displayed.

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

You must be logged in to reply to this topic.