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
175
Error in WebDropDown with Load On Demand
posted

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
Parents
No Data
Reply
  • 7499
    Suggested Answer
    posted

    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.

     

Children
No Data