You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/grid/EJ2_ASP.NETCORE/cell.md
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Displaying HTML content in a Grid can be useful in scenarios where you want to d
21
21
In the following example, the [EJ2 Toggle Switch Button](https://ej2.syncfusion.com/aspnetcore/documentation/switch/getting-started) component is added to enable and disable the `DisableHtmlEncode` property. When the switch is toggled, the [change](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Buttons.Switch.html#Syncfusion_EJ2_Buttons_Switch_Change) event is triggered and the `DisableHtmlEncode` property of the column is updated accordingly. The `refreshColumns` method is called to refresh the grid and display the updated content.
22
22
23
23
{% tabs %}
24
-
{% highlight tagHelper tabtitle="CSHTML" %}
24
+
{% highlight cshtml tabtitle="CSHTML" %}
25
25
{% include code-snippet/grid/cell/display-html-content/tagHelper %}
26
26
{% endhighlight %}
27
27
{% highlight c# tabtitle="Html.cs" %}
@@ -63,7 +63,8 @@ Grid provides the below three options for configuring:
63
63
64
64
The following example demonstrates how to set the `allowTextWrap` property to **true** and specify the wrap mode as **Content** by setting the `textWrapSettings.wrapMode` property. Also change the `textWrapSettings.wrapMode` property to **Content** and **Both** on changing the dropdown value using the [change](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.DropDowns.DropDownList.html#Syncfusion_EJ2_DropDowns_DropDownList_Change) event of the DropDownList component.
65
65
66
-
{% highlight tagHelper tabtitle="CSHTML" %}
66
+
{% tabs %}
67
+
{% highlight cshtml tabtitle="CSHTML" %}
67
68
{% include code-snippet/grid/cell/autowrap/tagHelper %}
68
69
{% endhighlight %}
69
70
{% highlight c# tabtitle="Autowrap.cs" %}
@@ -88,7 +89,7 @@ To customize the appearance of the grid cell, you can use the [queryCellInfo](ht
88
89
The following example demonstrates how to add a `queryCellInfo` event handler to the grid. In the event handler, checked whether the current column is **Freight** field and then applied the appropriate CSS class to the cell based on its value.
89
90
90
91
{% tabs %}
91
-
{% highlight tagHelper tabtitle="CSHTML" %}
92
+
{% highlight cshtml tabtitle="CSHTML" %}
92
93
{% include code-snippet/grid/cell/customize-cell-cs1/tagHelper %}
93
94
{% endhighlight %}
94
95
{% highlight c# tabtitle="Html.cs" %}
@@ -114,7 +115,7 @@ You can apply styles to the cells using CSS selectors. The Grid provides a class
114
115
The following example demonstrates how to customize the appearance of a specific row in the grid on selection using `className`.
115
116
116
117
{% tabs %}
117
-
{% highlight tagHelper tabtitle="CSHTML" %}
118
+
{% highlight cshtml tabtitle="CSHTML" %}
118
119
{% include code-snippet/grid/cell/customize-cell-cs2/tagHelper %}
119
120
{% endhighlight %}
120
121
{% highlight c# tabtitle="Html.cs" %}
@@ -144,7 +145,7 @@ Here, setting the `customAttributes` property of the **ShipCity** column to an o
144
145
The following example demonstrates how to customize the appearance of the **OrderID** and **ShipCity** columns using custom attributes.
145
146
146
147
{% tabs %}
147
-
{% highlight tagHelper tabtitle="CSHTML" %}
148
+
{% highlight cshtml tabtitle="CSHTML" %}
148
149
{% include code-snippet/grid/cell/customize-cell-cs3/tagHelper %}
149
150
{% endhighlight %}
150
151
{% highlight c# tabtitle="Html.cs" %}
@@ -167,7 +168,7 @@ The Grid provides below methods to customize the appearance of the grid columns
167
168
The following example demonstrates how to use getColumnHeaderByIndex and getCellFromIndex methods to customize the appearance of the **CustomerID** column header and specific cell inside the [dataBound](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Grids.Grid.html#Syncfusion_EJ2_Grids_Grid_DataBound) event of the grid.
168
169
169
170
{% tabs %}
170
-
{% highlight tagHelper tabtitle="CSHTML" %}
171
+
{% highlight cshtml tabtitle="CSHTML" %}
171
172
{% include code-snippet/grid/cell/customize-cell-cs4/tagHelper %}
172
173
{% endhighlight %}
173
174
{% highlight c# tabtitle="Html.cs" %}
@@ -289,10 +290,12 @@ The [GridLines](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Gri
289
290
The following example demonstrates how to set the `GridLines` property based on changing the dropdown value using the [Change](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.DropDowns.DropDownList.html#Syncfusion_EJ2_DropDowns_DropDownList_Change) event of the DropDownList component.
290
291
291
292
{% tabs %}
292
-
{% highlight tagHelper tabtitle="CSHTML" %}
293
+
{% highlight cshtml tabtitle="CSHTML" %}
293
294
{% include code-snippet/grid/cell/gridlines/tagHelper %}
294
295
{% endhighlight %}
295
296
{% highlight c# tabtitle="Gridlines.cs" %}
296
297
{% include code-snippet/grid/cell/gridlines/gridlines.cs %}
0 commit comments