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
* Update grid-rows-text-ellipsis.md
In case you need to render all cells and do not want to do it column by column
* docs(grid): Apply custom column and row styles to separate Grid instances
---------
Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com>
Copy file name to clipboardexpand all lines: knowledge-base/grid-rows-text-ellipsis.md
+41-16
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,14 @@ You might still want to allow the user to see the whole content, so you can enab
35
35
36
36
37
37
````CSHTML
38
-
@*Use the OnCellRender event to pass a custom CSS class to the Grid column and prevent it from wrapping the text in multiple lines for the Notes column. Display the full content of the column in a separate Window component.*@
39
-
40
-
Resize Note column or double click on a row to see the product details
@*Use the OnCellRender event to pass a custom CSS class to the Grid column and prevent it from wrapping the text in multiple lines for the Notes column. Display the full content of the column in a separate Window component.
39
+
Use the OnRowRender event to set a custom CSS class to Grid rows.*@
40
+
41
+
Both Grids have column resizing enabled. Double click a row to see the full Notes value.
42
+
<br />
43
+
Ellipsis for the Notes column via OnCellRender.
44
+
<TelerikGrid Data="@MyData" Height="300px"
45
+
Pageable="true" Sortable="true"
45
46
Resizable="true" Reorderable="true"
46
47
OnRowDoubleClick="@OnRowDoubleClickHandler">
47
48
<GridColumns>
@@ -61,11 +62,30 @@ Resize Note column or double click on a row to see the product details
public IEnumerable<SampleData> MyData = Enumerable.Range(1, 30).Select(x => new SampleData
107
134
{
108
135
Id = x,
109
-
Name = "Employee " + x,
110
-
Team = "team " + x % 5,
136
+
Name = "Employee Name " + x,
137
+
Team = "Team Name " + x % 5,
111
138
Note = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has... ",
112
139
HireDate = DateTime.Now.AddDays(-x).Date
113
140
});
@@ -126,5 +153,3 @@ Resize Note column or double click on a row to see the product details
126
153
## See also
127
154
128
155
*[Knowledge-Base article: Long text in TreeList does not align with the corresponding level]({%slug treelist-longer-text-starts-from-root-level%})
0 commit comments