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

[Solved] how to invisible a button control inside the gridview column

6 Answers 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Senthil S
Top achievements
Rank 1
Senthil S asked on 01 Sep 2009, 04:25 AM
hi,


I have a gridview,in one of the column i have placed a button control.

my scenorio is, i have to invisible the button for certain conditons................

how to do that?

(i m using Telerik Gridview (SIlverlight))


6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Sep 2009, 05:21 AM
Hi Senthil S,

You can use Loaded event of this button to change the button visibility. Just cast the sender argument to Button and use DataContext property if your condition is data related.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Senthil S
Top achievements
Rank 1
answered on 01 Sep 2009, 05:53 AM
Hi Vlad,

  Thanks a lot for the response. 


  my scenorio is, i have to invisible the button inside the Gridview column for certain conditons

  If possible could you please provide me working sample on this.

Thanks & Kind Regards
Senthil
0
Vlad
Telerik team
answered on 01 Sep 2009, 06:05 AM
Hello Senthil S,

As I said in my previous reply all you need to do is to declare Loaded event for this button and use the button DataContext - do you have any problems to do this?

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Senthil S
Top achievements
Rank 1
answered on 01 Sep 2009, 06:12 AM
Hi Vlad,

   I am new to telerik. Ifpossible can you please send me some sample code on this.

Regards
Senthil
0
Accepted
Vlad
Telerik team
answered on 01 Sep 2009, 06:58 AM
Hi Senthil,

I've attached an example project to demonstrate you how to achieve this.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Senthil S
Top achievements
Rank 1
answered on 01 Sep 2009, 08:17 AM
Thanks a lot vlad..........it works..............
Tags
GridView
Asked by
Senthil S
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Senthil S
Top achievements
Rank 1
Share this question
or