Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
find client side not working unless all rows are expanded
posted

I am using infrgistics 2007 with ASP.NET 2.0.

I implemented the following online sample; however the find does not return any results from within the inner bands of the grid the very first time. I have to manually expand all bands (currently I have 3 bands in my grid), and then when I collapse them back and do a search, it return results.

It seems like the gird does not know about these rows the very first time when the page is loaded; unless they are expanded, so now it recognizes them into memory or something.

Appreciate any help with this matter!

function FindValue(btnEl) {
            var eVal = igtbl_getElementById("FindVal");
            findValue = eVal.value;
            var re = new RegExp("^" + findValue, "gi");
            if(btnEl.value=="Find") {
                igtbl_clearSelectionAll(oUltraWebGrid1.Id)
                var oCell = oUltraWebGrid1.find(re);
                if(oCell != null) {
                    btnEl.value="Find Next";
                    var row = oCell.Row.ParentRow;
                    while(row != null) {
                        row.setExpanded(true);
                        row = row.ParentRow;
                    }
                    oCell.setSelected(true);
                }
            }
            else {
                var oCell = oUltraWebGrid1.findNext();
                if(oCell == null) {
                    btnEl.value="Find";
                }
                else {
                    var row = oCell.Row.ParentRow;
                    while(row != null) {
                        row.setExpanded(true);
                        row = row.ParentRow;
                    }
                    oCell.setSelected(true);
                }
            }
        }

  • 19693
    posted

    Hello Rula Antoun,

    It has been a while since your post, in case you are still in need of assistance I would be glad to help.

    Do you use LoadOnDemand functionality of the UltraWebGrid?

    In this case this is the default behavior of the grid

    because the child bands are not still loaded on the fist load of the UltraWebGrid.