Combobox with toolbar, possible?

  • Is it possible to include a toolbar inside the combobox?

    I have an EditorGridPanel where the user can change project data. The projects can be of different types. Depending of what type is choosen, the user can select different sub-projects.

    I can do this in 2 ways I guess.
    1.
    I have 2 grid columns: project and subproject.
    If user changes the project column, the subproject column is loaded with a different store.

    2.
    When the user double-clicks the subproject field, the combobox shows a list with all subprojects AND a tbar where the user can change a head-project from a dropdown-menu or radiobuttons, this will load a different list for the combobox (different subprojects).

    I would like to use the 2:nd way. Is this possible and how?
    Is there any plugins out there? I have searched, but didn't find anything...

    Best regards
    Rickard Claeson


  • For the first solution you can use the getCellEditor method (see example (http://extjs.com/forum/showthread.php?p=141782#post141782)).

    For the second solution you will need to override the initList method of the combobox and insert a Toolbar at the top of the innerList (you can partially copy the code from the paging toolbar that is created in initList).







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Combobox with toolbar, possible? , Please add it free.

    7 January 2009 | cameltoepants.com | edit