Results 1 to 2 of 2

Thread: A SummarView like component that can render GXT Widget

  1. #1
    Ext User
    Join Date
    Nov 2010
    Vote Rating

    Default A SummarView like component that can render GXT Widget


    I would like to add a GroupSummaryView like component that could contains Widget instead of only render numbers.
    I digged into the code to find out a solution but the only thing I found yet is adding html code in the doGroupEnd() method of the GroupingView class.

    I want to put a button at the end of each group in my grid. So, I still need to find out how to attach listener to this html rendered button.

    It would be appreciated if someone has a more elegant solution for adding a GXT button (or any other GXT widget) directly instead.


    Last edited by renaudb; 17 Jan 2011 at 6:07 PM. Reason: correction

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Vote Rating

    Default Re: A SummarView like component that can render GXT Widget

    I'd also be interested if someone has a better approach for this.

    I needed to add two buttons in a row below each group and I already done this using the approach you describe below. I extended GroupingView and have overriden the doGroupEnd() method to:

    1. Create a new DIV element, and a table element with 2 columns
    2. Instantiate 2 new button objects and call button.render(leftColumn), otherButton.render(rightColumn)
    3. Return buttonDiv.getInnerHtml()

    Unfortunately this means most of the GXT Button behaviour is lost, including event handling code. I'm overriding GroupingView.onMouseDown() to handle the clicks. The issue I have is I'm now faced with having to fill in other missing behaviour e.g. onMouseOver behaviour.

    Does anyone know a better way to do this that makes use of the existing button functionality?


Similar Threads

  1. GXT widget Grid - how to render the widgets
    By xperetz in forum Community Discussion
    Replies: 5
    Last Post: 7 Oct 2010, 1:58 AM
  2. [FIXED] Bug in class com.extjs.gxt.ui.client.widget.Component
    By raidan2 in forum Ext GWT: Bugs (2.x)
    Replies: 2
    Last Post: 26 Nov 2009, 9:31 AM
  3. GXT's Image widget?
    By babyblue in forum Ext GWT: Discussion
    Replies: 7
    Last Post: 27 Jul 2009, 1:07 AM
  4. Replies: 4
    Last Post: 30 Jun 2009, 3:45 AM
  5. How to render any gxt component in html page
    By raj_begood in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 27 Jan 2009, 5:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts