C1Datagrid virtualization/recycling tun off/on

Posted by: sebastian-jn.k on 22 March 2020, 6:48 pm EST

    • Post Options:
    • Link

    Posted 22 March 2020, 6:48 pm EST

    Hi there,

    i’m using c1Datagrid and i need layout informations for each row/cell.

    The problem is, if the grid is not fully visible, there are no layout informations for not visible rows (rowpresenter is null).

    With the MSDatagrid i can turn off the row/col virtualization, so the whole grid is rendered and i can get all layout informations through looping the grid.

    How do i can achieve this with the C1Datagrid, looks like u’r using your own recycling panel for this task?

    How do i can disable virtalization/recycling so i can looping through the grid with all layout information?

    I need the layout informations for my C1PrintDocument (printing job) and i don’t want use the print methods from the grid.

  • Posted 23 March 2020, 2:39 pm EST

    Hi,

    C1DataGrid, by design, creates only the cells/rows/columns which are currently need to be displayed(i.e. virtualization). However, if you need to create all the rows/columns irrespective of the display area, you can simply put the C1DataGrid inside a ScrollViewer as follows:

    <ScrollViewer Grid.Row = "1">
     <c1:C1DataGrid ItemsSource="{Binding Products}"/>
    </ScrollViewer>
    
    

    Hope it’ll help.

    Regards,

    Basant

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels