jQWidgets Forums

jQuery UI Widgets Forums Grid How to access editor

This topic contains 4 replies, has 3 voices, and was last updated by  carlo 10 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • How to access editor #58484

    Mathias
    Participant

    Dear Peter,

    how can one change the content of an editor after creating the editor, e.g. from another event ?

    How to access editor #58485

    Peter Stoev
    Keymaster

    You can use the column’s “initeditor” callback function for that purpose.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    How to access editor #58510

    carlo
    Participant

    Dear Peter,

    what Mathias wanted, is to access the created editor of one column from events from another column. Example: you have two columns with editor comoboboxes. If the user selects an element in comobobox1, the source of combobox2 has to be changed.

    How to access editor #58512

    Peter Stoev
    Keymaster

    Hi carlo,

    Good, but that is not possible. You have 2 functions createeditor and initeditor and you can access the editor only in them.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    How to access editor #58519

    carlo
    Participant

    Dear Peter,

    we found a worarround. In createeditor of combobox2 we assign an ID to by editor.jqxDropDownList(….) created DIV

    var obj = editor.jqxDropDownList(….); // this is the DIV
    obj.attr(“id”, “IDCombobox2”);

    So we can access the combobox2 editor by $(‘#IDCombobox2’).jqxDropDownList(…) outside of createeditor.

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

You must be logged in to reply to this topic.