[CLOSED] Command @ Grid Panel Title Area

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Command @ Grid Panel Title Area

    Hello,

    Is it possible to add a command where Grid Panel Title is shown?
    I am currently setting no title and adding a TopBar>Toolbar to the grid. Adding an ext:Label with Text = "Grid Title", and the toolbar commands go on. Is this the expected way how to do that? Please see the images below.

    my problem:
    Click image for larger version. 

Name:	actual.png 
Views:	38 
Size:	6.5 KB 
ID:	5714

    workaround:
    Click image for larger version. 

Name:	workaround.png 
Views:	37 
Size:	4.6 KB 
ID:	5715

    Thanks.
    Last edited by Daniil; Mar 04, 2013 at 12:36 PM. Reason: [CLOSED]
  2. #2
    Panel header element can contain Tools only thefore you can configure Tools for GridPanel
  3. #3
    Quote Originally Posted by Vladimir View Post
    Panel header element can contain Tools only thefore you can configure Tools for GridPanel
    You mean like close, collapse, min/max etc? So I understand that it is not possible to add a button with Reload image. Right?
    Can you provide/reference examples on what kind of tools can be configured? I could not find in examples explorer.

    On the other hand, does hiding the panel header and using TopBar/ToolBar as I posted have any drawbacks?

    Thanks.
  4. #4
    You can do it in javascript after header is rendered.

    http://www.sencha.com/forum/showthre...t.Panel-header
  5. #5
    Quote Originally Posted by jchau View Post
    You can do it in javascript after header is rendered.

    http://www.sencha.com/forum/showthre...t.Panel-header
    Thank you @jchau. I guess best way to move is hiding header and Setting the panel title in a Label field in the toolbar. Because most of the code besides in code-behind (additive javascript would make things more complex). I will be happy to hear that this approach is not a bad idea.

    Thanks again.
  6. #6
    Hello!

    You can can see all tools in the following example: https://examples2.ext.net/#/Getting_...nent_Overview/

    Click image for larger version. 

Name:	1.JPG 
Views:	35 
Size:	30.0 KB 
ID:	5719

Similar Threads

  1. Replies: 0
    Last Post: May 12, 2012, 11:24 AM
  2. Row Command event in grid panel
    By Dorababu in forum 1.x Help
    Replies: 0
    Last Post: Mar 08, 2012, 10:41 AM
  3. Replies: 5
    Last Post: Feb 14, 2011, 1:29 PM
  4. Replies: 0
    Last Post: Apr 06, 2010, 10:01 AM
  5. Problem with Delete Command and Grid Panel
    By jpmcm88 in forum 1.x Help
    Replies: 2
    Last Post: Jul 20, 2009, 1:02 PM

Posting Permissions