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
898
Client Side Binding - no VirtualScrolling ???
posted

Hello,

I use v12.2 and after I've read many post WebDataGrid works. With one exception. If I use client-side binding, the grid loses the property VirtualScrolling. When I load the data on server side it works. Do you have any idea?

Below is the code I am using

 

Best regards

Manfred

 

<ig:WebDataGrid ID="wdgSEARCH" runat="server" Width="99.5%" Height="99.5%"

                 DataKeyFields="ProjektID" StyleSetName="Office2007Black" EnableAppStyling="True"

                 AutoGenerateColumns="False" EnableAjax="False" EnableDataViewState="True" BorderStyle="None" StyleSetPath="~/ig_res/"

                 EnableClientRendering="true">

:::

:::

<Behaviors>

                   <ig:Selection CellClickAction="Row" RowSelectType="Single"></ig:Selection>

                    <ig:VirtualScrolling AverageRowHeight="30" DataFetchDelay="500"

                    RowCacheFactor="3" ScrollingMode="Deferred">

                     </ig:VirtualScrolling>

                </Behaviors>

 

private void InitialSearchGrid()

{

             this.wdgSEARCH.EnableClientRendering = true;

             this.wdgSEARCH.Behaviors.VirtualScrolling.Enabled = true;

             wdgSEARCH.DataSource = CommonData.getLocProjects("XXXXX");

             wdgSEARCH.DataBind();

}

 

function getLocationProjects(Customer) {

                PageMethods.getLocProjects(Customer, onSucess, onError);

                 function onSucess(result) {

                     var grid = $find('<%=wdgSEARCH.ClientID%>')

                     if (grid != null) {

                         var source = result.Table;

                         grid.EnableClientRendering = true;

                         grid.set_dataSource(source);

                         grid._pi.show(grid);

                         grid.applyClientBinding();

                         grid._pi.hide(grid);

                    }

                }

                function onError(result) {

                     alert("Keine Daten gefunden!");                 }

            }

Parents
  • 37874
    Verified Answer
    posted

    Hello Mani_Infineon,

    VirtualScrolling is not intended to work with client-side binding. When you bind the grid in javascript, the whole data source is sent to the client, so there is no need to  request additional data.

    If you have any further questions, please do not hesitate to ask.

Reply Children