jQWidgets Forums

jQuery UI Widgets Forums Grid Celleditor events interception

Tagged: 

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Celleditor events interception #22634

    Hello,

    i have a column with an editor that visualize a dropdownlist. I need to catch the event of dropdownlist changing and not the changing of the editor.
    I thought that when i modify the dropdown a submission form is raised with the value of the dropdown editor set in the dropdown of the form.

    createeditor: function (row, column, editor) {
    editor.jqxDropDownList({source: source1, width: '150px', height: '30', selectedIndex: 0, theme: "metro"});
    editor.attr('id', 'dropdown');
    jQuery('#dropdown').on('change', function (event){
    jQuery('#newcate1').val(editor.val());
    jQuery('#firstsubmit').click();
    });
    },
    Celleditor events interception #22636

    Peter Stoev
    Keymaster

    Hi,

    You should not change the ID of the Editor. You may only set/get properties or call methods keeping in mind that “createeditor” overrides the built in behavior of the Editor and not all custom scenarios are supported. For binding to events, you may use the “editor” parameter.

    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.