jQWidgets Forums

jQuery UI Widgets Forums Grid Adding a row, not updating in-grid DropDown

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 8 months ago.

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

  • gkushner
    Participant

    Hello, I need some direction on the following scenario.

    User clicks “Add Row”
    This code runs:

                                        $("#orderLineGrid").jqxGrid('addrow', null,{ 	
    grossWtUOM: defaultVals.weight,
    netWtUOM : defaultVals.weight,
    grossVolUOM : defaultVals.volume,
    netVolUOM : defaultVals.volume
    });

    This adds a row and puts default values in four columns.
    The columns are configured as jqxDropDownLists as below:

            columntype : 'dropdownlist',
    initeditor : function(row, cellvalue, editor) {
    editor.jqxDropDownList({
    source : _3GTMS.Data.getWeightUOMAdapter(),
    displayMember : "label",
    });
    },

    The add row looks great and the value is in the cell.
    But when the user tabs through the row to the cell, the drop down shows nothing selected. The “Please Choose:” is in the drop down.

    Please advise.

    Thank you!


    Peter Stoev
    Keymaster

    Hi gkushner,

    As you use custom data source for your dropDown, you will have to manually set the dropDown’s selectedIndex in the initeditor callback, too.

    Best Regards,
    Peter Stoev

    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.