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" ...
随机推荐
- NetCore3.0实现自定义IOC容器注入
在之前的ASP.NET MVC实现依赖注入一文中,通过替换默认的ControllerFactory来达到对Controller生命周期的拦截,实现自定义的对象注入,在NetCore3.0中需要重新实现 ...
- java8 常用代码
1. 使用java8 提取出 list 中 bean 的某一属性 public static void main(String[] args) { List<Student> stuLis ...
- const与指针、引用
const与指针类型 定义一个指针*p: const int* p = NULL; int const* p = NULL; int* const p = NULL; 上面两行定义完全等价,第三行则不 ...
- Maven 阿里云仓库地址
https://maven.aliyun.com/mvn/view 一般使用聚合仓库(group),path是仓库地址.可点击右上角“使用指南”: 附 目前阿里云仓库的地址 https://mav ...
- 使用十年的电脑在家用记事本调试 .NET 程序
引言 春节放假回老家,没有把笔记本电脑带上,由于肺炎疫情的原因只能呆在家里,写的一个WinForm程序无法正常使用,需要及时修复,看我如何使用家里十年的台式机来调试修复 .NET 应用程序. WinF ...
- 关于PHP连接上MySQL但不能插入数据
出现这种情况,有三种可能 1.SQL语句有问题 insert into table_name(field1,field2...) values(value1,value2...); 先在MySQL中粘 ...
- Java垃圾回收手册翻译 - 什么是垃圾回收
Java垃圾回收手册翻译 - 什么是垃圾回收 初看之下,垃圾回收应该要做其名称之事 - 找到和丢掉垃圾.然而事实上它正好做着相反的事,垃圾回收会记录所有仍在使用中的对象,然后将其他标记为垃圾.谨记这点 ...
- 调整markdown css样式
H1标题 H2标题 H3标题 H4标题 H5标题 H6标题 段落: 世情薄,人情恶.雨送黄昏花易落.晓风干,泪痕残.欲笺心事,独语斜阑.难,难,难! 人成各,今非昨.病魂常似秋千索.角声寒,夜阑珊.怕 ...
- Anaconda切换工作目录盘符
先回到C盘符的根目录再切换到其他盘符
- jQuery---offset方法和position方法
offset方法和position方法 获取元素的相对于document的位置 //获取元素的相对于document的位置 $(".son").offset(); console. ...