DropDownList find

2 posts, 0 answers
  1. Mohamad Javad
    Mohamad Javad avatar
    39 posts
    Member since:
    Jul 2014

    Posted 11 Nov 2014 Link to this post


    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.

  2. Pavlina
    Pavlina avatar
    6167 posts

    Posted 12 Nov 2014 Link to this post


    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:


    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.

Back to Top