[CLOSED] GridPanel GetSelected error

  1. #1

    [CLOSED] GridPanel GetSelected error

    Hi,
    we are upgrading a part of our application that was written in coolite (0.82) to ext.net 2.5. And I am getting an error and I think it's because the method changed from 0.82 to 2.5 but I can't find a good example in the example browser so I'm trying my luck here. in my grid, does the method this.getSelected still exist in the RowSelectionModel ExtraParamaters? Here is how I use it, it's not a working piece of code but it shows an example.

    Thanks,
    Bert


    <ext:GridPanel runat="server" ID="grdAvailableJobPostings" Header="false" StoreID="stoAvailableJobPostings" Frame="false" StripeRows="true" Width="546" Height="148">
                                                        <ColumnModel ID="clmAvailableJobPostings" runat="server">
                                                            <Columns>
                                                                <ext:Column runat="server" ID="colPostingID" Text="Posting #" Width="75" DataIndex="PostingID" />
                                                                <ext:Column runat="server" DataIndex="CourseCode" Text="Course Code" Width="95" ID="ctl20435" />
                                                                <ext:Column runat="server" DataIndex="CourseSection" Text="Section" Width="65" ID="ctl20437" />
                                                                <ext:Column runat="server" DataIndex="CourseTitle" Text="Course Title" Width="295" ID="ctl20439" />
                                                            </Columns>
                                                        </ColumnModel>
                                                        <SelectionModel>
                                                            <ext:RowSelectionModel ID="rsmAvailableJobPostings" Mode="Multi" runat="server" SingleSelect="true">
                                                                <DirectEvents>
                                                                    <Select OnEvent="RowSelectAppliedTo" Buffer="250">
                                                                        <ExtraParams>
                                                                            <ext:Parameter Name="RowID" Value="this.getSelected().id" Mode="Raw" />
                                                                            <ext:Parameter Name="colPostingID" Value="this.getSelected().data.PostingID" Mode="Raw" />
                                                                            <ext:Parameter Name="CourseCode" Value="this.getSelected().data.CourseCode" Mode="Raw" />
                                                                            <ext:Parameter Name="CourseSection" Value="this.getSelected().data.CourseSection" Mode="Raw" />
                                                                            <ext:Parameter Name="CourseTitle" Value="this.getSelected().data.CourseTitle" Mode="Raw" />
                                                                        </ExtraParams>
                                                                    </Select>
                                                                </DirectEvents>
                                                            </ext:RowSelectionModel>
                                                        </SelectionModel>
                                                        <BottomBar>
                                                            <ext:PagingToolbar ID="ptbAvailableJobPostings" runat="server"
                                                                PageSize="10"
                                                                DisplayInfo="true"
                                                                DisplayMsg="Displaying job postings {0} - {1} of {2}"
                                                                EmptyMsg="No job postings to display" />
                                                        </BottomBar>
                                                    </ext:GridPanel>
    Last edited by Daniil; Oct 21, 2014 at 7:01 AM. Reason: [CLOSED]
  2. #2
    Hi @Bert76,

    I would try to search "getSelected" in this document.
    https://examples2.ext.net/#/Getting_...AKING_CHANGES/

    Maybe, you'll find something.

Similar Threads

  1. [CLOSED] Error in Ext.Net.MVC 2.5. GridPanel and TreeGrid Error.
    By pawangyanwali in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 28, 2014, 11:28 PM
  2. Replies: 1
    Last Post: Mar 22, 2012, 10:36 AM
  3. Replies: 1
    Last Post: Jan 03, 2011, 1:49 PM
  4. Replies: 1
    Last Post: Nov 22, 2010, 9:07 AM
  5. Replies: 2
    Last Post: Mar 15, 2010, 2:58 PM

Posting Permissions