Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
persistent select through pags in flexigrid / Scroll pagination
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Saurabh  
View profile  
 More options Apr 13 2009, 2:06 am
From: Saurabh <saurabhperi...@gmail.com>
Date: Sun, 12 Apr 2009 23:06:57 -0700 (PDT)
Local: Mon, Apr 13 2009 2:06 am
Subject: persistent select through pags in flexigrid / Scroll pagination
Hi,

I am evaluating various javascript based datagrid that i can use in my
application. I have looked at demos of flexigrids.

I want to know if its is possible that row selection persists across
the page change. e.g.

I select row 2,5,7 on page 1 and then i change to page 2 and select
20,25. I go back to page one ... will i get 2,5,7 pre selected ?

OR

is scroll pagination possible in flexigrid. by scroll pagination i
mean AJAX loads more data when i have scrolled to last row. kind of
auto pagination

Thanks & Regards,
saurabh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grégory OLIVER  
View profile  
 More options Jul 20 2012, 11:23 am
From: Grégory OLIVER <oliver.greg...@gmail.com>
Date: Fri, 20 Jul 2012 08:23:18 -0700 (PDT)
Local: Fri, Jul 20 2012 11:23 am
Subject: Re: persistent select through pags in flexigrid / Scroll pagination

Hello, I have done a small code to keep selection during scroll pagination.

You can found my answer on stackoverflow :
http://stackoverflow.com/questions/4063938/flexigrid-selection-of-row...

The code :

        $("#searchPhonoList").flexigrid($.extend({}, flexigridAttrs, {
            url: './rest/phono/search',
            preProcess: formatSearchPhonoResults,
            onSuccess: successSearchPhono,
            onSubmit: submit,
            method: 'GET',
            dataType: 'json',
            colModel : [
                {display: 'titre', name: 'titre_brut', width : 240,  
sortable : true, align: 'left'},
                {display: 'version', name: 'version_brut', width : 60,  
sortable : true, align: 'left'}
            ],
            height: "auto",
            sortname: "score",
            sortorder: "desc",
            showTableToggleBtn: false,
            showToggleBtn: false,
            singleSelect: false,
            onToggleCol: false,
            usepager: true,
            title: "Liste des candidats",
            resizable: true,
            rp:20,
            useRp: true
        }));  

        var searchPhonoListSelection = new Array();

        $('#searchPhonoList').click(function(event){

            $(' tbody tr', this).each( function(){
                var id = $(this).attr('id').substr(3);
                if ( searchPhonoListSelection.indexOf(id) != -1 ) {

searchPhonoListSelection.splice(searchPhonoListSelection.indexOf(id), 1);
                }
            });

            $('.trSelected', this).each( function(){
                var id = $(this).attr('id').substr(3);
                if ( searchPhonoListSelection.indexOf(id) == -1  ) {
                    searchPhonoListSelection.push(id);
                }
            });
        });

        function successSearchPhono() {
            $("#searchPhonoList tbody tr").each( function() {
                var id = $(this).attr('id').substr(3);
                if ( searchPhonoListSelection.indexOf(id) != -1 ) {
                    $(this).addClass("trSelected");
                }
            });
        }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »