We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Pressing filter button in Grid B loads the dialogue up in Grid A

Thread ID:





124447 Jun 10,2016 08:26 AM UTC Jun 16,2016 07:01 AM UTC JavaScript 3
Tags: ejGrid
Asked On June 10, 2016 08:26 AM UTC

I have two different grids, each one drawn in a seperate div. When I press the filter button on Grid B, the dialogue gets loaded over the same column in grid A.

How can I prevent this error in the Syncfusion library?

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On June 13, 2016 06:25 AM UTC

Hi Duncan, 

We could see that you are using detailsTemplate feature of Grid from the Forum 124416 and you are facing this problem with the detailsTemplate. While using the detailsTemplate, you need to generate a unique ID for each details Grid which will avoid the opening of filter dialog for different details Grid. Refer to the following code example and sample, 

    <div id="Grid"></div> 
    <script id="tabGridContents" type="text/x-jsrender"> 
        <div id="detailGrid{{:EmployeeID}}"> 
    <script type="text/javascript"> 
        $(function () { 
                dataSource: ej.DataManager(window.employeeView), 
                detailsTemplate: "#tabGridContents", 
                detailsDataBound: "detailGridData", 
                .  . .. 
        function detailGridData(e) { 
            var filteredData = e.data["EmployeeID"]; 
            var data = ej.DataManager(window.ordersView).executeLocal(ej.Query().where("EmployeeID", "equal", parseInt(filteredData), true)); 
            e.detailsElement.find("#detailGrid" + filteredData).ejGrid({ 
                dataSource: data, 
                allowFiltering: true, 
                filterSettings: { filterType: "excel" }, 
                 . . . . 

If we misunderstood your query, please get back to us with the following information to analyze the issue. 

1)      Code example of both the Grids 
2)      Are you using two separate Grids? Or placed the GridA within the GridB? 

Seeni Sakthi Kumar S. 

Replied On June 15, 2016 08:05 AM UTC

Thanks for your advice I'll bear it in mind. I have solved the issue a different way now by creating separate prototypes for each of my grids.

Mani Sankar Durai [Syncfusion]
Replied On June 16, 2016 07:01 AM UTC

Hi Duncan,  
Thanks for your feedback. 
We have happy to hear that your requirement is achieved.  
Manisankar Durai. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon