AutoCompleteExtender is firing, webservice is returning results, but these are not being displayed

扶醉桌前 提交于 2019-12-08 04:32:30

Okay, in the end this turned out (somewhat annoyingly) a z-index time. I'm not sure what z-index a dialog that is displayed using the AjaxControlToolkit's ModalPopupExtender is given by default (the highest z-index I could see on the page was 10001).. but somewhere behind the scenes it was being given an attribute that meant that my popup suggestions (from the AutoCompleteExtender) always rendered behind the dialog (couldn't see this however until I returned enough results to get the suggestions apepar from beneath the dialog). In the end I had to override the z-index of the panel used as a dialog by the ModalPopupExtender AND the CompletionListCssClass of the AutoCompleteExtender thus:

            .popUpDialog
        {
            z-index: 99 !important;
        }

        .autoComplete_listMain
        {
            z-index: 2147483647 !important;
            background: #ffffff;
            border: solid 2px #808080;
            color: #000000;
        }

Anyway, annoyingly simple in the end, but thought I'd share just in case anyone else runs into a similar problem!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!