Descripción general del portapapeles de Blazor Grid
Copy to clipboard operations are now available in the IgbGrid. This functionality provides a fast, easy and customizable way to copy data of the Blazor IgbGrid through the current multi cell data select. System Clipboard behavior gives the user ability to copy data from the IgbGrid into Excel or other external programs.
Blazor Grid Clipboard Example
Functionality
El comportamiento de copia funciona con la interacción predeterminada definida por el navegador y el sistema operativo. Así, para los comportamientos de copiar y pegar, estos son:
- Basado en Windows/Unix
- CTRL + C / CTRL + Ins como método abreviado de teclado
- CTRL + V / SHIFT + Ins como método abreviado de teclado
- Copiar acción a través del menú del navegador.
- Mac OS
- CMD + C como atajo de teclado
- CMD + V como atajo de teclado
- Copiar acción a través del menú del navegador.
Limitations
- Both the cut and copy events are not natively supported in Internet Explorer. The exception is the
paste event (IE 11) which is emitted but does not expose the
ClipboardDataproperty in the event.
[!Note] In order to copy cells in IE 11, you can use the keyboard selection. Hold the SHIFT key in order to make a multi-cell selection, press CTRL + C in order to copy.
- El comportamiento de copia está deshabilitado mientras la cuadrícula está en modo de edición.
- The current version of this feature covers only the copy from grid behavior. Later on we plan to expose
pastewithin grid behavior.
API Usage
We expose ClipboardOptions property, which handles the following options:
EnabledEnables/disables copying of selected cells.CopyHeadersInclude the associated headers when copying.CopyFormattersApply any existing column formatters to the copied data.SeparatorThe string separator to use the for formatting the data in the clipboard. Default is/t
[!Note] Excel can automatically detect text that is separated by tabs (tab-delimited
/t) and properly paste the data into separate columns. When the paste format doesn't work, and everything you paste appears in a single column, then Excel's delimiter is set to another character, or your text is using spaces instead of tabs.
GridCopyEmitted when a copy operation is executed. Fired only if copy behavior is enabled through theClipboardOptions.
Additional Resources
- Paginación
- Filtración
- Clasificación
- resúmenes
- resúmenes
- Fijación de columnas
- Selección
- Virtualización y rendimiento
- Encabezados de varias columnas
Nuestra comunidad es activa y siempre da la bienvenida a nuevas ideas.