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