ItemRenderer Vs ItemEditor

2019-08-29 18:35发布

What is the Difference between ItemRenderer and ItemEditor?

And When ItemRenderer is initializing and loading?

Regards, Ravi

1条回答
beautiful°
2楼-- · 2019-08-29 19:04

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.

查看更多
登录 后发表回答