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

Two behaviour in the GridViewImage Column

5 Answers 122 Views
GridView
This is a migrated thread and some comments may be shown as answers.
kotu k
Top achievements
Rank 1
kotu k asked on 04 Apr 2011, 12:01 PM
Hi I am New to the Telerik,
    I am using Telerik Q2 SP1 Version for Winforms. I am facing one Problem in the GridView Image Column. See my Requirement bellow:

I have Rad GridView. with in the Grid View, am using One Image Column. Based on the bool value, The Image Column will show the Text with hyperlink ( Or Text with underscore) or Image. The Condition is if boolean Value is true, it show only Text with underscore. If boolean value is false, it will show image Only.

So, Could u please help me to achieve this one.

Thanks,
Kotu K

5 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 04 Apr 2011, 01:24 PM
Hello Kotu,

Before i can provide an example i would need you to answer the following question:
Do you need a hyperlink so that if the user clicks that it should do something or just underlined text?

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
kotu k
Top achievements
Rank 1
answered on 06 Apr 2011, 07:48 PM
Hi Varga, Thanks for u replay.

Clearly i will explain my requirements once again..... I have one Boolean condition. if boolean value is true, i will show text in Hyperlink format of GridView Image Colum. If boolean value is false, i will show image in the same GridView Image Column.

Thanks,
Kotu K
0
Emanuel Varga
Top achievements
Rank 1
answered on 06 Apr 2011, 08:27 PM
Hello again Kotu,

I guess i haven't made myself clear, do you need an action to be performed when you click the link or just underlined text?
Please let me know as fast as possible and i will provide you with a solution.

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Svett
Telerik team
answered on 07 Apr 2011, 09:38 AM
Hello Kotu,

You can use the CellFormatting event to customize the GridCellElement's appearance. You can read more about that in this documentation article.

All the best,
Svett
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
kotu k
Top achievements
Rank 1
answered on 07 Apr 2011, 01:58 PM
Hi Varga, Thanks for u replay

    Yes, If i click the Hyperlink i will navigates to the some other Form and If i click the Image column i will remove the Row from the Grid.

Thanks,
Kotu K
Tags
GridView
Asked by
kotu k
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
kotu k
Top achievements
Rank 1
Svett
Telerik team
Share this question
or