Adding extra parameters to Datamanger not working in Internet Explorer

Hi there,

I am using a grid which depends on two drop down selection. TenantId and UserId. So I add those parameter to the ej.Query. Everyhing works fine in Chrome, Firefox
but in IE and Edge the values are not correct, it takes the values from the previous POST request in the controller action (I am not using GET, therefore no caching issue)
Any help would be nice, thanks

--- Javascript
function userDropDownChange(args) {
        var selectedTenant = $("#tenantDropDownList").data("ejDropDownList").getSelectedValue();
        var data = ej.DataManager({ url: "/Download/GetAllFilesForAdmin", adaptor: "UrlAdaptor" });
        var userQuery = new ej.Query();
        userQuery.addParams("userId", args.selectedValue);
        userQuery.addParams("tenantId", selectedTenant);
        $("#fileGrid").ejGrid({
            dataSource: data,
            query: userQuery
        });
    }

-- ASP.NET MVC  Controller Action
[System.Web.Mvc.HttpPost]
        public async Task GetAllFilesForAdmin([FromBody]
        ExtendedDM dm)
        {
            var data = await this.fileApplicationService.GetAllFilesAsAdminForUser(new PagedResultRequestDto { MaxResultCount = dm.Take, SkipCount = dm.Skip },      dm.userId, dm.tenantId);
            return Json(new { result = data.Items, count = data.Items.Count }, JsonRequestBehavior.DenyGet);
        }

        public class ExtendedDM : DataManager
        {
            public long userId { get; set; }
            public int tenantId { get; set; }
        }


1 Reply

KV Karthikeyan Viswanathan Syncfusion Team August 31, 2018 10:14 AM UTC

Hi Karim, 

Thanks for contacting Syncfusion support. 

We have prepared a sample based on your scenario. But, we were unable to find out the exact root cause of this issue.  

So, Please share the below details. It will help us to provide a solution at earlier. 

  • Share the issue reproducing sample if possible.
  • Share the code snippet which will help to reproduce this issue.
  • Check and share the network tab details whether the parameter values are correct or not in IE and Edge browser.
  • Check and share the add params value details before post.



Please find the below screenshot: 

 


Regards, 
Karthikeyan v. 


Loader.
Up arrow icon