Skip to content

Commit 6bb68e4

Browse files
committed
chore: apply suggestions
1 parent 274b025 commit 6bb68e4

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

components/scheduler/overview.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,31 @@ To execute Scheduler methods, obtain reference to the component instance with `@
139139

140140
| Method | Description |
141141
|---------|-------------|
142-
| `Rebind` | Refreshes the component data. |
143-
| `Refresh` | Use the method to programmatically re-render the Scheduler. |
142+
| `Rebind` | Use to refresh the component data. |
143+
| `Refresh` | Use to programmatically re-render the Scheduler. |
144+
145+
<div class="skip-repl"></div>
146+
147+
````CSHTML
148+
<TelerikButton OnClick="@RefreshScheduler">Refresh Scheduler</TelerikButton>
149+
<TelerikButton OnClick="@RefreshScheduler">Rebind Scheduler</TelerikButton>
150+
151+
<TelerikScheduler @ref="SchedulerRef" />
152+
153+
@code {
154+
private TekerikScheduler<Appointment> SchedulerRef { get; set; }
155+
156+
private void RefreshScheduler()
157+
{
158+
SchedulerRef.Refresh();
159+
}
160+
161+
private void RebindScheduler()
162+
{
163+
SchedulerRef.Rebind();
164+
}
165+
}
166+
````
144167

145168
## Next Steps
146169

0 commit comments

Comments
 (0)