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

upload a radtextbox from radcombobox

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 1
Kenneth asked on 11 Jan 2012, 08:02 AM
Help me Please.
hello
 I have a radgridview with editformtemplate in which I have a radcombobox multiplecolumns,I want to do is select a record and pass it to a data radtextbox with radcombobox. example:

RadcomboBoxItem = ID, ItemName, Price
RadtextBox = Price 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Jan 2012, 08:40 AM
Hello Kenneth,

Try the following code.
C#:
protected void combo_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
  RadComboBox combo = (RadComboBox)sender;
  GridEditableItem itm = (GridEditableItem)combo.NamingContainer;
  RadTextBox txt = (RadTextBox)itm.FindControl("RadTextBox1");
  txt.Text = combo.SelectedItem.Text;
}

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