10/4/2010 6:32:00 PM
Title:
Difference between itemrender and itemeditor
Hi,
What is the Difference between itemrender and itemeditor.
Shawn
Points: 680
Posts:0
10/4/2010 11:21:00 PM
itemrenderer is used to format and display the contents in a components whereas itemeditor allows us to edit the displayed content
10/4/2010 11:30:26 PM
Interesting question itemrender vs itemeditor
say you have a listcontrol , now you can use a itemrenderer to display the data in any look and feel . Like display images in the list with radio button etc. Normally we have just text in list rows. So itemrenderer is used to customize data and design.
In case of itemeditor say you have a text field but on click you don't want the text to be edited directly but instead use a component like numeric stepper to edit the value. So you will use itemeditor as numericstepper. Now when user will click the text field to edit he will get numeric stepper to edit the value. So its used to define how the value will be edited.
12/14/2010 9:11:38 PM
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
ItemEditor is used when you want to override how the user might change the value in the list