标题:ASPxGridView定制窗口问题
只看楼主
tigerli1
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-10-31
 问题点数:0 回复次数:0 
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在哪呢?哪个引用吗?
搜索更多相关主题的帖子: 用户 function javascript 定制 
2012-10-31 15:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-385303-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.366606 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved