This is a migrated thread and some comments may be shown as answers.

[Solved] GridEditableItem DataTypes

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 23 Feb 2010, 08:36 PM
Is there a source of DataTypes for GridEditableItems?

 

TryCast(editedItem("ClientTypeID").Controls(0), TextBox).Text)

 

 

TryCast(editedItem("GroupID").Controls(0), DropDownList)

I have a field that is set as a  <telerik:GridNumericColumn>.
When I go to Insert/Update My record I am not sure what the object type is.

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 24 Feb 2010, 05:22 AM
Hi Nathan,

When in browser mode, GridNumericColumn looks and behaves like a standard GridBoundColumn. But in edit mode, it displays a RadNumericTextBox control. This column type is for numeric values. Typecast the control as RadNumericTextBox to access it.

VB:
 
Dim textbox As RadNumericTextBox = DirectCast(editItem("NumericColumn").Controls(0), RadNumericTextBox) 
Response.Write(textbox.Text) 
 

-Shinu




Tags
Grid
Asked by
Nathan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or