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

Enabled/Disabled RadNumericTextBox Grid

2 Answers 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hugo
Top achievements
Rank 1
Hugo asked on 12 Apr 2012, 10:34 PM
Hi team,

I need you help, i need know how to enabled/Disabled a RadNumericTextBox1 in the grid but from c#????

rewards

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Apr 2012, 04:45 AM
Hello Hugo,

Try the following code to disable RadTextBox in ItemDataBound event.
C#:
protected void grid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
  if (e.Item is GridDataItem)
 {
  GridDataItem itm = (GridDataItem)e.Item;
  RadTextBox txt = (RadTextBox)itm.FindControl("RadTextBox1");
  txt.Enabled = false;
 }
}

Thanks,
Shinu.
0
Hugo
Top achievements
Rank 1
answered on 01 Jun 2012, 04:50 AM
Thank you for you help.!!!!!

I  finish.

Rewards.
Tags
Grid
Asked by
Hugo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Hugo
Top achievements
Rank 1
Share this question
or