jQWidgets Forums

jQuery UI Widgets Forums Grid Custom menu item to the grid drop down menu

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  mportugal 11 years, 11 months ago.

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

  • mportugal
    Member

    Hi,

    I just started playing with this and I would like to add a custom menu item/option to the menu that comes down when you press the corner of the header in a grid. You know, the same one with the sorting options. Can anyone help me find the part of the code where those options are selected. Other portions of the widget already offer the functionality that I am looking to add. I just want to personalize it a bit.

    Any help will be greatly appreciated.

    Thank you


    mportugal
    Member

    Also, just in case anyone else has already done this. I intend to add a show/hide this column button to that top menu.


    stephan
    Participant

    Hi,

    I have coded a solution for show/hide of columns, but not through the column menu. While adding a “hide” might conceivably be possible you will definitely not be able to use this for “show” because after “hide” the column is gone, including its header and header menu.

    This fiddle shows a simplyfied version of my solution, which adds a “Settings” button to the pager area of the table. Click on “Settings” to toggle column visibility.

    http://jsfiddle.net/_stephan_/Q92wz/2/

    (My full solution includes the fully operational search field and also extra buttons for “New” and “Delete” of grid columns)

    Regards,
    Stephan


    mportugal
    Member

    It is aright, I found a solution that lets me hide and show columns by combining the hide/show column checkboxes from the demo with a context menu and a button.

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

You must be logged in to reply to this topic.