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

Modify DragResize Visual Cue

2 Answers 25 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 06 Feb 2014, 05:01 PM
I'm trying to modify the content displayed in the tooltip when you are dragging or resizing an event in the gantt.

Here is what I've added, but it doesn't have any affect.

<Style TargetType="gantt:GanttDragResizeVisualCue">
      <Setter Property="Template">
          <Setter.Value>
              <ControlTemplate TargetType="gantt:GanttDragResizeVisualCue">
                  <Grid>
                      <TextBlock Text="Hello world!" />
                  </Grid>
              </ControlTemplate>
          </Setter.Value>
      </Setter>
  </Style>

2 Answers, 1 is accepted

Sort by
0
Ildar
Top achievements
Rank 1
answered on 11 Feb 2014, 07:38 AM
I have the same problem
1
Polya
Telerik team
answered on 11 Feb 2014, 12:08 PM
Hello,

Justin Lee is on the right direction - the style we need to modify in order to change the content displayed in the tool tip when dragging or resizing an event in the RadGanttView is the GanttDragResizeVisualCueStyle. However in order to achieve this we need to change the DragTemplate and the ResizeTemplate of this style.

Please find attached a sample project demonstrating this customizations. What I did is to modify these templates and style to display only the Title of a GanttTask when dragging or resizing. Please note that this project uses implicit styles.

Hopefully this helps. Should you have any other problems or concerns do not hesitate to contact us again.


Regards,
Polya
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
GanttView
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Ildar
Top achievements
Rank 1
Polya
Telerik team
Share this question
or