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: docs/grid/usage.md
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -345,21 +345,13 @@ grid.data.sort({
345
345
The described functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
346
346
:::
347
347
348
-
You can sort Grid by multiple columns simultaneously. The multi-sorting ability is enabled by default. If you need to disable it, set the [`multiSort`](grid/api/grid_multisort_config.md) Grid property to *false*.
348
+
You can sort Grid by multiple columns simultaneously.
349
349
350
-
~~~jsx
351
-
constgrid=newdhx.Grid("grid_container", {
352
-
columns: [
353
-
// columns config
354
-
],
355
-
multiSort:false,
356
-
data: dataset
357
-
});
358
-
~~~
350
+

359
351
360
352
**Related sample**: [Grid. Sorting by multiple columns (multisorting)](https://snippet.dhtmlx.com/4ej0i3qi)
361
353
362
-
It is also possible to apply multi-sorting to [the grouped data](grid/usage.md#grouping-data). Check the example below:
354
+
Multi-sorting is enabled on initialization of the component. In the example below Grid data is sorted with the help of the `sort()` method of [DataCollection](data_collection.md) by several columns:
Copy file name to clipboardExpand all lines: docs/integration/suite_and_backend.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,27 +8,25 @@ description: You can explore how to connect DHTMLX Suite to a backend. Browse de
8
8
9
9

10
10
11
-
DHTMLX Suite 9 or DHTMLX components don't have any special requirements for the backend. They can be easily connected with any backend platform which supports the REST API (RESTful API).
11
+
DHTMLX Suite 9 or DHTMLX components don't have any special requirements for the backend. They can be easily connected with any backend platform which supports the REST API (RESTful API). Besides, the DHTMLX library allows providing a [multi-user backend](#multiuser-real-time-updated-backend-save-method-getting-editing-deleting-and-sending-data) for any Suite component.
12
12
13
-
The DHTMLX library includes the [DataCollection](/data_collection/) helper that completely supports REST API for dealing with the backend.
13
+
The DHTMLX library includes the [DataCollection](/data_collection/) helper that completely supports REST API for dealing with the backend. Thus, to transfer data from your backend to the Suite components, all you need to do is create a valid JSON dataset. You can load it into the component using the [load()](/data_collection/api/datacollection_load_method/) method of DataCollection.
14
14
15
-
Thus, to transfer data from your backend to the Suite components, all you need to do is create a valid JSON dataset. You can load it into the component using the [load()](/data_collection/api/datacollection_load_method/) method of DataCollection.
16
15
17
-
Besides, the DHTMLX library allows providing a [multi-user backend](#multi-user-backend-for-suite-widgets) for any Suite component.
18
16
19
17
## Examples of using DHTMLX Suite widgets with Node.js
20
18
21
-
Let's have an overview of the examples.
22
-
23
19
:::info
24
20
Download and take a look at the [Examples of using DHTMLX Suite widgets with Node.js](https://github.com/DHTMLX/nodejs-suite-demo).
25
21
:::
26
22
27
-
Here you can find 11 interactive samples. Follow the instructions in the README.md file to run the examples.
23
+
Here you can find 12 interactive samples. Follow the instructions in the README.md file to run the examples.
28
24
29
25
You can easily modify any widget for your purposes and find out how it works.
30
26
27
+
:::tip note
31
28
Pay attention: the components of the demo work with one database. When editing data in one component, you affect data in other components.
29
+
:::
32
30
33
31
To reset the database, stop the server and delete the file with the `.sqlite` extension from the root directory of the project.
34
32
@@ -124,17 +122,17 @@ The following request methods are used in this example: `GET`, `PUT`, `POST`, `D
The example is created to show you how to save the changes made in data to the backend via the **save()** method of DataCollection.
125
+
The example is created to show you how to save the changes made in data to the backend via the `save()` method of DataCollection.
128
126
129
127
This example of Grid is visually the same as the previous one but the ways of adding and editing data in this example are developed in another way. For instance, after you click the "Add new card" button, an empty row will be added after the last row in the grid. Editing of any cell of the grid is implemented by double-clicking on the cell.
130
128
131
129
The following request methods are used in this example: `GET`, `PUT`, `POST`, `DELETE`.
132
130
133
-
##Multi-user backend for Suite widgets
131
+
### Multiuser (real-time updated) backend. Save method. Getting, editing, deleting, and sending data
134
132
135
-
You can create a multi-user (real-time updated) backend for Suite widgets. The backend can be implemented in any language and you can use any library to allow the client and the server sides interact via the WebSocket protocol.
133
+
This example shows how to implement a multi-user backend for Grid with the help of Node.js and the Faye library to provide live data updates.
136
134
137
-
There is an [example](https://github.com/DHTMLX/nodejs-suite-demo/blob/master/public/views/12_grid_with_form_multiuser.html) that shows a multi-user backend for Grid, implemented with the help of Node.js and the Faye library. You can provide live data updates for any Suite widget based on this example.
135
+
You can create a multi-user (real-time updated) backend for any Suite widget. The backend can be implemented in any language, and you can use any library that will allow the client and the server sides interact via the WebSocket protocol.
138
136
139
137
:::info
140
138
Download and take a look at the [Examples of using DHTMLX Suite widgets with Node.js](https://github.com/DHTMLX/nodejs-suite-demo).
Copy file name to clipboardExpand all lines: docs/whatsnew.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,24 +20,21 @@ This version brings some updates in the API methods. Check the [Migration](migra
20
20
21
21
### New functionality
22
22
23
-
#### Common features
24
-
25
-
-[Multi-user (live update) backend](integration/suite_and_backend.md#multi-user-backend-for-suite-widgets) for Suite widgets
26
-
27
23
#### Grid
28
24
29
25
-[Row expander](grid/configuration.md#row-expander) with the possibility to insert any Suite widget or HTML content (PRO version)
30
26
-[Multi-sorting](grid/usage.md#sorting-by-multiple-columns) functionality that allows sorting Grid by several columns (PRO version)
31
27
32
28
### Fixes
33
29
34
-
- DataCollection. The `sort()` method called without arguments doesn't reset the applied sorting
30
+
- DataCollection/TreeCollection. The `sort()` method called without arguments doesn't reset the applied sorting
35
31
- Grid. Falsy firing of data events on row drag-n-drop
36
32
- Toolbar. Menu wrong item positioning
37
33
- TreeCollection. The `restoreOrder()` method doesn't reset the applied sorting
38
34
39
35
### New samples
40
36
37
+
-[Multiuser (real-time updated) backend. Save method. Getting, editing, deleting, and sending data](https://github.com/DHTMLX/nodejs-suite-demo/blob/master/public/views/12_grid_with_form_multiuser.html)
41
38
-[Grid. Grouping and template in group headers](https://snippet.dhtmlx.com/dywmb6ec)
42
39
-[Grid. Search and highlight results](https://snippet.dhtmlx.com/p74701lu)
43
40
-[Grid. Hiding columns using header context menu](https://snippet.dhtmlx.com/ygfj3uo3)
@@ -2279,7 +2276,7 @@ Released on January 28, 2020
2279
2276
- The possibility [to set selection to multiple cells/rows of Grid](grid/usage.md#using-selection-api) via the `setCell()` method of the selection object
2280
2277
- New additional arrow keyboard shortcuts are added to [Keyboard navigation](grid/configuration.md#keyboard-navigation)
2281
2278
- The ability [to sort content of any Grid column by clicking on its header](grid/configuration.md#sortable-columns) via the [](grid/api/grid_sortable_config.md) property
2282
-
- The [](grid/api/grid_getsortingstate_method.md) method that [allows getting the current state of sorting data in Grid](grid/usage.md#getting-the-sorting-state) is added
2279
+
- The `getSortingState()` method that [allows getting the current state of sorting data in Grid](grid/usage.md#getting-the-sorting-state) is added
2283
2280
- The possibility [to check visibility of a column](grid/usage.md#checking-visibility-of-a-column) via the [](grid/api/grid_iscolumnhidden_method.md) method
2284
2281
- The ability to enable [dynamic loading of data in Grid](grid/data_loading.md#dynamic-loading)
2285
2282
- The [](grid/api/grid_afterkeydown_event.md) and [](grid/api/grid_beforekeydown_event.md) events are added
0 commit comments