Genpact Cora Knowledge Center


How to Find Controls on the Client Side

Use these expression parameters in a form's view expressions.

Expression Parameters
@ncontainerReference to a naming container that has an expression.
@bcontainerReference to a binding container that has an expression.
@templateReference to the template (form view) that contains an expression
@pageReference to a page.

Code Sample

The following JavaScript code snippet demonstrates how to find a grid control using client side code, that has the ID Grid1, which sits inside a form with the ID Form1

<%@ Control %>
function pageLoad()
    var grid = $findByControlId("controlname");
    //put your logic here....
<sq:Form runat="server" ID="Form1">
        <sq:Grid runat="server" ID="Grid1">

<sq:Grid runat="server" ID="Grid1"></sq:Grid>