Declined
Last Updated: 25 Mar 2022 11:03 by Priya
Priya
Created on: 11 Mar 2022 12:41
Category: Grid
Type: Feature Request
1
When I selected a product and then edited something in the product infomodal and then presses save, the filters applied in the productsgrid is dropped


                $.ajax({
                    url: "/ProductRowInfoSite/SaveParameters",
                    data: {
                        data: dataString
                    },
                    dataType: "json",
                    // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
                   
                    success: function (result) {
                        // notify the data source that the request succeeded
                        //options.success(result);
                      
                     
                        self._store.dispatch({ type: ActionProductInfoWindow.Saving });

                        $("#productGridId").data("kendoGrid").saveChanges();
                       // $(self._parent + " " + "#productWindowGridId").data("kendoGrid").saveChanges();

                        if ($ (self._parent === "#productGridId")) {
                            $("#productGridId").data("kendoGrid").dataSource.read();
                        }
                        self._parent.refreshParentGrids();
                      
                        //var dataSource = $("#productGridId").data("kendoGrid").dataSource;
                        //var filters = dataSource.filter();
                        //var allData = dataSource.data();
                        //var query = new kendo.data.Query(allData);
                        //var data = query.filter(filters).data;
                       

                        //$("#productGridId").data("kendoGrid").dataSource = data;

                        //let productGrid = $("#productGridId").data("kendoGrid");
                        //productGrid.dataSource.read();
                         

                        
                    },
                    error: function (result) {
                        displayAjaxError(result);
                    },
                    type: 'POST'
                });
Attached Files:
4 comments
Priya
Posted on: 25 Mar 2022 11:03

Hello, Georgi,

I fixed that issue dropping filter ,

   if (productNo === null) {
            let newFilter = await self._getFilterOnlyFromLocalStorage();
            let totalFilter = $(self._gridId).data("kendoGrid").dataSource.filter();
            totalFilter.filters.push.apply(totalFilter.filters, newFilter.filters);
            $(self._gridId).data("kendoGrid").dataSource.filter(newFilter);

            self._setPredefinedFilterButton(self);
        }
    }

 

I added filter and pushed it both newFilter and totalFilter

ADMIN
Georgi Denchev
Posted on: 25 Mar 2022 10:35

Hello, Priya,

Thank you for the provided code snippets.

Unfortunately, the logic is quite extensive and it is difficult to debug without being able to run it. Could you provide me with a Fiddler recording of the problem? Fiddler records clicks, events, network requests and other useful information. This could potentially help me determine the exact point at which the problem occurs and what causes it.

To make a recording navigate to the following page to download the Chrome extension and follow the on-screen instructions. Make sure that you start the recording before you load the page with the problematic Grid, otherwise there could be missing script files.

Once you've followed the steps you can perform the actions which trigger the problem - filter, edit a record, save.

Best Regards,
Georgi Denchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Priya
Posted on: 18 Mar 2022 10:54

Hi George,

 

Thank you for your reply , Saving edits in product info modal deletes used filters on products grid .

when in the products register, and a user have set some different filters, an then selected a product and then edited something in the product infomodal and then presses save, the filters applied in the productsgrid is dropped, and the user have to set the filters again in the grid to find the next product in the list.

This is not a problem when for example the forecast is edited directly in the grid instead of the modal at the right.

This is my whole problem and I will share my files too

As you said I will inform to my Company to allow the external .

 

ADMIN
Georgi Denchev
Posted on: 18 Mar 2022 09:18

Hi, Priya,

I tested the Popup Editing of the Grid when there are filters applied in the following Dojo:

https://dojo.telerik.com/@gdenchev/unehAsUY 

After editing/adding a record, the filters didn't disappear from the Grid.

I noticed that this thread is opened as a feature request, however this seems to be more of a support case. Could you ask your company to assign you a Developer license so you can open support tickets? We can then continue to investigate the problem in the private thread and you'll be able to share additional information with us.

Best Regards,
Georgi Denchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.