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";