1 Answer, 1 is accepted
Hello, Atfat,
Thank you for your interest in our brand new RadStepProgressBar control. By default, it offers tooltips. More information is available in the following help article:https://docs.telerik.com/devtools/winforms/controls/track-and-status-controls/stepprogressbar/features/tooltip
if you want to show a callout instead of a tooltip, you may follow the getting started experience how to show a RadCallout for the different steps:
https://docs.telerik.com/devtools/winforms/controls/callout/getting-started
I have prepared a sample code snippet for your reference which result is illustrated in the gif file. Note that this is just a sample approach and it may not cover all possible cases. Feel free to modify and extend it in a way which suits your requirements best:
public RadForm1()
{
InitializeComponent();
foreach (StepProgressItem item in this.radStepProgressBar1.Steps)
{
item.MouseEnter += item_MouseEnter;
}
}
private void item_MouseEnter(object sender, EventArgs e)
{
if (this.radCallout1.CalloutForm.Visible)
{
this.radCallout1.Close();
}
this.radCallout1.Show(sender as StepProgressItem);
}
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hello,
Thank you Dess for your quick response but i still have an error; i am using vb.net instead of C#
please can you help me what's wrong in my code and how i can solve this problem
find the attachment code file and the error reproduced....
thanks in advance for disturbing you
Hello, Atfat,
I would recommend you to use our free online converter for converting C# to VB.NET and vice versa: https://converter.telerik.com/
Subscribing to events in VB.NET requires either the AddHandler or Handles keyword:
Hello Dess ,
Thank you very match it is working properly
i have only a small question please
is there any way to display the callout only when a mouse is over the circle representing the step.
thank you again for ur interesting.
Hi, Atfat,
If you want to show the callout only for the circle, feel free to use the following updated code snippet:
public RadForm1()
{
InitializeComponent();
foreach (StepProgressItem item in this.radStepProgressBar1.Steps)
{
item.StepIndicator.MouseEnter += StepIndicator_MouseEnter;
}
}
private void StepIndicator_MouseEnter(object sender, EventArgs e)
{
if (this.radCallout1.CalloutForm.Visible)
{
this.radCallout1.Close();
}
this.radCallout1.Show(sender as StepItemIndicatorElement);
}
Hello Dess,
Thank you very very much, It working properly
Regards