ItemRenderer Vs ItemEditor

我怕爱的太早我们不能终老 提交于 2020-01-06 06:16:10

问题


What is the Difference between ItemRenderer and ItemEditor?

And When ItemRenderer is initializing and loading?

Regards, Ravi


回答1:


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 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.



来源:https://stackoverflow.com/questions/1958745/itemrenderer-vs-itemeditor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!