ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: cijojohn on July 20, 2017, 06:11:53 pm

Title: Paste In Grid
Post by: cijojohn on July 20, 2017, 06:11:53 pm
Hello Team,

I am facing Issue with paste in grid.

when i try to paste multiple rows and i go to last row of grid and paste then it is creating new rows.  I want to restrict that.

see attachment.

Please Help..

Thanks

Title: Re: Paste In Grid
Post by: paramvir on July 20, 2017, 10:30:09 pm
It's the default behavior which can be customized with beforeValidate event:

Code: [Select]
          beforeValidate: function(evt, ui){
                if(ui.source=="paste"){
                    ui.rowList = ui.rowList.filter(function(rObj){
                        return (rObj.type!=="add");                   
                    })
                }
          }