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" ...
随机推荐
- Python3标准库:copy复制对象
1. copy复制对象 copy模块包括两个函数copy()和deepcopy(),用于复制现有的对象. 1.1 浅副本 copy()创建的浅副本(shallow copy)是一个新容器,其中填充了原 ...
- MySQL - SQL语句优化方法
1.使用 show status 了解各种 SQL 的执行频率 mysql> show status like 'Com%'; 该命令可以查询 sql 命令的执行次数. 2.定位执行效率较低的 ...
- Codeforces Round447 D树上前缀和
已知完全二叉树和每条边的权值,q次询问,每次给出sta起点和H. w=(H-点到sta的权值),求w>0的所有w的加和. 这题用树上前缀和来写,e[i]记录子树上的点到点i的距离,sum[i][ ...
- uniapp后台api设计(微信user表)
MySQL 创建数据库: CREATE DATABASE [IF NOT EXISTS] <数据库名> [[DEFAULT] CHARACTER SET <字符集名>] [[ ...
- 10.HanLP实现k均值--文本聚类
笔记转载于GitHub项目:https://github.com/NLP-LOVE/Introduction-NLP 10. 文本聚类 正所谓物以类聚,人以群分.人们在获取数据时需要整理,将相似的数据 ...
- Fight Against Monsters Gym - 102222H【贪心】
贪心的策略 #include <bits/stdc++.h> using namespace std; ; typedef long long ll; struct m { int hp, ...
- MySQL优化(四)——读写分离
1.MySQL高可用 主从复制 一主多备 多主多备 读写分离 减少IO开销,防止阻塞等等 2.主从复制参考 https://www.cnblo ...
- 【Debian学徒记事】Debian快速呼出Terminal终端
Debian快速呼出Terminal终端 书接上回,Debian已经安装完毕 失踪的Ctrl+Alt+T 安装完毕启动,我发现了剑很诡异的事,Ctrl+Alt+T居然失灵了 (在多次测试后发现,Deb ...
- MongoDB的批量查询条件进行批量更新数据
今天遇到这样一个场景:在Java中批量更新MongoDB数据,不过每次更新的条件有不一样,那如何有效地进行更新操作呢? 刚开始的时候,我是想到循环批量更新操作,即每一种查询条件进行一次批量更新过程,这 ...
- gulp常用插件之gulp-if使用
更多gulp常用插件使用请访问:gulp常用插件汇总 gulp-if这是一款条件判断插件. 注意:与gulp-if一起使用时,表现不佳的插件通常会变得更糟.通常,修复不在gulp-if中. 注意:与l ...