本文介绍了Flexigrid /可调整大小的行高动态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

选中此图像前开始:
 

Check this image for before starting : Grid Image

我使用jQuery flexigrid,我想动态调整行高。
用户可以调整在运行时行高和保存数据库和变化的高度将被应用于下一次高峰。

I'm using jQuery flexigrid and I want to resize the row heights dynamically.The user can resize the row heights at runtime and save the heights in database and next time the changed height will be applied.

我需要从哪里开始的一些想法或示例解决方案,这将是非常有益的,开始我的工作。

I need some ideas on where to start or an example solution, it will be very helpful to start my work.

我的开发环境:ASP.NET,C#,jQuery和Web服务

My development environment is : ASP.NET, C# ,jQuery and Web services.

在此先感谢

推荐答案

显然,你应该定制原flexigrid code。
这里是一般步骤,我认为我们可以遵循。

Obviously you should customize the original flexigrid code.here is the general steps I think we can follow.


  1. 如果调整大小功能添加到 TR 表。因为flexigrid使用 HTML表格显示。这里是example要做到这一点。

  2. 应该添加一个JSON或其它格式存储在定义。

  3. 自定义渲染flexigrid的functon到css样式添加到 TR 针对其存储在数据库中的JSON。

  1. Should add the resize feature to the tr of the table. because the flexigrid use html table to display. here is the example to make it .
  2. Should add a json or other format to store the Row definition.
  3. Customize the render functon of the flexigrid to add css style to the tr against the json which stored in the DB .

这篇关于Flexigrid /可调整大小的行高动态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 06:51