ASPxGridView定制窗口问题
我想用ASPxGridView定制窗口,就是一个小窗口,展示隐藏的列,可供用户选择,拖动到表格中就会显示,反之则隐藏前台:<script type="text/javascript">
function button1_Click(s, e) {()
if (ASPxGridView2.IsCustomizationWindowVisible())
ASPxGridView2.HideCustomizationWindow();
else
ASPxGridView2.ShowCustomizationWindow();
UpdateButtonText();
}
function ASPxGridView2_CustomizationWindowCloseUp(s, e) {
UpdateButtonText();
}
function UpdateButtonText() {
var text = ASPxGridView2.IsCustomizationWindowVisible() ? "Hide" : "Show";
text += " Customization Window";
button1.SetText(text);
}
// ]]>
</script>
//按钮:
<dxe:ASPxButton ID="ASPxBtnWindows2" runat="server" Text="定制显示字段">
<ClientSideEvents Click="button1_Click()" /></dxe:ASPxButton>
//ASPxGridView中设置:
<SettingsCustomizationWindow Enabled="True" />
<ClientSideEvents CoustomizationWindowCloseUp="grid_CustomizationWindowCloseUp()" />
怎么没有弹出窗口呢?网页下方显示JAVA有错:Object expected;
另外我在网上搜时,还提到这里应该用上Client API:
ShowCustomizationWindow()
HideCustomizationWindow()
IsCustomizationWindowVisible()
这三个API在哪呢?哪个引用吗?