12.07.2015 Views

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GridAttributeonclickcolumnonclickrowOnCreateDataSetondblclickondrawcelloneditcellonnotifyViewDescriptionClient-side JavaScript expression that is executed whenever the user clicks on acolumn header cell (at the top of a column).Client-side JavaScript expression that is executed whenever the user clicks on a rowheader cell (at the left of a row).The OnCreateDataSet value is the name of a server-side callback method that providesthe data set associated with this . For details, see the section “Data Set.”Client-side JavaScript expression that is executed whenever the user double-clickson the .Client-side JavaScript expression that is executed when the is about todraw a cell. If this event handler returns a value, this value is used as DHTML to renderthe cell contents. This convention provides a way to display custom cell formattingwithin a .Client-side JavaScript expression that is executed when the is ready toaccept user input in one of its cells. If the oneditcell event handler returns a value, thisvalue is used as DHTML to render the editor used for the cell. oneditcell provides away to display a custom cell editor within a . The default behavior is toplace an HTML input control over that region of the grid to permit the user to enterdata. There is no need to override this default, but you may.This attribute applies if the is associated with a data controller. TheonnotifyView value is a client-side JavaScript expression that is executed each timethe data controller connected to this raises an event. Generally thisexpression invokes a client-side JavaScript method defined in the page class. Thismethod becomes the “onnotifyView event handler” for the . See thechapter “Model View Controller.”When providing a value for this attribute, use double quotes to enclose the value andsingle quotes (if needed) within the JavaScript expression. For example:The JavaScript expression may contain <strong>Zen</strong> #()# runtime expressions.onselectcellrowLabelWidthscrollIntoViewClient-side JavaScript expression that is executed whenever the user navigates to anew cell.The current cell row and column numbers are updated before the onselectcellcall is made. The event handler is passed two variables, row and col, which containthe 1-based row and column number of the current cell.rowLabelWidth applies to the column of row labels. You must specify rowLabelWidthin pixels, for example 75px. The default is 100px.For further details, see the “ Layout” section following this table.If true, <strong>Zen</strong> uses the JavaScript scrollIntoView function to try and make visible thecurrently selected item within the grid.scrollIntoView has the underlying data type %ZEN.Datatype.boolean. It has the value"true" or "false" in XData Contents, 1 or 0 in server-side code, true or false in clientsidecode.<strong>Using</strong> <strong>Zen</strong> <strong>Components</strong> 147

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!