Make update in row then the update link button disappear

4 posts, 0 answers
  1. Mohamed El-Sayed
    Mohamed El-Sayed avatar
    33 posts
    Member since:
    Apr 2009

    Posted 11 Mar 2013 Link to this post

    i've a drop down list called  ("DropDownList4") i want to make check if it's contain value the edit button is disappeared if n\t it will appear to choose from it .
                 

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Mar 2013 Link to this post

    Hi,

    Try the following code to achieve your scenario.
    C#:
    protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e)
       {
           DropDownList ddl = (DropDownList)sender;
           GridDataItem item = (GridDataItem)ddl.NamingContainer;
           if (ddl.SelectedItem.Text == "text")
           {
               LinkButton link = (LinkButton)item["EditColumn"].Controls[0];
               link.Visible = false;
           }
       }

    Thanks,
    Princy
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mohamed El-Sayed
    Mohamed El-Sayed avatar
    33 posts
    Member since:
    Apr 2009

    Posted 12 Mar 2013 Link to this post

    No  Princy , it didn't work as i need , i will give u the way :
    1-i've rad grid
    2-i want to edit in row
    3-after i press in edit button,  the pop up edit mode appear
    4-i've to to edit in two cells ,  ok one of them contains drop down list
    5- i need to give the user just one time to edit only for every row
    6- for that i was thinking about how can i make the edit button appear infront of the row which didn't edit yet and disappear from the rest rows , for that i suggest to use the drop down list as checking if it contain any value the edit link button is disappear

  5. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 14 Mar 2013 Link to this post

    Hello Mohamed,

    You could find the answer of your question at the following forum post.

    Please note that opening multiple forum posts with the same issue makes tracking the tickets history very hard. In this regard, I suggest you to stick to the first forum thread. This will enable us to respond more quickly and efficiently to your posts.

    Greetings,
    Kostadin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top