Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter data reset history in Batch Editing #136

Open
MarwaAbuEssa opened this issue Apr 27, 2017 · 0 comments
Open

filter data reset history in Batch Editing #136

MarwaAbuEssa opened this issue Apr 27, 2017 · 0 comments

Comments

@MarwaAbuEssa
Copy link

hi,
I'm using pqGrid v2.2 , Batch Editing to update data (data model "local").
when i added filter at header (local) , it clears history of changes (if any).
history: function (evt, ui) {

            var $grid = $(this);
            if (ui.canUndo != null &&  ui.type !="reset" ) {
                $("button.changes", $grid).button("option", { disabled: !ui.canUndo });
            }
            if (ui.canRedo != null &&  ui.type !="reset") {
               $("button:contains('Redo')", $grid).button("option", "disabled", !ui.canRedo);
            }
            if(ui.type !="reset"){
                $("button:contains('Undo')", $grid).button("option", { label: 'Undo (' + ui.num_undo + ')' });
                $("button:contains('Redo')", $grid).button("option", { label: 'Redo (' + ui.num_redo + ')' });
            }

        }

after filtering from head for any column , in history function ui.type ="reset" and canRedo=false !!!

any help is appreciated

Regards,
Marwa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant