# Wijmo_Angular_Grid.Wjflexgrid

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								WjFlexGrid Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>AngularJS directive for the <a href="wijmo_grid.flexgrid.html">FlexGrid</a> control.</p>
								</div>
								<p>Use the <b>wj-flex-grid</b> directive to add grids to your AngularJS applications.
									Note that directive and parameter names must be formatted as lower-case with dashes
								instead of camel-case. For example:</p>
								<pre>&lt;p&gt;Here is a FlexGrid control:&lt;/p&gt;
&lt;wj-flex-grid items-source="data"&gt;
  &lt;wj-flex-grid-column
    header="Country"
    binding="country"&gt;
  &lt;/wj-flex-grid-column&gt;
  &lt;wj-flex-grid-column
    header="Sales"
    binding="sales"&gt;
  &lt;/wj-flex-grid-column&gt;
  &lt;wj-flex-grid-column
    header="Expenses"
    binding="expenses"&gt;
  &lt;/wj-flex-grid-column&gt;
  &lt;wj-flex-grid-column
    header="Downloads"
    binding="downloads"&gt;
  &lt;/wj-flex-grid-column&gt;
&lt;/wj-flex-grid&gt;</pre>
								<p>The example below creates a FlexGrid control and binds it to a 'data' array
									exposed by the controller. The grid has three columns, each corresponding to
								a property of the objects contained in the source array.</p>
								<p><a href="https://jsfiddle.net/Wijmo5/QNb9X/" target="_blank">Example</a></p>
								<p>The <b>wj-flex-grid</b> directive supports the following attributes:</p>
								<dl class="dl-horizontal">
									<dt>allow-add-new</dt>              <dd><code>@</code> A value indicating whether to show a new row
									template so users can add items to the source collection.</dd>
									<dt>allow-delete</dt>             <dd><code>@</code> A value indicating whether the grid deletes the
									selected rows when the Delete key is pressed.</dd>
									<dt>allow-dragging</dt>           <dd><code>@</code> An <a href="../enums/wijmo_grid.rowcolflags.html#allowdragging">AllowDragging</a> value indicating
									whether and how the user can drag rows and columns with the mouse.</dd>
									<dt>allow-merging</dt>            <dd><code>@</code> An <a href="../enums/wijmo_grid.rowcolflags.html#allowmerging">AllowMerging</a> value indicating
									which parts of the grid provide cell merging.</dd>
									<dt>allow-resizing</dt>           <dd><code>@</code> An <a href="../enums/wijmo_grid.rowcolflags.html#allowresizing">AllowResizing</a> value indicating
									whether users are allowed to resize rows and columns with the mouse.</dd>
									<dt>allow-sorting</dt>            <dd><code>@</code> A boolean value indicating whether users can sort
									columns by clicking the column headers.</dd>
									<dt>auto-generate-columns</dt>    <dd><code>@</code> A boolean value indicating whether the grid generates
									columns automatically based on the <b>items-source</b>.</dd>
									<dt>child-items-path</dt>         <dd><code>@</code> The name of the property used to generate
										child rows in hierarchical grids (or an array of property names if items
									at different hierarchical levels use different names for their child items).</dd>
									<dt>control</dt>                  <dd><code>=</code> A reference to the <a href="wijmo_grid.flexgrid.html">FlexGrid</a> control
									created by this directive.</dd>
									<dt>defer-resizing</dt>           <dd><code>=</code> A boolean value indicating whether row and column
									resizing should be deferred until the user releases the mouse button.</dd>
									<dt>frozen-columns</dt>           <dd><code>@</code> The number of frozen (non-scrollable) columns in the grid.</dd>
									<dt>frozen-rows</dt>              <dd><code>@</code> The number of frozen (non-scrollable) rows in the grid.</dd>
									<dt>group-header-format</dt>      <dd><code>@</code> The format string used to create the group
									header content.</dd>
									<dt>headers-visibility</dt>       <dd><code>=</code> A <a href="../enums/wijmo_grid.headersvisibility.html">HeadersVisibility</a> value
									indicating whether the row and column headers are visible. </dd>
									<dt>headers-focusibility</dt>     <dd><code>=</code> A <a href="../enums/wijmo_grid.headersfocusability.html">HeadersFocusability</a> value
									indicatinf whether the row and column headers are focusible. </dd>
									<dt>ime-enabled</dt>              <dd><code>@</code> Gets or sets a value that determines whether the grid should
									support Input Method Editors (IME) while not in edit mode.</dd>
									<dt>initialized</dt>              <dd><code>&amp;</code> This event occurs after the binding has finished
									initializing the control with attribute values.</dd>
									<dt>is-initialized</dt>           <dd><code>=</code> A value indicating whether the binding has finished
									initializing the control with attribute values. </dd>
									<dt>item-formatter</dt>           <dd><code>=</code> A function that customizes
									cells on this grid.</dd>
									<dt>items-source</dt>             <dd><code>=</code> An array or <a href="../interfaces/wijmo.icollectionview.html">ICollectionView</a> object that
									contains the items shown on the grid.</dd>
									<dt>is-read-only</dt>             <dd><code>@</code> A boolean value indicating whether the user is
									prevented from editing grid cells by typing into them.</dd>
									<dt>merge-manager</dt>            <dd><code>=</code> A <a href="wijmo_grid.mergemanager.html">MergeManager</a> object that specifies
									the merged extent of the specified cell.</dd>
									<dt>selection-mode</dt>           <dd><code>@</code> A <a href="../enums/wijmo_grid.selectionmode.html">SelectionMode</a> value
									indicating whether and how the user can select cells.</dd>
									<dt>show-groups</dt>              <dd><code>@</code> A boolean value indicating whether to insert group
									rows to delimit data groups.</dd>
									<dt>show-sort</dt>                <dd><code>@</code> A boolean value indicating whether to display sort
									indicators in the column headers.</dd>
									<dt>sort-row-index</dt>           <dd><code>@</code> A number specifying the index of row in the column
									header panel that shows and changes the current sort.</dd>
									<dt>tree-indent</dt>              <dd><code>@</code> The indentation, in pixels, used to offset row
									groups of different levels.</dd>
									<dt>beginning-edit</dt>           <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#beginningedit">FlexGrid.beginningEdit</a> event.</dd>
									<dt>cell-edit-ended</dt>          <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#celleditended">FlexGrid.cellEditEnded</a> event.</dd>
									<dt>cell-edit-ending</dt>         <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#celleditending">FlexGrid.cellEditEnding</a> event.</dd>
									<dt>prepare-cell-for-edit</dt>    <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#preparecellforedit">FlexGrid.prepareCellForEdit</a> event.</dd>
									<dt>resizing-column</dt>          <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#resizingcolumn">FlexGrid.resizingColumn</a> event.</dd>
									<dt>resized-column</dt>           <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#resizedcolumn">FlexGrid.resizedColumn</a> event.</dd>
									<dt>dragged-column</dt>           <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#draggedcolumn">FlexGrid.draggedColumn</a> event.</dd>
									<dt>dragging-column</dt>          <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#draggingcolumn">FlexGrid.draggingColumn</a> event.</dd>
									<dt>sorted-column</dt>            <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#sortedcolumn">FlexGrid.sortedColumn</a> event.</dd>
									<dt>sorting-column</dt>           <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#sortingcolumn">FlexGrid.sortingColumn</a> event.</dd>
									<dt>deleting-row</dt>             <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#deletingrow">FlexGrid.deletingRow</a> event.</dd>
									<dt>dragging-row</dt>             <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#draggingrow">FlexGrid.draggingRow</a> event.</dd>
									<dt>dragged-row</dt>              <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#draggedrow">FlexGrid.draggedRow</a> event.</dd>
									<dt>resizing-row</dt>             <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#resizingrow">FlexGrid.resizingRow</a> event.</dd>
									<dt>resized-row</dt>              <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#resizedrow">FlexGrid.resizedRow</a> event.</dd>
									<dt>row-added</dt>                <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#rowadded">FlexGrid.rowAdded</a> event.</dd>
									<dt>row-edit-ended</dt>           <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#roweditended">FlexGrid.rowEditEnded</a> event.</dd>
									<dt>row-edit-ending</dt>          <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#roweditending">FlexGrid.rowEditEnding</a> event.</dd>
									<dt>loaded-rows</dt>              <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#loadedrows">FlexGrid.loadedRows</a> event.</dd>
									<dt>loading-rows</dt>             <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#loadingrows">FlexGrid.loadingRows</a> event.</dd>
									<dt>group-collapsed-changed</dt>  <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#groupcollapsedchanged">FlexGrid.groupCollapsedChanged</a> event.</dd>
									<dt>group-collapsed-changing</dt> <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#groupcollapsedchanging">FlexGrid.groupCollapsedChanging</a> event.</dd>
									<dt>items-source-changed</dt>     <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#itemssourcechanged">FlexGrid.itemsSourceChanged</a> event.</dd>
									<dt>selection-changing</dt>       <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#selectionchanging">FlexGrid.selectionChanging</a> event.</dd>
									<dt>selection-changed</dt>        <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#selectionchanged">FlexGrid.selectionChanged</a> event.</dd>
									<dt>got-focus</dt>                <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#gotfocus">FlexGrid.gotFocus</a> event.</dd>
									<dt>lost-focus</dt>               <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#lostfocus">FlexGrid.lostFocus</a> event.</dd>
									<dt>scroll-position-changed</dt>  <dd><code>&amp;</code> Handler for the <a href="wijmo_grid.flexgrid.html#scrollpositionchanged">FlexGrid.scrollPositionChanged</a> event.</dd>
								</dl>
								<p>The <b>wj-flex-grid</b> directive may contain <a href="wijmo_angular_grid.wjflexgridcolumn.html">wijmo.angular.grid.WjFlexGridColumn</a>, <a href="wijmo_angular_grid.wjflexgridcelltemplate.html">wijmo.angular.grid.WjFlexGridCellTemplate</a> and
								<a href="wijmo_angular_grid_detail.wjflexgriddetail.html">wijmo.angular.grid.detail.WjFlexGridDetail</a> child directives.</p>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="tsd-signature-type">WjDirective</span>
									<ul class="tsd-hierarchy">
										<li>
											<span class="target">WjFlexGrid</span>
											<ul class="tsd-hierarchy">
												<li>
													<a href="wijmo_angular_grid_multirow.wjmultirow.html" class="tsd-signature-type">WjMultiRow</a>
												</li>
												<li>
													<a href="wijmo_angular_olap.wjpivotgrid.html" class="tsd-signature-type">WjPivotGrid</a>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
						</section>
					</div>