Typing modes

GridControl

Send every keystroke to the server, or keep typing in the browser until commit.

Overview

Typing modes decide how text editors in a Blazor GridControl send what users type: every keystroke to the server, or once when the cell commits. Use ClientBuffered for heavy data entry or a distant server: keystrokes stay in the browser and the value is sent once, on commit. ServerBacked, the default, is the ordinary Blazor path with a round trip per key; both write the same value.

Examples

#Switch the transport, then type

Pick a transport, double-click a Full Name, Email, Phone or Desk cell, type and press Enter; the difference is how many messages travel while you type.

Agent ID Full Name Email Address Direct Phone Desk Team Lead Discount Limit
AG-01Saffron Kettlebyskettleby@razorsharp-getaways.example(512) 555-0114Leisure deskTrue$1,000
AG-02Rupert Inglenookringlenook@razorsharp-getaways.example(512) 555-0157Adventure deskFalse$250
AG-03Ottoline Figgisofiggis@razorsharp-getaways.example(512) 555-0208Cruise deskFalse$500
AG-04Cornelius Quillcquill@razorsharp-getaways.example(512) 555-0263Touring deskTrue$1,000
AG-05Wilhelmina Sprocketwsprocket@razorsharp-getaways.example(512) 555-0329Luxury deskFalse$250

ClientBuffered ยท 0 cells saved

Documentation

ValueDescription
ServerBackedThe ordinary Blazor event path. The input binds oninput, so every keystroke is a round trip: the server runs InputValueChanged with the text so far, and ValueChanged on the native change event (Enter or blur) unless UpdateOnInput is set. The grid's cell editor also sets TypingKeysStayLocal, so a typing key costs one message (its input event) rather than two; Enter and blur reach the server as keydown and blur events and commit the cell.
ClientBufferedThe browser owns the text. The input renders data-fx-cb-pending so typing keys stay local from the first paint, then textbox-control.js attaches a listener that stops the input, change, blur and typing keydown events from reaching Blazor. It sends the whole value once, through CommitClientBufferedTypingAsync, on Enter, Tab, Up, Down, Page Up, Page Down, Ctrl+Home, Ctrl+End, an arrow at either end of the text, or blur; that call sets Value, runs InputValueChanged and ValueChanged, then forwards the key to OnKeyDown or raises OnBlur (Escape is forwarded without storing). The grid commits the cell from that forwarded key or blur, and reads the browser text itself before a click on another cell commits.
An unhandled error has occurred. Reload ๐Ÿ—™

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.