Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid with Panel inplace of header menu

    Hi,

    The ListGrid offers a column header menu, which is customizable as well . But is there any way to program it to drop a HTMLPane instead of a menu when the header menu button is clicked ? Can we control what kind of a widget/component is associated with the header menu button control , and can we change it to anything apart from a menu ?

    Please help.

    Thanks.

    #2
    Well sort of, overriding the header button will be your issue because it isn't directly accessible. You can however just turn off the header context menu and add a header click handler which can have whatever logic you want. If you want to associate it with the button itself you'll need JSNI no question.

    Comment


      #3
      Thanks for the reply .

      Is there any way to add a custom button in the header of a ListGrid ?

      Comment


        #4
        Well you can embed an html component within the 'title' for a listgrid field or header span. There isn't an easily accessible like getHeader() where you could then add your own smartgwt widgets to it. Though in JSNI you might have a chance to get at it.

        Comment

        Working...
        X