View Full Version : [CLOSED] GridPanel GetSelected error

Oct 14, 2014, 6:49 PM
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.


<ext:GridPanel runat="server" ID="grdAvailableJobPostings" Header="false" StoreID="stoAvailableJobPostings" Frame="false" StripeRows="true" Width="546" Height="148">
<ColumnModel ID="clmAvailableJobPostings" runat="server">
<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" />
<ext:RowSelectionModel ID="rsmAvailableJobPostings" Mode="Multi" runat="server" SingleSelect="true">
<Select OnEvent="RowSelectAppliedTo" Buffer="250">
<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" />
<ext:PagingToolbar ID="ptbAvailableJobPostings" runat="server"
DisplayMsg="Displaying job postings {0} - {1} of {2}"
EmptyMsg="No job postings to display" />

Oct 15, 2014, 11:49 AM
Hi @Bert76,

I would try to search "getSelected" in this document.

Maybe, you'll find something.