Hi,
I have a webdatagrid with webdropdown control, everything works out fine, until I changed webdropdown EnableLoadOnDemand to true, I am getting an error: Microsoft JScript runtime error: 'Sys' is undefined
on
// Sys.WebForms.PageRequestManager._initialize('ctl00$WebScriptManager1', 'aspnetForm', ['tctl00$masterUpdatePanel','','tctl00$ContentPlaceHolder1$WebTab1$tmpl0$upd1',''], [], ['ctl00$ContentPlaceHolder1$WebTab1$tmpl0$btnExport','','ctl00$ContentPlaceHolder1$dialogImport$tmpl$btnImportFile',''], 90, 'ctl00'); //]]>
Any help will be appreciated!
Qiuyu
Hello Qiuyu,
Private async postbacks of WebDataGrid editors are not supported (that is a part of Infragistics.Web.UI framework). For example, something like below would destroy editor after any value change:
provider.EditorControl.AutoPostBackFlags.ValueChanged = Infragistics.Web.UI.AutoPostBackFlag.Async;
The WebDropDown.EnableLoadOnDemand is based on that private async postback and therefore after a request for a new page triggered by drop-down will destroy editor.
In order for async postback to work (LoadOnDemand) the owner of postback must permanently exist on server. As this is not possible, async features of editor providers are not supported and application cannot use LoadOnDemand.