[CLOSED] Gridpanel, error when using CheckboxSelectionModel and FN renderer

  1. #1

    [CLOSED] Gridpanel, error when using CheckboxSelectionModel and FN renderer


    Hi
    Im trying to use a gridpanel with CheckboxSelectionModel, one column in this grid had a FN renderern. That does not work, i get a javascript error. It works fine if I change Selection model to RowSelection.

    
    
    
    <ext:GridPanel
    runat="server" 
    ID="gpHistory" 
    AutoHeight="true"
    AutoWidth="true"
    Title="Booking history"
    Frame="false" 
    StoreID="Store1" Floating="true" Border="false" BodyBorder="true" >
    <ColumnModel ID="ColumnModel1" runat="server">
    <Columns>
    <ext:Column DataIndex="Id" Header="Version" Width="80" />
    
    <ext:Column ColumnID="Info" Header="Show" Width="50" Align="Center" Fixed="true" MenuDisabled="true" Resizable="false">
    <Renderer Fn="ShowInfo" /> 
    
    </ext:Column> 
    </Columns>
    </ColumnModel> 
    <SelectionModel>
    
    <ext:CheckboxSelectionModel></ext:CheckboxSelectionModel>
    
    </SelectionModel>
    <BottomBar>
    <ext:PagingToolBar ID="PagingToolBar1" runat="server" PageSize="10" StoreID="Store1" DisplayInfo="false" /></BottomBar>
    </ext:GridPanel>
    /Mikael
  2. #2

    RE: [CLOSED] Gridpanel, error when using CheckboxSelectionModel and FN renderer

    Hi Mikael,

    I ran several tests using the CheckboxSelectionModel and various Column Renderer configurations, but have been unable to reproduce any JavaScript error. 


    Would you be able to post a full .aspx sample that demonstrates how to reproduce the problem?


    Geoffrey McGill
    Founder & CEO
  3. #3

    RE: [CLOSED] Gridpanel, error when using CheckboxSelectionModel and FN renderer

    Hi
    Now I know what I did wrong, I forgot to set the DataIndex in the column


    <ext:Column DataIndex="Id" />

    /Mikael

Similar Threads

  1. Dynamic Gridpanel - Add Renderer - how to?
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Apr 02, 2012, 2:37 PM
  2. [CLOSED] [1.0] CheckboxselectionModel Renderer based on value
    By MP in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 19, 2011, 12:07 AM
  3. [CLOSED] CheckBoxSelectionModel error
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Mar 23, 2010, 10:48 AM
  4. Gridpanel Row Renderer
    By DasPhansom in forum 1.x Help
    Replies: 5
    Last Post: Jul 20, 2009, 6:49 AM
  5. GridPanel Renderer
    By JonG in forum 1.x Help
    Replies: 0
    Last Post: Jul 10, 2009, 5:28 AM

Posting Permissions