diff --git a/components/dialog/overview.md b/components/dialog/overview.md index f8ac9d2ece..3dc7c81539 100644 --- a/components/dialog/overview.md +++ b/components/dialog/overview.md @@ -28,26 +28,7 @@ The Dialog component and its [predefined options](slug:dialog-predefined) aim to >caption A basic configuration of the Telerik Dialog. -````RAZOR -@* An example of the Dialog basic implementation. *@ - - - - A new version of Telerik UI for Blazor is available. Would you like to download and install it now? - - - Skip this version - Remind me later - Install update - - - -@code { - private bool Visible { get; set; } = true; - private string Title { get; set; } = "Software Update"; -} -```` + ## Predefined Dialogs diff --git a/components/form/overview.md b/components/form/overview.md index 989fe67a82..846e0b6e79 100644 --- a/components/form/overview.md +++ b/components/form/overview.md @@ -21,84 +21,9 @@ The -````RAZOR Model -@* Provide a model to the Telerik Form *@ +>caption Basic Blazor Form -@using System.ComponentModel.DataAnnotations - - - - - - - -@code { - private Person PersonModel { get; set; } = new Person(); - - public class Person - { - [Editable(false)] - public int Id { get; set; } - - [Required] - [MaxLength(20, ErrorMessage = "The first name should be maximum 20 characters long")] - [Display(Name = "First Name")] - public string FirstName { get; set; } - - [Required] - [MaxLength(25, ErrorMessage = "The last name should be maximum 25 characters long")] - [Display(Name = "Last Name")] - public string LastName { get; set; } - - [Required] - [Display(Name = "Date of Birth")] - public DateTime? DOB { get; set; } - } -} -```` -````RAZOR EditContext -@* Provide an EditContext to the TelerikForm *@ - -@using System.ComponentModel.DataAnnotations - - - - - - - -@code { - private EditContext PersonEditContext { get; set; } - - private Person PersonModel = new Person(); - - protected override void OnInitialized() - { - PersonEditContext = new EditContext(PersonModel); - } - - public class Person - { - [Editable(false)] - public int Id { get; set; } - - [Required] - [MaxLength(20, ErrorMessage = "The first name should be maximum 20 characters long")] - [Display(Name = "First Name")] - public string FirstName { get; set; } - - [Required] - [MaxLength(25, ErrorMessage = "The last name should be maximum 25 characters long")] - [Display(Name = "Last Name")] - public string LastName { get; set; } - - [Required] - [Display(Name = "Date of Birth")] - public DateTime? DOB { get; set; } - } -} -```` + ## Form Items