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

DropDownList find

1 Answer 49 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Mohamad Javad
Top achievements
Rank 1
Iron
Mohamad Javad asked on 12 Nov 2014, 04:28 AM
hi

which find control for example, DropDownList or ....
, in RadListView1_ItemEditing



i try below code,but give error.







  protected void RadListView1_ItemEditing(object sender, RadListViewCommandEventArgs e)

    {

RadListViewEditableItem editedItem = (RadListViewEditableItem)e.ListViewItem;



 RadTextBox txtSubject =(RadTextBox)editedItem.FindControl("txtSubject");



txtSubject .Text="hi";



}

please help me.

thanks

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Nov 2014, 03:38 PM
Hello,

Did you try accessing a control in RadListView by handling ItemCreated event instead ItemEditing? If the RadListView item is in edit mode you should get reference to the respective RadListViewEditableItem instance and call the FindControl(controlId) method for it. More information about accessing controls in the listview control is available in the article below:
http://www.telerik.com/help/aspnet-ajax/listview-accessing-controls.html

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DropDownList
Asked by
Mohamad Javad
Top achievements
Rank 1
Iron
Answers by
Pavlina
Telerik team
Share this question
or