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

    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
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 12 Nov 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top