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

How do I fire what's fired on Window Resize?

3 Answers 70 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 31 Mar 2020, 03:33 PM
I’m loading stuff into the RadFileExplorer with both JavaScript and server-side code. My problem is sometime things are not visible until I resize my browsers window. So, some code that I want is fired upon the windows resize, I want to fire that code manually. So, my question is, what JavaScript code is being fired when I resize the window for the RadFileExplorer?

3 Answers, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 03 Apr 2020, 10:49 AM

Hi Richard,

You can force the redrawing of RadFileExplorer (which is done wen the browser is resized) by calling the control's repaint() method:

https://docs.telerik.com/devtools/aspnet-ajax/controls/fileexplorer/client-side-programming/overview

$find("RadFileExplorer1").repaint();

Regards,
Vessy
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Richard
Top achievements
Rank 1
answered on 06 Apr 2020, 05:15 PM
Thanks, that's what I was looking for.
0
Vessy
Telerik team
answered on 07 Apr 2020, 06:36 AM

Hi,

You are welcome, Richard :)

Regards,
Vessy
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
FileExplorer
Asked by
Richard
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Richard
Top achievements
Rank 1
Share this question
or