Telerik RADGrid - 最有效的使用
您通常使用设计器还是在 ASPX 中完成所有操作?
您发现的资源是否对快速掌握如何使用此控件特别有帮助? 我注意到这个控件的智能感知注释很少。
我继续浏览 Telerik 网站上的文档,我想知道是否有更快的——“如何在 15 秒内使用模板绑定数据集并自定义网格”类型的文章。 试图减少我使用此控件的学习曲线。
Do you typically use the designer or do everything in the ASPX?
Are the resources you've found particularly helpful to come up to speed quickly on how to use this control? I've noticed the intellisense comments for this control are minimal.
I'm continuing to browse the documentation on Telerik's web site, I'm wondering if there are any quicker -- "How to bind a dataset and customize the grid using templates in 15 seconds" type of article. Trying to reduce my learning curve for using this control.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我们最近开始在我的团队中使用 RADGrid。 我们发现他们的 LiveExamples 信息非常丰富。 简化 RADGrid 使用的最大部分不是网格本身,而是数据的填充方式。 如果您只是想最初测试网格的布局,那么您可以使用任何实现 IEnumerable(以及其他一些)的集合作为数据源。
这将使您专注于网格中集合的呈现。 我将参考安装中包含的 LiveExamples 以获取对这些内容的完整解释并查看它们的实际效果。 LiveExamples 确实非常好。
当需要插入数据时,使用 ORM 框架(如 NHibernate 或 Linq2SQL)来获取对象集合并将这些集合绑定到上面的数据源。
您也可以使用普通的 DataTable 和 DataSet 来绑定到 DataSource,但这些仅适用于非常小的应用程序。
We recently started using RADGrid on my team. We have found their LiveExamples to be very informative. The biggest part of easing use of RADGrid is not the grid itself but in how the data is populated. If you simply want to test the layout of the grid initially then you can use any collection that implements IEnumerable (and a couple of others) as the datasource.
This will let you focus on the presentation of the collection in the grid. I would refer to the LiveExamples included in the installation for a full explanation of these and to see them in action. The LiveExamples are really quite nice.
When it comes time to plug in your data, use an ORM framework (like NHibernate or Linq2SQL) to get collections of objects and bind these collections to the DataSource as above.
You can use plain DataTables and DataSets to bind to the DataSource also, but those are only good for very small applications.
查看实例,因为它们非常好。 论坛也非常好,人们的反应也非常积极。 开发人员维护博客,其中包含额外的代码示例,这些代码示例在很多领域都有帮助。
关于将 IEnumerable 对象与数据源一起使用,请务必查看有关 OnNeedDataSource 事件的内容,因为这对于您了解何时希望网格进行排序和筛选至关重要。
Go through the live examples as they are very good. The forums are really good too and people are really responsive there. The developers maintain blogs with extra code samples that have helped in a lot of areas.
In respects to using IEnumerable objects with the datasource, be sure to review the content regarding the OnNeedDataSource event, as this will critical for you to understand when you want the grid to sort and filter.
我使用 Telerik 已有大约 2 年了。 这些示例可以帮助您了解可以做什么...但是它们几乎没有提供帮助的实际代码。 使用知识库了解具体信息。
http://www.telerik.com/help/aspnet-ajax/gridoverview。 html
如果您陷入困境并且没有支持或无法等待 24 小时以上才能得到回复,那么这些表格是很好的选择。
此外,使用设计器会创建一些带有 Telerik 控件的非常混乱的代码(与其他控件非常相似)。 我曾经在设计器中进行所有更改,但大多数时候它都把我的 .aspx 代码搞得一团糟。 相反,我创建主题和皮肤,以便可以在我的应用程序中设置标准选项。 这减少了我们的很多代码并有助于标准化。
I have been using telerik for about 2 years. The examples are okay for finding out what you can do... But they have very little actual code that will help. Use the knowledge base for specifics.
http://www.telerik.com/help/aspnet-ajax/gridoverview.html
The forms are good if you are stuck and don't have support or can't wait that 24+ hours to get a response.
Also, using the designer creates some pretty messy code w/ telerik controls (much like other controls). I used to do all my changes in the designer but it messed up my .aspx code pretty bad most of the time. Instead, I create themes and skins so that the standard options can be set across my app. This cuts down on a lot of our code and helps w/ standardizing.
我发现他们的帮助指南也非常有帮助。 http://www.telerik.com/help/aspnet-ajax/ajxajax。 html
I find their help how-to's very helpful as well. http://www.telerik.com/help/aspnet-ajax/ajxajax.html
我们在大多数内部/外部应用程序中使用 Telerik ASP.NET 用户控件,并发现它们非常有用。
此外,他们还有一个非常好的支持网站:Telerik 支持。
We use the Telerik ASP.NET user controls in a majority of our internal/external applications and found them to be quite usefully.
Also, they have a very good support site: Telerik Support.