zoukankan      html  css  js  c++  java
  • dev 官网

    https://www.devexpress.com/Support/Center/Example/Details/E1343

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication15.WebForm1" %>

    <%@ Register Assembly="DevExpress.Web.v15.1, Version=15.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

    <!DOCTYPE html>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script type="text/javascript">
    function aa() {
    grid.SelectionChanged();
    }

    function SelChanged(s, e) {

    //var cbSelName = "cbCheck" + e.visibleIndex;

    //if (eval(cbSelName).GetInputElement() != null)
    // eval(cbSelName).SetChecked(s.IsRowSelectedOnPage(e.visibleIndex));
    var key = s.GetRowKey(e.visibleIndex);
    alert(key);
    }
    function OnGridSelectionComplete(values) {
    var str = "No: " + values[0] + ", Name: " + values[1] ;
    selDescription.SetValue(str);
    }
    </script>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <dx:ASPxMemo ID="selDescription" runat="server" EnableClientSideAPI="true" />
    <br />
    <dx:ASPxGridView ID="ASPxGridView1" KeyFieldName="No" ClientInstanceName="grid" runat="server" AutoGenerateColumns="False">

    <SettingsPager PageSize="30" Position="Bottom" >
    </SettingsPager>
    <Settings ShowGroupPanel="True" ShowGroupFooter="VisibleAlways"></Settings>
    <SettingsBehavior AllowFixedGroups="False" AllowGroup="True" AllowDragDrop="True"/>

    <Columns>
    <dx:GridViewDataTextColumn FieldName="No" UnboundType="Integer" VisibleIndex="0">
    </dx:GridViewDataTextColumn>
    <dx:GridViewDataTextColumn FieldName="Name" UnboundType="String" VisibleIndex="1">
    </dx:GridViewDataTextColumn>
    </Columns>
    <GroupSummary>
    <dx:ASPxSummaryItem DisplayFormat="合计:0" FieldName="Name" SummaryType="Sum" />
    </GroupSummary>



    <ClientSideEvents SelectionChanged="function(s, e) { SelChanged(s, e); }" />
    </dx:ASPxGridView>
    </div>
    </form>
    </body>
    </html>

  • 相关阅读:
    excel打印预览后整个表格中按页显示虚线,打印时就会打印很多页
    4.8 自定义下拉菜单模式Spinner与setDropDownViewResource
    1.2Matlab基本语法和基本操作.
    CTime类的一个BUG
    【转载】PE_Info 之DIY
    ubuntu使用记录
    反VM测试成功
    获取MAC地址
    【转载】秒到oep,支持所有壳,包括vmp
    【转载】Make your owner PE Protector
  • 原文地址:https://www.cnblogs.com/kexb/p/4883941.html
Copyright © 2011-2022 走看看