Skip to content

Commit 64c5ffb

Browse files
896213: Documentation of Cells Topic
Signed-off-by: Nithya <Nithya.sivaprakasam@syncfusion.com>
1 parent 3100482 commit 64c5ffb

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

ej2-asp-core-mvc/grid/EJ2_ASP.NETCORE/cell.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Displaying HTML content in a Grid can be useful in scenarios where you want to d
2121
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.
2222

2323
{% tabs %}
24-
{% highlight tagHelper tabtitle="CSHTML" %}
24+
{% highlight cshtml tabtitle="CSHTML" %}
2525
{% include code-snippet/grid/cell/display-html-content/tagHelper %}
2626
{% endhighlight %}
2727
{% highlight c# tabtitle="Html.cs" %}
@@ -63,7 +63,8 @@ Grid provides the below three options for configuring:
6363

6464
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.
6565

66-
{% highlight tagHelper tabtitle="CSHTML" %}
66+
{% tabs %}
67+
{% highlight cshtml tabtitle="CSHTML" %}
6768
{% include code-snippet/grid/cell/autowrap/tagHelper %}
6869
{% endhighlight %}
6970
{% highlight c# tabtitle="Autowrap.cs" %}
@@ -88,7 +89,7 @@ To customize the appearance of the grid cell, you can use the [queryCellInfo](ht
8889
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.
8990

9091
{% tabs %}
91-
{% highlight tagHelper tabtitle="CSHTML" %}
92+
{% highlight cshtml tabtitle="CSHTML" %}
9293
{% include code-snippet/grid/cell/customize-cell-cs1/tagHelper %}
9394
{% endhighlight %}
9495
{% highlight c# tabtitle="Html.cs" %}
@@ -114,7 +115,7 @@ You can apply styles to the cells using CSS selectors. The Grid provides a class
114115
The following example demonstrates how to customize the appearance of a specific row in the grid on selection using `className`.
115116

116117
{% tabs %}
117-
{% highlight tagHelper tabtitle="CSHTML" %}
118+
{% highlight cshtml tabtitle="CSHTML" %}
118119
{% include code-snippet/grid/cell/customize-cell-cs2/tagHelper %}
119120
{% endhighlight %}
120121
{% highlight c# tabtitle="Html.cs" %}
@@ -144,7 +145,7 @@ Here, setting the `customAttributes` property of the **ShipCity** column to an o
144145
The following example demonstrates how to customize the appearance of the **OrderID** and **ShipCity** columns using custom attributes.
145146

146147
{% tabs %}
147-
{% highlight tagHelper tabtitle="CSHTML" %}
148+
{% highlight cshtml tabtitle="CSHTML" %}
148149
{% include code-snippet/grid/cell/customize-cell-cs3/tagHelper %}
149150
{% endhighlight %}
150151
{% highlight c# tabtitle="Html.cs" %}
@@ -167,7 +168,7 @@ The Grid provides below methods to customize the appearance of the grid columns
167168
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.
168169

169170
{% tabs %}
170-
{% highlight tagHelper tabtitle="CSHTML" %}
171+
{% highlight cshtml tabtitle="CSHTML" %}
171172
{% include code-snippet/grid/cell/customize-cell-cs4/tagHelper %}
172173
{% endhighlight %}
173174
{% highlight c# tabtitle="Html.cs" %}
@@ -289,10 +290,12 @@ The [GridLines](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Gri
289290
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.
290291

291292
{% tabs %}
292-
{% highlight tagHelper tabtitle="CSHTML" %}
293+
{% highlight cshtml tabtitle="CSHTML" %}
293294
{% include code-snippet/grid/cell/gridlines/tagHelper %}
294295
{% endhighlight %}
295296
{% highlight c# tabtitle="Gridlines.cs" %}
296297
{% include code-snippet/grid/cell/gridlines/gridlines.cs %}
297298
{% endhighlight %}
298-
{% endtabs %}
299+
{% endtabs %}
300+
301+
![Grid Lines](../images/cell/grid-lines.gif)
Loading

0 commit comments

Comments
 (0)