stepprogreebar

1 Answer 55 Views
StepProgressBar
atfat
Top achievements
Rank 1
Iron
Iron
atfat asked on 21 Jan 2022, 05:40 PM

Hi

Is there any way to use callout instead of tooltiptext in radstepprogress control

if yes , can you give me a sample please

Best regards

Atfat

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Jan 2022, 12:54 PM

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.

atfat
Top achievements
Rank 1
Iron
Iron
commented on 25 Jan 2022, 04:35 PM

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

 

 

Dess | Tech Support Engineer, Principal
Telerik team
commented on 28 Jan 2022, 11:47 AM

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:

https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/events/#addhandler-and-removehandler 

Should you have further questions please let me know.
atfat
Top achievements
Rank 1
Iron
Iron
commented on 28 Jan 2022, 12:32 PM

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.

Dess | Tech Support Engineer, Principal
Telerik team
commented on 31 Jan 2022, 03:14 PM

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);
        }

atfat
Top achievements
Rank 1
Iron
Iron
commented on 01 Feb 2022, 09:51 AM

Hello Dess,

Thank you very very much, It working properly

Regards

Tags
StepProgressBar
Asked by
atfat
Top achievements
Rank 1
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or