|
Article relates to |
RadInput RadGrid |
|
Created by |
Stephen, Telerik |
|
Last modified |
April 26, 2007 |
|
Last modified by |
Stephen, Telerik |
HOW-TO
Use
RadDateInput/RadMaskedTextBox (parts of RadInput 1.x) as editor in
GridTemplateColumn of RadGrid
SOLUTION
You should place the date-input/masked textbox instance in
EditItemTemplates of
GridTemplateColumns. For
RadDateInput you should bind the
DbSelectedDate property of to a
DateTime column of your choice from the grid data source. For
RadMaskedTextBox you need to bind the
Text property of the control to column in the grid source (restricting the user input through the
Mask attribute definition of the
RadMaskedTextBox object).
On
update, you can reference the
ContainerControl of the
GridTemplateColumnEditor instance (which is the table cell holding the date-input/masked textbox editor) to extract the value selected by the user. Then you can update the grid data source with the new entries and refresh the control to reflect the changes.
For additional information you can refer to the code sections below:
Please
Sign In
to rate this article.