# Wijmo_Grid.Datamap

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								DataMap Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Represents a data map for use with a column's <a href="wijmo_grid.column.html#datamap">Column.dataMap</a> property.</p>
								</div>
								<p>Data maps provide the grid with automatic look up capabilities. For example,
									you may want to display a customer name instead of his ID, or a color name
								instead of its RGB value.</p>
								<p>The code below binds a grid to a collection of products, then assigns a
									<a href="wijmo_grid.datamap.html">DataMap</a> to the grid's 'CategoryID' column so the grid displays the
								category names rather than the raw IDs.</p>
								<p>The grid takes advantage of data maps also for editing. If the <b>wijmo.input</b>
									module is loaded, then when editing data-mapped columns the grid will show
								a drop-down list containing the values on the map.</p>
								<pre><code class="language-typescript"><span class="hljs-keyword">import</span> { FlexGrid, Column } <span class="hljs-keyword">from</span> <span class="hljs-string">'@mescius/wijmo.grid'</span>;

<span class="hljs-comment">// bind grid to products</span>
<span class="hljs-keyword">let</span> flex = <span class="hljs-keyword">new</span> FlexGrid({
    itemsSource: products
});

<span class="hljs-comment">// map CategoryID column to show category name instead of ID</span>
<span class="hljs-keyword">let</span> col = flex.getColumn(<span class="hljs-string">'CategoryID'</span>);
col.dataMap = <span class="hljs-keyword">new</span> DataMap(categories, <span class="hljs-string">'CategoryID'</span>, <span class="hljs-string">'CategoryName'</span>);</code></pre>
								<p>In general, data maps apply to whole columns. However, there are situations
									where you may want to restrict the options available for a cell based on a
									value on a different column. For example, if you have "Country" and "City"
									columns, you will probably want to restrict the cities based on the current
								country.</p>
								<p>There are two ways you can implement these "dynamic" data maps:</p>
								<ol>
									<li>
										If the <a href="wijmo_grid.datamap.html">DataMap</a> is just a list of strings, you can change it before
										the grid enters edit mode. In this case, the cells contain the string
										being displayed, and changing the map won't affect other cells in the
										same column.
										This fiddle demonstrates:
										<a href="https://jsfiddle.net/Wijmo5/8brL80r8/">show me</a>.
									</li>
									<li>
										If the <a href="wijmo_grid.datamap.html">DataMap</a> is a real map (stores key values in the cells, shows
										a corresponding string), then you can apply a filter to restrict the
										values shown in the drop-down. The <a href="wijmo_grid.datamap.html">DataMap</a> will still contain the
										same keys and values, so other cells in the same column won't be disturbed
										by the filter.
										This fiddle demonstrates:
										<a href="https://jsfiddle.net/Wijmo5/xborLd4t/">show me</a>.
									</li>
								</ol>
								<p>In some cases, you may want to create a <a href="wijmo_grid.datamap.html">DataMap</a> to represent an enumeration.
								This can be done with the following code:</p>
								<pre><code class="language-typescript"><span class="hljs-comment">// build a DataMap for a given enum</span>
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">getDataMap</span>(<span class="hljs-params">enumClass</span>) </span>{
    <span class="hljs-keyword">let</span> pairs = [];
    <span class="hljs-keyword">for</span> (<span class="hljs-keyword">let</span> key <span class="hljs-keyword">in</span> enumClass) {
        <span class="hljs-keyword">var</span> val = <span class="hljs-built_in">parseInt</span>(key);
        <span class="hljs-keyword">if</span> (!<span class="hljs-built_in">isNaN</span>(val)) {
            pairs.push({ key: val, name: enumClass[val] });
        }
    }
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> DataMap(pairs, <span class="hljs-string">'key'</span>, <span class="hljs-string">'name'</span>);
}</code></pre>
								<p>DataMap can treat keys in two different ways, this functionality is controlled by the
									<a href="wijmo_grid.datamap.html#serializekeys">serializeKeys</a> property. By default, key values are converted to strings before
									processing, that is different values will produce the same key value if their string
									representations are equal. This is usually the preferred behavior. You maw need to change
									this mode if your keys are complex objects or arrays of complex objects. See the
								<a href="wijmo_grid.datamap.html#serializekeys">serializeKeys</a> property documentation for more details.</p>
							</div>
						</section>
						<section class="tsd-type-parameters">
							<h3>Type parameters</h3>
							<ul class="tsd-type-parameters">
								<li>
									<h4>K</h4>
								</li>
								<li>
									<h4>V</h4>
								</li>
								<li>
									<h4>T</h4>
								</li>
							</ul>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="target">DataMap</span>
								</li>
							</ul>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Constructors
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#constructor" class="tsd-kind-icon">constructor</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Properties
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#collectionview" class="tsd-kind-icon">collection<wbr>View</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#displaymemberpath" class="tsd-kind-icon">display<wbr>Member<wbr>Path</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#iseditable" class="tsd-kind-icon">is<wbr>Editable</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#search" class="tsd-kind-icon">search</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#selectedvaluepath" class="tsd-kind-icon">selected<wbr>Value<wbr>Path</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#serializekeys" class="tsd-kind-icon">serialize<wbr>Keys</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#sortbydisplayvalues" class="tsd-kind-icon">sort<wbr>ByDisplay<wbr>Values</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#usefilter" class="tsd-kind-icon">use<wbr>Filter</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Methods
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#getdataitem" class="tsd-kind-icon">get<wbr>Data<wbr>Item</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#getdisplayvalue" class="tsd-kind-icon">get<wbr>Display<wbr>Value</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#getdisplayvalues" class="tsd-kind-icon">get<wbr>Display<wbr>Values</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#getfiltereditems" class="tsd-kind-icon">get<wbr>Filtered<wbr>Items</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#getkeyvalue" class="tsd-kind-icon">get<wbr>Key<wbr>Value</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#getkeyvalues" class="tsd-kind-icon">get<wbr>Key<wbr>Values</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#onmapchanged" class="tsd-kind-icon">on<wbr>Map<wbr>Changed</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Events
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-event tsd-parent-kind-class"><a href="wijmo_grid.datamap.html#mapchanged" class="tsd-kind-icon">map<wbr>Changed</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Constructors</h2>
							<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
								<a name="constructor" class="tsd-anchor"></a>
								<h3>constructor</h3>
								<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">new <wbr>Data<wbr>Map<span class="tsd-signature-symbol">(</span>itemsSource<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, selectedValuePath<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, displayMemberPath<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo_grid.datamap.html" class="tsd-signature-type">DataMap</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Initializes a new instance of the <a href="wijmo_grid.datamap.html">DataMap</a> class.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>itemsSource: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>An array or <a href="../interfaces/wijmo.icollectionview.html">ICollectionView</a> that contains the items to map.</p>
													</div>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> selectedValuePath: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>The name of the property that contains the keys (data values).</p>
													</div>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> displayMemberPath: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>The name of the property to use as the visual representation of the items.</p>
													</div>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo_grid.datamap.html" class="tsd-signature-type">DataMap</a></h4>
									</li>
								</ul>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Properties</h2>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="collectionview" class="tsd-anchor"></a>
								<h3>collectionView</h3>
								<div class="tsd-signature tsd-kind-icon">collection<wbr>View<span class="tsd-signature-symbol">:</span> <a href="../interfaces/wijmo.icollectionview.html" class="tsd-signature-type">ICollectionView</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets the <a href="../interfaces/wijmo.icollectionview.html">ICollectionView</a> object that contains the map data.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="displaymemberpath" class="tsd-anchor"></a>
								<h3>displayMemberPath</h3>
								<div class="tsd-signature tsd-kind-icon">display<wbr>Member<wbr>Path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets the name of the property to use as the visual representation of the item.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="iseditable" class="tsd-anchor"></a>
								<h3>isEditable</h3>
								<div class="tsd-signature tsd-kind-icon">is<wbr>Editable<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a value that indicates whether users should be allowed to enter
										values that are not present on the <a href="wijmo_grid.datamap.html">DataMap</a>.</p>
									</div>
									<p>In order for a <a href="wijmo_grid.datamap.html">DataMap</a> to be editable, the <a href="wijmo_grid.datamap.html#selectedvaluepath">selectedValuePath</a> and
									<a href="wijmo_grid.datamap.html#displaymemberpath">displayMemberPath</a> must be set to the same value.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="search" class="tsd-anchor"></a>
								<h3>search</h3>
								<div class="tsd-signature tsd-kind-icon">search<span class="tsd-signature-symbol">:</span> <a href="../modules/wijmo_grid.html#itextsearch" class="tsd-signature-type">ITextSearch</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">undefined</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a callback used to determine if a display value matches a search string
										typed by a user in the data map combo-box.</p>
									</div>
									<p>If the callback is not specified, search is performed based on the
										<a href="wijmo_grid.flexgrid.html#casesensitivesearch">FlexGrid.caseSensitiveSearch</a> property value. By specifying this function,
									you can provide an arbitrary logic to determine a matching value.</p>
									<p>If the callback is specified, it's called for each data map's lookup list value, until
									it returns true for the matched text.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="selectedvaluepath" class="tsd-anchor"></a>
								<h3>selectedValuePath</h3>
								<div class="tsd-signature tsd-kind-icon">selected<wbr>Value<wbr>Path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets the name of the property to use as a key for the item (data value).</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="serializekeys" class="tsd-anchor"></a>
								<h3>serializeKeys</h3>
								<div class="tsd-signature tsd-kind-icon">serialize<wbr>Keys<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a value indicating whether key values are converted to strings before use.</p>
									</div>
									<p>The default value is true.</p>
									<p>This property is set to true by default, which means that for example the keys 123 (number) and
										‘123’ (string), two Date objects defining the same date/time, and two different arrays of
									primitive values (like [1,2,3]), are treated as the equal key pairs and mapped to the same value.</p>
									<p>If to set this property to false, the keys equality will be determined as in the native Map class,
										that is using the triple-equality (===) operator. This mode is useful if your keys are objects
										or arrays of objects.
										Note that in this case DataMap uses the native browser’s Map implementation. Some old mobile
										browsers, as well as IE9/10, don’t implement the Map interface. In this case DataMap will use
										its own array based implementation, which can bring serious performance penalties in case
									of big data arrays.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="sortbydisplayvalues" class="tsd-anchor"></a>
								<h3>sortByDisplayValues</h3>
								<div class="tsd-signature tsd-kind-icon">sort<wbr>ByDisplay<wbr>Values<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a value that determines whether grid controls should
											use mapped (display) or raw (key) values when sorting data in columns
										that use this <a href="wijmo_grid.datamap.html">DataMap</a>.</p>
									</div>
									<p>The default value for this property is <b>true</b>.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="usefilter" class="tsd-anchor"></a>
								<h3>useFilter</h3>
								<div class="tsd-signature tsd-kind-icon">use<wbr>Filter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets a value that determines whether the <a href="wijmo_grid.datamap.html">DataMap</a> allows filter by items instead of display values.</p>
									</div>
									<p>The default value for this property is <b>false</b>.</p>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Methods</h2>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="getdataitem" class="tsd-anchor"></a>
								<h3>getDataItem</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">get<wbr>Data<wbr>Item<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">V</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets the item that corresponds to a given key.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>key: <span class="tsd-signature-type">K</span></h5>
												<div class="tsd-comment">
													<p>The key of the item to retrieve.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">V</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="getdisplayvalue" class="tsd-anchor"></a>
								<h3>getDisplayValue</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">get<wbr>Display<wbr>Value<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets the display value that corresponds to a given key.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>key: <span class="tsd-signature-type">K</span></h5>
												<div class="tsd-comment">
													<p>The key of the item to retrieve.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="getdisplayvalues" class="tsd-anchor"></a>
								<h3>getDisplayValues</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">get<wbr>Display<wbr>Values<span class="tsd-signature-symbol">(</span>dataItem<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">V</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets an array with all of the display values on the map.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> dataItem: <span class="tsd-signature-type">V</span></h5>
												<div class="tsd-comment">
													<p>Data item for which to get the display items.
														This parameter is optional. If not provided, all possible display
													values should be returned.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="getfiltereditems" class="tsd-anchor"></a>
								<h3>getFilteredItems</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">get<wbr>Filtered<wbr>Items<span class="tsd-signature-symbol">(</span>dataItem<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">V</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets an array with all of the items that is filtered.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> dataItem: <span class="tsd-signature-type">V</span></h5>
												<div class="tsd-comment">
													<p>Data item for which to filter.
														This parameter is optional. If not provided, all items of the collection view
													should be returned.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="getkeyvalue" class="tsd-anchor"></a>
								<h3>getKeyValue</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">get<wbr>Key<wbr>Value<span class="tsd-signature-symbol">(</span>displayValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, html<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets the key that corresponds to a given display value.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>displayValue: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>The display value of the item to retrieve.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> html: <span class="tsd-signature-type">boolean</span></h5>
												<div class="tsd-comment">
													<p>Whether to convert the lookup values from HTML to plain text.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">K</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="getkeyvalues" class="tsd-anchor"></a>
								<h3>getKeyValues</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">get<wbr>Key<wbr>Values<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">[]</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets an array with all of the keys on the map.</p>
											</div>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">[]</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="onmapchanged" class="tsd-anchor"></a>
								<h3>onMapChanged</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">on<wbr>Map<wbr>Changed<span class="tsd-signature-symbol">(</span>e<span class="tsd-signature-symbol">?: </span><a href="wijmo.eventargs.html" class="tsd-signature-type">EventArgs</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Raises the <a href="wijmo_grid.datamap.html#mapchanged">mapChanged</a> event.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> e: <a href="wijmo.eventargs.html" class="tsd-signature-type">EventArgs</a></h5>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Events</h2>
							<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class">
								<a name="mapchanged" class="tsd-anchor"></a>
								<h3>mapChanged</h3>
								<div class="tsd-signature tsd-kind-icon">map<wbr>Changed<span class="tsd-signature-symbol">:</span> <a href="wijmo.event.html" class="tsd-signature-type">Event</a><span class="tsd-signature-symbol">&lt;</span><a href="wijmo_grid.datamap.html" class="tsd-signature-type">DataMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">, </span><a href="wijmo.eventargs.html" class="tsd-signature-type">EventArgs</a><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Occurs when the map data changes.</p>
									</div>
								</div>
							</section>
						</section>
					</div>