Typing modes
GridControlDecide whether each keystroke in a cell editor goes to the server or stays in the browser until commit.
Overview
Text cell editors are TextBoxControls, and TextEditorTypingBehavior picks their transport.
ServerBacked, the default, keeps the ordinary Blazor event path: the server sees the text as it is typed.
ClientBuffered keeps typing in the browser and sends the completed value when the cell commits, so a slow or
busy connection does not get a round trip per character. Both modes write the same value to the row on commit.
Examples
#Switch the transport, then type
Pick a transport, double-click a Full Name, Email or Phone cell, type and press Enter. The line under the grid counts the saves and names the last one. On a local connection the two modes feel the same; the difference is how many messages travel while you type.
| PM ID | Full Name | Email Address | Direct Phone | Admin | PO Limit |
|---|---|---|---|---|---|
| PM-01 | Marcus Vance | m.vance@builder.com | (512) 555-0142 | True | $250,000 |
| PM-02 | Sarah Jenkins | s.jenkins@builder.com | (512) 555-0189 | False | $50,000 |
| PM-03 | Robert Chen | r.chen@builder.com | (512) 555-0233 | False | $75,000 |
| PM-04 | Amanda Blake | a.blake@builder.com | (512) 555-0287 | True | $500,000 |
| PM-05 | Daniel Torres | d.torres@builder.com | (512) 555-0312 | False | $60,000 |
ClientBuffered ยท 0 cells saved
Documentation
TextEditorTypingBehavior, the TextBoxTypingBehavior enum and TextBoxControl's own TypingBehavior are still to be written up from TextBoxTypingBehavior.cs, Grid/GridControl.razor.cs and TextBoxControl.razor.