在开发web信息管理系统时,使用Web前端框架可以帮助我们快速搭建一组风格统一的界面效果,而且能够解决大多数浏览器兼容问题,提升开发效率。在关于LigerGrid的前两篇的内容里,给大家介绍了表格的基本的展示数据用法。而在实际应用开发中,我们会经常遇到这样的场景,在展示业务数据的时候需要把业务数据中的参数项或者字典项的编码转换成参数名称或者字典名称展示出来。在这里本人总结了三种解决方案,并做了对比。...
分类:
其他好文 时间:
2015-01-28 18:05:23
阅读次数:
290
刚才做了个有点特殊的需求,在某窗口关闭时,要把Gridpanel中的选择行清空,因为如果不清空,直接双击,就不能即时更新出来我想要的内容。答案是:Grid.getSelectionModel().clearSelections();顺便,把Gridpanel的多种操作总结一下,它的帮助文档不给力啊。...
分类:
Web程序 时间:
2015-01-28 12:38:08
阅读次数:
250
最近在使用mvcpager时发现ajax分页需要使用Partial来实现,而且使用起来还是觉得不太方便。突然想自己做一个mvc的ajax分页,但是如果table直接用js输出就不好维护了。angularJS有一个ng-repeat属性,可以重复输出html,觉得这个方式不错,所以就有了下面这个方法....
分类:
Web程序 时间:
2015-01-28 00:57:18
阅读次数:
221
原题地址基本动态规划题代码: 1 int minPathSum(vector > &grid) { 2 if (grid.empty() || grid[0].empty()) return 0; 3 4 int m = grid.size(); 5 int n = grid[0].s...
分类:
其他好文 时间:
2015-01-27 20:12:28
阅读次数:
165
今天在导出EXT的二维时老是报错,追进去看是renderer : function(value)的参数不对,经过一番研究,未免以后遇到再次浪费时间,记录一下.var cm = new Ext.grid.ColumnModel( [ new Ext.grid.RowNumberer({ header:...
分类:
Web程序 时间:
2015-01-27 18:02:27
阅读次数:
338
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively in the grid.For e...
分类:
其他好文 时间:
2015-01-27 13:28:19
阅读次数:
149
Lattice paths
Problem 15
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner.
How many su...
分类:
编程语言 时间:
2015-01-27 13:25:01
阅读次数:
191
简介ng-grid是基于AngularJS和JQuery的富表格控件,由AngularUI Team领衔开发,到目前为止已有2354次Commit,1076个Fork。AngualrUI:http://angular-ui.github.io/ng-grid: http://angular-ui.g...
分类:
其他好文 时间:
2015-01-27 00:10:52
阅读次数:
606
由于在 xaml 体系中,控件没有传统 WebForm 中的 Left、Top、Right、Bottom 这些属性,取而代之的是按比例(像 Grid)等等的响应布局。但是,传统的这些设置 Left、Top 的硬编码的需求仍然存在,所以,在所有的 xaml 体系中,均存在一个代替的控件——Canvas...
#coding:utf-8import wxlabels='1 2 3 4 5 6 7 8 9 '.split()class TestFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,-1,'grid...
分类:
数据库 时间:
2015-01-26 22:32:25
阅读次数:
338