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

Make update in row then the update link button disappear

3 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mohamed El-Sayed
Top achievements
Rank 1
Mohamed El-Sayed asked on 11 Mar 2013, 01:24 PM
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 .
             

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Mar 2013, 06:56 AM
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
0
Mohamed El-Sayed
Top achievements
Rank 1
answered on 12 Mar 2013, 07:44 AM
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

0
Kostadin
Telerik team
answered on 14 Mar 2013, 09:45 AM
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.
Tags
Grid
Asked by
Mohamed El-Sayed
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Mohamed El-Sayed
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or