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

How to add an image to the task.

3 Answers 26 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 29 Sep 2016, 07:45 AM

Hi,

Please can you advise me on how to add an image to a task bar?

The idea is that each task may have some notes associated with it. These notes will provide instructions to the user on how to perform the task.

If the task does have notes associated with it, I would like to show an icon in the task bar The user will click the icon and a dialog containing notes will appear.

There is a sample that does have images in the RadGannt, however, the source is not complete. The RadGant mark-up makes reference to two GanntCustomFields called "Color" and "Manager".

Hopefully this is a simple requirement.

I have attached a mock-up that illustrates my requirement.

Kind regards

Rob

3 Answers, 1 is accepted

Sort by
0
Rob
Top achievements
Rank 1
answered on 03 Oct 2016, 07:08 AM

Here is an update. From the sample application, I can get an icon on the task bar. I have wired a client side click-event to the image. When I click the image, I need to get the task ID, so can display the notes for that task.

Thanks,

Rob

0
Rob
Top achievements
Rank 1
answered on 03 Oct 2016, 07:50 AM

It's okay, I have sorted it. On an image, I can wire a client-side event that gives an alert of the task ID when clicked.

See attached.

Thanks for your help.

Rob

0
Ivan Danchev
Telerik team
answered on 04 Oct 2016, 06:34 AM
Hello Rob,

We are glad you found the solution and thank you for posting it.

In the Client Templates demo you linked the task's background and images are connected to two custom task fields: Color and Manager respectively. The following article contains more information on how custom task fields can be added.

Regards,
Ivan Danchev
Telerik by Progress
Tags
Gantt
Asked by
Rob
Top achievements
Rank 1
Answers by
Rob
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or