GridPanel - 2 Views Possible?

  1. #1

    GridPanel - 2 Views Possible?

    I am trying to use two views on a GP - is this possible?
    
    
    
    <ext:GridView ID="GridView1" runat="server" EnableRowBody="true">
    
    
    <GetRowClass Handler="if(!record.newRecord){rowParams.body = comments(record.data.Comments); if (record.dirty) {return 'dirty-row';} else {return 'x-grid3-row-expanded';} ;} return 'x-grid3-row-collapsed';" />
    
    
    </ext:GridView>
    
    
    <ext:GroupingView 
    
    
    ID="GroupingView1"
    
    
    HideGroupedColumn="true"
    
    
    runat="server" 
    
    
    ForceFit="true"
    
    
    StartCollapsed="false"
    
    
    EnableRowBody="true">
    
    
    </ext:GroupingView>
  2. #2

    RE: GridPanel - 2 Views Possible?

    Interesting question. I'm 95% sure this is not possible, although you got me thinking about something so I to do some research to confirm 100%.

    Geoffrey McGill
    Founder
  3. #3

    RE: GridPanel - 2 Views Possible?

    That would be great - I really wanted to use grouping - with getrowclass thrown in if possible
  4. #4

    RE: GridPanel - 2 Views Possible?

    Hi,

    You can't use two views because the view define UI behaivor of grid. The GroupingView is child of GridView. So, GroupingView can do everything that GridView can.


    Just use only GroupingView. It supports GetRowClass functionality*




  5. #5

    RE: GridPanel - 2 Views Possible?

    Thanks! Works perfectly!

Similar Threads

  1. [CLOSED] [MVC] Cascading multi Partial views
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: May 10, 2012, 2:10 PM
  2. [CLOSED] [Razor] using partial views
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 25, 2012, 9:40 AM
  3. [CLOSED] Razor and Ext.Net base and partial views
    By boris in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 01, 2012, 3:45 PM
  4. Access Theme views
    By amitpareek in forum Open Discussions
    Replies: 10
    Last Post: Apr 12, 2010, 5:04 PM
  5. Replies: 0
    Last Post: Oct 15, 2009, 6:07 AM

Posting Permissions