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
425
Problem with Load On Demand
posted

I am using a WebDropDown with a large dataset.

I set the SelectCommand of an SQLServer datasource at page load.

I set the webdropdown to EnableLoad on demand but it's not working.

ID="WebDropDownAluno" runat="server" Width="400px" AutoPostBack="False" ToolTip="Selecione o aluno"
DataSourceID="SqlDataSourceAluno" DataKeyFields="Matrícula" ValueField="Matrícula"
TextField="Nome" onselectionchanged="WebDropDownAluno_SelectionChanged"
AutoPostBackFlags-ValueChanged="Off" AutoSelectOnMatch="False" AutoPostBackFlags-SelectionChanged="On"
AutoFilterTimeoutMs="200" EnableAutoCompleteFirstMatch="False" EnableAutoFiltering="Server"
EnableViewState="false"
AutoFilterQueryType="Contains"
AutoFilterResultSize="50"
EnableLoadOnDemand="true"

At PageLoad:

SqlDataSourceAluno.ConnectionString = "some connection string";
SqlDataSourceAluno.SelectCommand = "some SQL text";

Parents
  • 17590
    Offline posted

    Hello Miranda,

    Thank you for posting in the community.

    I investigated the code snippet provided and everything seems correct.

    Could you please provide some additional information in order to investigate the issue further:

    1. Is your application throwing any kind of exception or it just does not load the data?

    If it`s not loading the data what I can suggest is calling the DataBind method after setting the select command.

    2. Which version of NetAdvantage are you using?

    A small isolated sample where the issue is reproducibe would be highly appreciated.

    Looking forward to hearing from you.

     

     

     

Reply Children
No Data