Please note: In an effort to better serve you, we are in the process of restructuring DevCenter. In the process, we have moved many items that you may be used to finding in DevCenter over to the Main Site. If you are having trouble locating something, please try looking at the following places:
Occasionally to change the aesthetic design of the web page, the developer would like to reposition the expansion indicator on the WebPanel. By default, the expansion indicator is displayed on the right side of the header. Unfortunately, the WebPanel does not provide a property to change its location. However, this can be accomplished using some simple JavaScript.
1) Add the follow JavaScript code into a Script block on the page:In Javascript:
2) As the WebPanel does not have a client-side initialization event, a client-side event that fires after the page has been properly loaded must be used. The client-side “onload” event of the Body tag can be used. Set the “onload” attribute of the Body tag to refer to the JavaScript function added in the previous step, similar to:In HTML:
In place of the JavaScript added in step 1, the following JavaScript function can be used to make the code slightly easier to read:In Javascript: