get DropDownTree

4 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, DropDownTree 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,

    Go through the article below for more information about accessing controls in RadListView control:
    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
  4. Mohamad Javad
    Mohamad Javad avatar
    39 posts
    Member since:
    Jul 2014

    Posted 16 Nov 2014 in reply to Pavlina Link to this post

    hi



    my normal view form have textbox with text(for example text box have
    this text > "Nice") ,  when i press the edit button, I have need, to
    add some text( for example add > "Re: ") to texbox.

    also need add  row number ,add to the textbox .

    in otherwise the texbox befor edite="nice"

    and after press edit="Re: nice"+ row number





    when i set value to propertice in RadListView1_PreRender or RadListView1_ItemCreated , give error



    for example when i set :

       protected void RadListView1_ItemCreated(object sender, RadListViewItemEventArgs e)

        {

        if (e.Item is RadListViewEditableItem && e.Item.IsInEditMode)

            {

             

                RadEditor txtEditor = e.Item.FindControl("txtEditor") as RadEditor;



               txtEditor.Content += "Re: " + txtEditor.Content ;



            }

    }





    or

     protected void RadListView1_PreRender(object sender, EventArgs e)

        {



            RadEditor txtEditor = RadListView1.FindControl("txtEditor") as RadEditor;



            txtEditor.Content += "Re: " + txtEditor.Content;

    }



    give Error.



    please Help Me
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 19 Nov 2014 Link to this post

    Hello,

    What is the error you received? Did you try using ItemDataBound instead of ItemCreated and what is the result?

    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.

     
Back to Top