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

PopupContainer opening position

2 Answers 114 Views
PopupEditor
This is a migrated thread and some comments may be shown as answers.
pierre-jean
Top achievements
Rank 1
Veteran
Iron
pierre-jean asked on 18 Dec 2020, 02:35 PM

Hello

is it posible to programmatically set the position of the popupcontainer at the opening event ?
I have not found anything about this in the documentation

and what is the allowautomaticscrolltocontrol property ?

Thanks in advance

Pierre-Jean

2 Answers, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 18 Dec 2020, 02:56 PM

Hello, Pierre-Jean,

In order to change programmatically the position of the RadPopupContainer, you can handle the PopupOpening event and cast the evet's arguments to RadPopupOpeningEventArgs. Thus, you can set the CustomLocation property to the pop up that is about to be shown. Please refer to the following code snippet:

private void RadPopupEditor1_PopupOpening(object sender, CancelEventArgs e)
{
    RadPopupOpeningEventArgs eventArgs = (RadPopupOpeningEventArgs)e;
    eventArgs.CustomLocation = new Point(100, 100);
}

AllowAutomaticScrollToControl property gets or sets a value indicating whether the focused control inside the RadScrollablePanel will be automatically scrolled into view when gaining focus.

I hope this information helps. If you have further questions please let me know.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
pierre-jean
Top achievements
Rank 1
Veteran
Iron
answered on 18 Dec 2020, 03:19 PM

Hello Nadya,

Thanks a lot this is exactely what I was looking for

Best Regards

Pierre-Jean

Tags
PopupEditor
Asked by
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Share this question
or