Adding 2 Property to the 'SelectionModel' in a GridPanel throw an Exception

  1. #1

    Adding 2 Property to the 'SelectionModel' in a GridPanel throw an Exception

    Markup for the GridPanel:

                   <SelectionModel>
                        <ext:CheckboxSelectionModel runat="server" SingleSelect="false">
                            <CustomConfig>
                                <ext:ConfigItem Name="checkOnly" Value="true" Mode="Raw" />
                                <ext:ConfigItem Name="allowDeselect" Value="true" Mode="Raw" />
                            </CustomConfig>
                        </ext:CheckboxSelectionModel>
                        <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="false">
                            <AjaxEvents>
                                <RowSelect OnEvent="gpResults_Command" Method="POST" Type="Submit">
                                    <ExtraParams>
                                        <ext:Parameter Name="OrderId" Value="Ext.encode(#{gpResults}.getRowsValues({selectedOnly:true}))"
                                            Mode="Raw" />
                                    </ExtraParams>
                                </RowSelect>
                            </AjaxEvents>
                        </ext:RowSelectionModel>
                    </SelectionModel>
    Error message on the .aspx Page

    Only one items available 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: Coolite.Ext.Web.ExcessItemsException: Only one items available
  2. #2
    Hi,

    There must be single SelectionModel, it doesn't support multiple selection models.
  3. #3
    Does the v1.0 Supports this?
  4. #4
    No, it's also not supported in Ext.Net 1.0.

    Please describe your requirement.
  5. #5
    I wanted to give the Users two features:
    1. check-boxes to select rows to add a Business Logic's too

    1. clicking on a Row to Edit that row, which shows a Pop-up window... (I currently have an Edit Button at the end of each Row)
  6. #6
    You could use CheckboxSelectionModel only. This class is inherits from RowSelectionModel one. So, this has all its functionality with additional 'checkbox' feature.
  7. #7
    I see, thank you very much for your explanation...

Similar Threads

  1. Replies: 13
    Last Post: Aug 06, 2013, 3:58 AM
  2. [CLOSED] Adding panels to a tab panel throws exception
    By RCM in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 09, 2012, 6:28 PM
  3. Replies: 2
    Last Post: Jun 24, 2011, 5:33 PM
  4. [CLOSED] [1.0] Problem adding SelectionModel at runtime
    By edigital in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Aug 04, 2010, 5:30 PM
  5. [CLOSED] ScriptManager throw exception in my masterpage
    By pumpkin in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 04, 2009, 3:09 AM

Posting Permissions