ItemRenderer与ItemEditor [英] ItemRenderer Vs ItemEditor

查看:110
本文介绍了ItemRenderer与ItemEditor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ItemRenderer和ItemEditor有什么区别?

What is the Difference between ItemRenderer and ItemEditor?

那么ItemRenderer何时初始化和加载?

And When ItemRenderer is initializing and loading?

关于, 拉维

推荐答案

ItemRenderer用于配置列表控件中外观的外观(即,图片+文本可能是ItemRenderer的用例) ).因此是渲染",它将如何显示(只读).

ItemRenderer is for configuring how something will look in a list control (i.e. a Picture + text might be a use case for an ItemRenderer). Thus "Render", how it will display (read-only).

ItemEditor用于当您要覆盖用户可能如何更改列表中的值时(假设您已将所讨论控件上的所有必需可编辑属性设置为允许编辑).一个很好的例子是日期列.也许您希望DataGrid在列表中将日期显示为12/28/2009,但是当用户单击它时,他们将获得一个DateChooser控件来设置新日期.

ItemEditor is used when you want to override how the user might change the value in the list (assuming that you've set all the requisite editable properties on the controls in question to allow edits). A good example could be a date column. Perhaps you want a DataGrid to show a date as 12/28/2009 in the list, but when the user clicks on it, they get a DateChooser control to set a new date.

这篇关于ItemRenderer与ItemEditor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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