ASPxGridView 排序、分页、加载数据必需的三个函数
protected void ASPxGridViewPoint_OnCustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
try
{
PointIdKeys = e.Parameters;//传递参数 LogHelper.WriteLog("PointIdKeys:"+PointIdKeys); object[] paramets = e.Parameters.Split(';');//分割参数 if (string.IsNullOrEmpty(rootPath))
{
rootPath = ConstConfig.strWebServerM;
} string filePath = rootPath + @"\App_Config\SQL\ORACLE\index_over_view\overView_34_gridPoint.sql"; string fileContent = FileHelper.FileToString(filePath); string sqlContent = fileContent; LogHelper.WriteLog("PointIdKeys 参数长度:" + paramets.Length); string sql = string.Format(sqlContent,paramets);
DataTable dataTable = PublicBllBase.GetDataTable(sql);
if (dataTable != null)
{
this.ASPxGridViewPoint.DataSource = dataTable;
this.ASPxGridViewPoint.DataBind();
} }
catch (Exception exception)
{
LogHelper.WriteLog("WebChartControlIndex", exception);
}
} protected void ASPxGridViewPoint_OnBeforeColumnSortingGrouping(object sender, ASPxGridViewBeforeColumnGroupingSortingEventArgs e)
{
try
{
object[] paramets = PointIdKeys.Split(';');//分割参数 if (string.IsNullOrEmpty(rootPath))
{
rootPath = ConstConfig.strWebServerM;
} string filePath = rootPath + @"\App_Config\SQL\ORACLE\index_over_view\overView_34_gridPoint.sql"; string fileContent = FileHelper.FileToString(filePath); string sqlContent = fileContent; LogHelper.WriteLog("PointIdKeys 参数长度:" + paramets.Length); string sql = string.Format(sqlContent, paramets);
DataTable dataTable = PublicBllBase.GetDataTable(sql);
if (dataTable != null)
{
this.ASPxGridViewPoint.DataSource = dataTable;
this.ASPxGridViewPoint.DataBind();
} }
catch (Exception exception)
{
LogHelper.WriteLog("WebChartControlIndex", exception);
}
} protected void ASPxGridViewPoint_OnPageIndexChanged_(object sender, EventArgs e)
{
try
{
object[] paramets = PointIdKeys.Split(';');//分割参数 if (string.IsNullOrEmpty(rootPath))
{
rootPath = ConstConfig.strWebServerM;
} string filePath = rootPath + @"\App_Config\SQL\ORACLE\index_over_view\overView_34_gridPoint.sql"; string fileContent = FileHelper.FileToString(filePath); string sqlContent = fileContent; LogHelper.WriteLog("PointIdKeys 参数长度:" + paramets.Length); string sql = string.Format(sqlContent, paramets);
DataTable dataTable = PublicBllBase.GetDataTable(sql);
if (dataTable != null)
{
this.ASPxGridViewPoint.DataSource = dataTable;
this.ASPxGridViewPoint.DataBind();
}
}
catch (Exception exception)
{
LogHelper.WriteLog("WebChartControlIndex", exception);
}
}
ASPxGridView 排序、分页、加载数据必需的三个函数的更多相关文章
- java攻城狮之路(Android篇)--widget_webview_metadata_popupwindow_tabhost_分页加载数据_菜单
一.widget:桌面小控件1 写一个类extends AppWidgetProvider 2 在清单文件件中注册: <receiver android:name=".ExampleA ...
- Android中ListView分页加载数据
public class MainActivity extends Activity { private ListView listView=null; //listview的数据填充器 privat ...
- 【Android进阶】Listview分页加载数据的实现
Listview分页加载数据的实现 public class MainActivity extends Activity { protected static final int SUCCESS_GE ...
- jQuery 滚动条 滚动到底部(下拉到底部) 加载数据(触发事件、处理逻辑)、分页加载数据
1.针对浏览器整个窗口滚动 主要代码: <script type="text/javascript"> ; function GetProductListPageFun ...
- listView 分页加载数据
Android应用 开发中,采用ListView组件来展示数据是很常用的功能,当一个应用要展现很多的数据时,一般情况下都不会把所有的数据一次就展示出来,而是通过分页 的形式来展示数据,个人觉得这样会有 ...
- Android GridView 分页加载数据
android UI 往右滑动,滑动到最后一页就自动加载数据并显示 如图: package cn.anycall.ju; import java.util.ArrayList; import java ...
- Android之分页加载数据
基本的原理和我的上一篇随笔“Android之下拉刷新ListView”差不多,代码里面有注释,这里就不废话了,直接上代码. 自定义的分页显示ListView——PagedListView.java代码 ...
- mui前端框架下拉刷新分页加载数据
前台 mui.init(); (function($) { //阻尼系数 var deceleration = mui.os.ios?0.003:0.0009; $('.mui-scroll-wrap ...
- android ListView 分页加载数据
1.mainActivity <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
随机推荐
- 腾讯2020校园招聘-后台&综合-第一次笔试 题解
对数据结构和算法感兴趣的可以关注一下https://github.com/MCQ1999/Datastructure_Algorithm_Solutions,分享算法题的解题思路和代码~ 1.压缩算法 ...
- day 17 初始递归
递归函数 了解什么是递归 : 在函数中调用自身函数 最大递归深度默认是997/998 —— 是python从内存角度出发做的限制 能看懂递归 能知道递归的应用场景 初识递归 —— 算法 —— 二分查找 ...
- cobaltstrike使用笔记2
0x01 cs服务端绕过流量检测 定义C2的通信格式,修改CS默认的流量特征 编写Profiles: 开源Profiles:https://github.com/rsmudge/Malleable-C ...
- [TJOI2007] 足彩投注
足彩投注 题目概述 题目背景 了解足球彩票的人可能知道,足球彩票中有一种游戏叫做"胜负彩",意为猜比赛的胜负.下面是一些与胜负彩有关的术语 注 :每一组有效组合数据. 投 注:彩民 ...
- LOJ #2831. 「JOISC 2018 Day 1」道路建设 线段树+Link-cut-tree
用 LCT 维护颜色相同连通块,然后在线段树上查一下逆序对个数就可以了. code: #include <cstdio> #include <algorithm> #inclu ...
- 安装MongoDB到Ubuntu(APT)
运行环境 系统版本:Ubuntu 16.04.5 LTS 软件版本:mongodb-org-4.0.8 硬件要求:无 安装过程 1.配置APT-Mongodb存储库 ATP-Mongodb存储库由Mo ...
- PHP Strings
<?php //1. how to use mail function //create short variable names $name=$_POST['name']; $email=$_ ...
- 小白的java学习之路 “ 二重循环”
二重循环: 1.什么是二重循环: 一个循环体内又包含另一个完整的循环结构 语法: while(循环条件1) { //循环操作1 while(循环条件2) { //循环操作2 } } do { //循环 ...
- 内网hash传递
前言: 我们在平常打点的时候,遇到有内网或者有域的环境的时候,我们只获得了内网中的一台机子的shell,由这台机子我们可以获得这台机子所在的网段的相关其他主机.比如说有域的时候的域控机,有多层内网的堡 ...
- 程序里面带有浮点数,默认会自动转换为double类型存储
带有浮点数,默认会转换为double类型存储. #include "common.h" #include <stdio.h> #include <stdlib.h ...