创建一个动态表,每个单元格多行文本和每一个单元被点击,在ASP.NET [英] Creating a table dynamically, with multiple lines of text in each cell and each cell being clickable, in ASP.NET

查看:236
本文介绍了创建一个动态表,每个单元格多行文本和每一个单元被点击,在ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图设计一个动态构建的基于数据从单独的数据库源日历型表。

I'm trying to design a calendar-type table that is built dynamically based on data from a separate database source.

这是基本的设计思想的一个例证:

This is an illustration of the basic design idea:

下面是一个链接到图片,因为我不能发表图片呢。

Here's a link to the image, since I can't post images yet.



如果加入的目的被引用到一个星期六,另一列将增加,如果在星期一所述一个被除去,该塔将消失,反之亦然。


If an object was added that was referenced to a Saturday, another column would be added and if the one on Monday was removed, the column would disappear and vice versa.

在平日列标题和广场重新presents细胞的信息,一些行。在其整个每个单元可点击

The weekdays are column headers and the squares represents cells with some lines of information. Each cell in its whole should be clickable.

整个表应该只显示一个单月。

The entire table should show a single month only.

我想这可能是很花时间来实现消费,而且会很快变得无法再阅读和理解以后,如果它不是设计的权利。因此,如果任何人有一个更简单的方法来实现日历的月视图,与存储在每个小区信息的某些行,并可能调用Server.Transfer的()对细胞的单击事件,这将是刚作为理想的。

I'm thinking this might be very time consuming to implement, and will quite quickly become impossible to re-read and understand later on if it isn't designed right. So if anyone has a more simple way to implement a month-view of a calendar, with some lines of information stored in each cell, and a possibility to call Server.Transfer() on the click event of a cell, it would be just as ideal.

据我所知,的日历组件不支持编辑日历中的单元格的内容,和其他比,我真的不知道哪种方式将是最好的一段路要走。

As far as I know, the Calendar component doesn't support editing the contents of the cells in calendar, and other than that I don't really know which way would be the best way to go.

如果我可以提高以任何方式的问题,请让我知道。

If I can improve the question in any way, please let me know.

推荐答案

我想你想要的是不是一个日历,而是一个调度控制,其中包括功能,显示日历视图中添加/编辑约会,并提供当你点击他们发生了什么事件。

I think what you want is not a Calendar, but rather a Scheduler control, which includes functionality to display a calendar view, add/edit "appointments" and provide events of what happens when you click them.

此线程列出了很多,你可以用这样的调度控制,他们中的一些自由。

This thread lists a lot of such Scheduler control that you can use, some of them free.

下面是实现类似的功能,一些额外的链接:

Here are some additional links that implement similar functionality:

  • http://www.rekenwonder.com/aspnet/schedule.html
  • http://www.codeproject.com/Articles/7619/Databound-Schedule-Controls
  • http://www.codeproject.com/Articles/31766/DayPilot-Scheduler-Control-for-ASP-NET

我觉得那些重用的组件之一,花一些时间来研究它们会更耗时,实施从头开始自己的解决方案。如果你想要的东西落入这些控件支持的那些常见的UI模式,你会没事的。

I think reusing one of those components and spending some time to research them would be much less time consuming that implementing your own solution from scratch. If what you want falls into those common UI patterns supported by those controls, you'll be fine.

如果,在另一方面,你要的是不是一个普遍的做法,你可能会重新考虑你的方法。

If, on the other hand what you want is not a common practice, you may rethink your approach.

这篇关于创建一个动态表,每个单元格多行文本和每一个单元被点击,在ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆