---
title: "Uploader.ViewChange Event ActiveX/Java Uploader "
canonical: https://www.aurigma.com/docs/us8/JA_E_Uploader_ViewChange.htm
product: "Upload Suite 8"
---

# Uploader.ViewChange Event ActiveX/Java Uploader 

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
This event fires when the view mode is changed.

## Syntax
 
```aspx-cs
<script type="text/javascript">
function Uploader1_ViewChange(pane){
    //...your code...
}
</script>
```

```
<aur:Uploader ID="Uploader1" runat="server">
    <ClientEvents>
        <aur:ClientEvent EventName="ViewChange" HandlerName="Uploader1_ViewChange" />
    </ClientEvents>
</aur:Uploader>
```
 
```
<script type="text/javascript">
function Uploader1_ViewChange(pane){
    //...your code...
}
</script>
```

```
<?php
    $Uploader = new Uploader("Uploader1");
    //...other params...
    $Uploader->getClientEvents()->setViewChange("Uploader1_ViewChange");
    //...other params...
    $Uploader->render();
?>
```
 
```
function Uploader1_ViewChange(pane){
    //...your code...
}
```

```
$au.uploader({
    events: {
        //...other params...
        viewChange: [Uploader1_ViewChange],
        //...other params...
    }
})
```
 
### Parameters
 
 - pane
     - Type: **String**
 
A member of this enumeration which specifies a pane where the view mode is changed:
 
| Value | Description |
| --- | --- |
| **FolderPane** | The folder pane. |
| **UploadPane** | The upload pane. |

## Remarks
 
Typically, you should use this event when it is necessary synchronize HTML user interface with view mode of ActiveX/Java Uploader. For example, if you add drop-down list which toggles view modes, this event enables you to update drop-down state if the view mode is changed through the context menu of the ActiveX/Java Uploader.

## See Also
 
### Reference
 
- ViewChange Property[ViewChange (PHP)](https://www.aurigma.com/docs/us8/JA_P_P_ClientEvents_ViewChange.htm.md)[viewChange (JavaScript)](https://www.aurigma.com/docs/us8/JA_P_J_$au_events_viewChange.htm.md)

### Manual
 
- [Layouts](https://www.aurigma.com/docs/us8/layouts.htm.md)
- [Using Events](https://www.aurigma.com/docs/us8/using-javascript-api.htm.md)
