Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - swapnilsu

Pages: [1]
1
Bug Report / Re: Showing duplicate and blank records on sorting
« on: June 09, 2022, 08:05:53 pm »
Thanks for your support, we will try implement remote sorting and if we have any issue let you know

2
Bug Report / Showing duplicate and blank records on sorting
« on: June 08, 2022, 01:12:31 pm »
Hi Team,

We are getting duplicate records issue while sorting and then scroll when grid fully loaded in lazy load example provided in your website. we are used the same code in our application for lazy loading users saw this issue when grid is fully loaded and then scroll-sort.

Please do needful.

Thanks,
Swapnil

3
Bug Report / grid.deleteRow is not Working while remote loading
« on: February 02, 2022, 02:07:45 pm »
Hi Team,

The issue with delete multiple
1.When grid is initially loaded and select all rows its working fine no issue.
2.But when we scroll down its loading some more rows and select all and try to delete its not deleted for first time but in second time click its working. can you please help me here I need to delete records for when user is going to click first time he don't need to click on second time.

Here is code
                             var arr = [];
                            ids.map(function (value) {
                                arr.push({ rowIndx: value });
                            });

                            grid.deleteRow({
                                rowList: arr
                            });
                            jalert("cancelConfirm", "hide");
                            var gridID = $($(e).parent('div').prevObject[0].currentTarget).closest('.jsGridContainer')[0].id;
                            bdeleteRecord = true;
                            $("#" + gridID + " .jsSaveChanges").trigger('click');

Here is saveMethode

if (grid.isDirty() && grid.isValidChange({ focusInvalid: true }).valid) {}

grid.isDirty() is getting false for first click



 

4
Hi Team,

When I have implemented PQ grid on my project its working fine for other functionality but when I have created new product by clicking on new product button the new row is inserted in grid and first cell showing in edited form its working fine but when i have changed edited cell to something different its getting issue Cannot read properties of undefined (reading 'pq_hidden')

below is the code

This is working with grid.editFirstCellInRow({ rowIndx: ri });   After try to remove the row

{
            type: 'button', icon: 'ui-icon-plus', label: 'New Product', cls: 'newProductBtn', listener: function () {
                if (checkUserSessionActive()) {
                    var grid = this;
                    var len = PhQty === undefined ? 1 : PhQty;
                    newRows = pqVS.data.filter(function (value) {
                        return value.deleteOption == true;
                   
                    });
                    newRowsCount = parseInt(newRows.length) + parseInt( len);
                    if (newRowsCount<= 200) {
                     
                        for (let i = 0; i <= len - 1; i++) {
                            var obj = grid.getViewPortIndx(),
                                initV = obj.initV;
                            //append empty row at beginning of viewport.                           
                            rowData = { "state": true, "RLSKU":0, "deleteOption": true, "newRow": true } //empty row

                            var ri = grid.addRow({ newRow: rowData, checkEditable: true, rowIndx: initV });
                           
                            grid.scrollRow({ rowIndxPage: ri }, function () {
                              grid.editFirstCellInRow({ rowIndx: ri });
                            });
                           
                        }
                       
                    }
                   
                }
            }
        }

This code is getting issue with grid.editCell({ rowIndx: ri, dataIndx: "CITEMD" })  After try to remove the row

{
            type: 'button', icon: 'ui-icon-plus', label: 'New Product', cls: 'newProductBtn', listener: function () {
                if (checkUserSessionActive()) {
                    var grid = this;
                    var len = PhQty === undefined ? 1 : PhQty;
                    newRows = pqVS.data.filter(function (value) {
                        return value.deleteOption == true;
                   
                    });
                    newRowsCount = parseInt(newRows.length) + parseInt( len);
                    if (newRowsCount<= 200) {
                     
                        for (let i = 0; i <= len - 1; i++) {
                            var obj = grid.getViewPortIndx(),
                                initV = obj.initV;
                            //append empty row at beginning of viewport.                           
                            rowData = { "state": true, "RLSKU":0, "deleteOption": true, "newRow": true } //empty row

                            var ri = grid.addRow({ newRow: rowData, checkEditable: true, rowIndx: initV });
                           
                            grid.scrollRow({ rowIndxPage: ri }, function () {
                                grid.editCell({ rowIndx: ri, dataIndx: "CITEMD" })
                            });
                           
                        }
                       
                    }
                   
                }
            }
        }

Pages: [1]