DataView get previous page selected records

  1. #1

    DataView get previous page selected records

    Hi there, is it possible to keep previous selected records from dataview, after a page has changed?
    For example, take a look at Ext.NET examples https://examples2.ext.net/#/DataView/Basic/With_Paging/, if you choose a photo in page 1 and then change to page 2, you have lost the previous selection(s). That's not so good behavior. Is there any way to avoid this? I have a direct event in a button, where I send a DataView's selected records to server, but when I change a page, I loose all previous selections.

    <DirectEvents>
                                                <Click
                                                    OnEvent="ShareVideo">
                                                    <ExtraParams>
                                                        <ext:Parameter
                                                            Name="Video"
                                                            Value="#{DataViewVideos}.getRowsValues({ selectedOnly : true })"
                                                            Mode="Raw"
                                                            Encode="true" />
                                                    </ExtraParams>
                                                </Click>
                                            </DirectEvents>
    More over, I don't use a Proxy, just binding some data directly to the DataView's Store.

    Kind regards
  2. #2
    You need to set Model's IDProperty, as shown on the following example: https://examples2.ext.net/#/GridPane...ection_Memory/

Similar Threads

  1. Replies: 2
    Last Post: Feb 24, 2014, 4:03 AM
  2. Replies: 0
    Last Post: Aug 07, 2012, 2:36 PM
  3. Replies: 2
    Last Post: Feb 10, 2012, 6:55 PM
  4. BACKSPACE key redirects a page to previous page
    By vs.mukesh in forum 1.x Help
    Replies: 1
    Last Post: Mar 25, 2011, 8:27 AM
  5. delete records in dataview
    By Hallelujahg in forum 1.x Help
    Replies: 0
    Last Post: Mar 01, 2011, 1:30 PM

Tags for this Thread

Posting Permissions