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
20
Client Side Expand All in Outlook Grouping.
posted

I have an ultrawebgrid that uses Outlook Grouping with 2 GroupByColumns. Initially, the grid loads contracted, which is the desired behavior, but I then need the option of expanding ALL rows on the clientside.   I am able to use the ExpandAll() on the server, but the result set is too large to unnecessarily roundtrip for this.  I'm sure this is accomplished simply and I'm just missing it.  Thanks.

Parents
No Data
Reply
  • 3732
    posted

    Hello,

    It looks like when the grid is initially loaded; you want the columns to be grouped and don't want to show all the rows, correct? If so, then when you want all the rows to be expanded?

    If the data set is too large, then expanding the all the rows on the client side might result in a performance issue. However, this can be done. For example, you can handle the InitializeRow event on the client side and expand all the rows there as follows:

    function UltraWebGrid1_InitializeRowHandler(gridName, rowId)

    {

    //Add code to handle your event here.

    var row = igtbl_getRowById(rowId);

    row.setExpanded(true);

    }

     

    This will expand all the rows when the grid is initially loaded. Please visit the following link to learn more about the CSOM of the UltraWebGrid and handle the desired event and set the setExpanded on the row object to expand the row.

    http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.1/CLR3.5/html/WebGrid_CSOM.html

    Hope this helps.

    Thanks

    Sarita

     

Children
No Data