010-68421378
sales@cogitosoft.com
Categories
AddFlow  AmCharts JavaScript Stock Chart AmCharts 4: Charts Aspose.Total for Java Altova SchemaAgent Altova DatabaseSpy Altova MobileTogether Altova UModel  Altova MapForce Altova MapForce Server Altova Authentic Aspose.Total for .NET Altova RaptorXML Server ComponentOne Ultimate Chart FX for SharePoint Chart FX CodeCharge Studio ComponentOne Enterprise combit Report Server Combit List & Label 22 Controls for Visual C++ MFC Chart Pro for Visual C ++ MFC DbVisualizer version 12.1 DemoCharge DXperience Subscription .NET DevExpress Universal Subscription Essential Studio for ASP.NET MVC FusionCharts Suite XT FusionCharts for Flex  FusionExport V2.0 GrapeCity TX Text Control .NET for WPF GrapeCity Spread Studio Highcharts Gantt Highcharts 10.0 版 HelpNDoc Infragistics Ultimate  ImageKit9 ActiveX ImageKit.NET JetBrains--Fleet JetBrains-DataSpell JetBrains--DataGrip jQuery EasyUI jChart FX Plus OPC DA .NET Server Toolkit  OSS ASN.1/C Oxygen XML Author  OSS 4G NAS/C, C++ Encoder Decoder Library OSS ASN.1 Tools for C with 4G S1/X2 OSS ASN.1/C# OSS ASN.1/JAVA OSS ASN.1/C++ OPC HDA .NET Server Toolkit OPC DA .Net Client Development Component PowerBuilder redgate NET Developer Bundle Report Control for Visual C++ MFC  Sencha Test SPC Control Chart Tools for .Net Stimulsoft Reports.PHP Stimulsoft Reports.JS Stimulsoft Reports.Java Stimulsoft Reports. Ultimate Stimulsoft Reports.Wpf Stimulsoft Reports.Silverlight SlickEdit Source Insight Software Verify .Net Coverage Validator Toolkit Pro for VisualC++MFC TeeChart .NET Telerik DevCraft Complete Altova XMLSpy Zend Server

Telerik UI for Blazor

Telerik UI for Blazor                                   

 

Blazor gives you the ability to write rich web apps with C# rather than JavaScript. Telerik UI for Blazor components have been built from the ground-up to ensure you experience shorter development cycles, quick iterations and cut time to market.

 

Key Features

 

Template Support

With native components, the Telerik UI for Blazor Grid templates can fully utilize the best features of Blazor to highly customize the user experience.

 

Native Blazor Validation Integration

The UI for Blazor suite supports and integrates seemlessly into Blazor's Forms and Validation infrastructure. All Telerik UI for Blazor Input components work out of the box when placed inside an EditForm, respond to EditContext changes and provide default invalid styles.

 

Modern design

Telerik UI for Blazor provides Material, Bootstrap and Default themes that you can use to achieve modern design of your Blazor application. Thanks to the Theme Builder you can even customize the existing themes or create a new one to fit your needs.

 

Get The Best Value for Your Money

 

ROI / Cut Development Time

We combine our winning client-side technology and our server-side solutions in price-friendly bundles. Javascript, ASP.NET, PHP, and JSP – the complete package!

For one low price you get the individual technologies you need for your specific project including our extensive library of components, three major update releases per year, and flexible support options. Value and convenience in one package.

 

Leading Support

Get answers to your questions directly from the developers who build this UI suite, even during your trial period.

If you are not a developer or don't have time to evaluate our product, send us your project requirements. We will evaluate your required features and let you know how our products fit your needs.

 

Buy as Part of Devcraft

Telerik .NET and Kendo UI JavaScript components and Reporting and Productivity tools enable you to build modern and high-performant apps on any web, desktop or mobile platform—fast. Comes with flexible support options designed to cover your every need.

Optimize your time and budget by taking advantage of our intuitive APIs, thousands of demos with source code availability, comprehensive documentation and a full assortment of VS templates.

 

Explore our Native UI Blazor Components

 

DATA MANAGEMENT

 

  • Grid

 

To create a basic Telerik Grid:

  1. use the TelerikGrid tag
  2. set its Data attribute to the variable that will hold your collection of data
  3. under its TelerikGridColumns tag, set the desired  TelerikGridColumn instances whose Field property points to the name of the model field

 

Get started with a grid by providing it with a data collection

 

The result from the code snippet above

 

You can also use a string for the field name, using the nameof operator is not necessary. For example, the ID column can be defined like this: .

 

Reference

 

The grid is a generic component, and to store a reference, you must use the model type that you pass to its Data when declaring the variable.

 

Store a reference to a Telerik Grid

 

NAVIGATION

 

  • Button

 

The Button component provides styling according to the chosen theme, click event and icons. You can also disable the button through a property.

 

Basic Button

 

To add a Telerik Button to your Blazor app, use the  tag:

 

Basic Telerik Button tag

The result from the code snippet above

Component namespace and reference

 

Click Handler

 

To attach a click handler, use the OnClick attribute and define the method in the functions section.

 

Click handler for a Telerik Button

 

Styling

 

You can style the button through its Class attribute to define your own CSS rules that apply to the HTML rendering.

 

Set CSS class to the button and change its appearance

 

 

The result from the code snippet above

You can also make the button use a strong color to attract attention, called Primary button styling. To do that, set its Primary property to true.

 

Button with the Primary color scheme from the current theme

 

The result from the code snippet above, with the Default theme

Icons

 

You can put an image, sprite or a font icon in the button to illustrate its purpose for your end users. To apply them, use the following properties:

  • for a font icon, use the Icon attribute to set the font icon class.
  • for an image, use the ImageUrl attribute to provide the URL
  • for a sprite, set the SpriteClass attribute to k-icon MySpriteClass where MySpriteClass defines the CSS rules for the sprite.

 

You can see how to use the built-in icons in the Font Icons article.

For a custom font icon, define the font and glyph in your Icon CSS class.

The following example shows how to use an image from a URL, a sprite image, and the built-in font icons.

 

How to use icons in Telerik Button

The result from the code snippet above

You can use relative paths to your images in the wwwroot folder. The example above uses absolute paths to make it easy for you to see the results without preparing images.

 

Disabled State

 

To disable a button, set its Enabled attribute to false.

 

Disabled Telerik Button

 

 

Comparison between disabled and enabled button

 

Button Type

 

The button renders a 

 

  • Submit - Renders a type="submit" attribute. Can submit the form and trigger validation. The default value.
  • Button - Renders a type="button" attribute. Does not invoke form validation and submission.
  • Reset - Renders a type="reset" attribute. Can reset the current form.

 

  • Tab Strip

 

The Tab Strip is defined through the  tag that accepts children of type . Inside the tabs you can add content like in any other container, including other components.

 

The tab exposes a Title attribute that is the text rendered in the heading. It also offers the Disabled attribute that allows you to disable its selection.

 

To control the position of the tab titles, the main tab strip tag exposes the optional TabPosition attribute that takes a member of the Telerik.Blazor.Components.TabStrip.TabPosition enumeration:

  • Top (default)
  • Left
  • Right
  • Bottom

 

A Telerik Tab Strip with example reference, tab position and disabled tab

The result from the code snippet above

Get selected tab

 

Select Tab programmatically

 

EDITORS

 

  • Textbox

 

The Textbox component allows the user to enter a generic plain text message. The developer can control minimum, maximum length of the text, pattern, and other elements of the UX such as label or class.

 

To use a Telerik Textbox for Blazor, add the TelerikTextBox tag.

 

Basic textbox with its key features, and ValueChanged event handling

Component namespace and reference

 

The numeric textbox provides the following features:

  • Class - the CSS class that will be rendered on the input element.
  • Enabled - whether the input is enabled.
  • Label - the label element rendered next to the input to provide the user with information on its purpose.
  • MaxLength - the maximum length of the text input by the user.
  • MinLength - the minimum length of the text input by the user.
  • Pattern - the pattern that the user input must match.
  • Value - get/set the value of the input, can be used for binding.
  • Width - the width of the input.
  • Validation

The length, enabled and pattern attributes are HTML attributes on the  element and it is up to the browser to honor them. For example, the minlength attribute is rarely taken into account, and the pattern is usually evaluated only upon form submission.

 

  • Numeric Textbox

 

The Numeric Textbox component allows the user to enter decimal values and no text. The developer can control minimum, maximum values, steps and other elements of the UX.

 

To use a Telerik Numeric Textbox for Blazor:

  1. add the telerik-blazor.min.js file to your main index file. For a client-side Blazor app, it is wwwroot/index.html, and for a server-side Blazor app it is ~/Pages/Index.cshtml. For example:

HTML

 

Make sure that the version in the URL matches the version of the Telerik Blazor package used in your project.

 

  1. add the TelerikNumericTextBox tag

 

The numeric textbox component is generic, meaning that it takes the type of its value parameter as an argument. It can take int, long, float, double and decimal values. Therefore, the values for the Min, Max and Step properties must be of the same type as the Value, and the ValueChanged handler must also accommodate the corresponding value type.

 

Component namespace and reference

 

 

The numeric textbox provides the following features:

  • Arrows - whether the up/down spinner arrows (buttons) will be shown. Defaults to true.
  • Decimals - how many decimal places will be allowed while the user is typing a new value. Takes effect only while the input is focused.
  • Format - the format with which the number is presented when the input is not focused.
  • Max - the maximum decimal value the input can take. Must be of the same type as the Value.
  • Min - the minimum decimal value the input can take. Must be of the same type as the Value.
  • Step - the decimal value of the step with which the value changes when the arrows are used. Must be of the same type as the Value.
  • Text - getter for the original user input.
  • Value - to get/set the value of the input.
  • Validation.

 

  • Date Input

 

The Date Input component allows the user to enter a date. The developer can control the format of the date. If the user input does not match the desired pattern, the value is not accepted. If the input can be parsed, it will be corrected automatically.

 

To use a Telerik Date Input for Blazor:

  1. add the telerik-blazor.min.js file to your main index file. For a client-side Blazor app, it is wwwroot/index.html, and for a server-side Blazor app it is ~/Pages/Index.cshtml. For example:

HTML

 

Make sure that the version in the URL matches the version of the Telerik Blazor package used in your project.

  1. add the TelerikDateInput tag

 

The date input provides the following features:

  • Class - the CSS class that will be rendered on the input element.
  • Enabled - whether the input is enabled.
  • Format - the date format that the user input must match.
  • ParsingErrorMessage - a hint that is displayed to the user through validation when their input cannot be parsed in the required format
  • Value - get/set the value of the input, can be used for binding.
  • Width - the width of the input.
  • Validation.

 

  • DatePicker

 

The Date Picker component allows the user to choose a date from a visual list (calendar) or to type it into a date input that can accept only dates. You can control the format shown in the input, how the user navigates through the calendar, and dates the user cannot select.

 

To use a Telerik Date Picker for Blazor:

  1. add the telerik-blazor.min.js file to your main index file. For a client-side Blazor app, it is wwwroot/index.html, and for a server-side Blazor app it is ~/Pages/Index.cshtml. For example:

HTML

 

Make sure that the version in the URL matches the version of the Telerik Blazor package used in your project.

 

  1. add the TelerikDatePicker tag

 

The Date Picker component exposes the following features:

  • BottomView - Defines the bottommost view in the popup calendar to which the user can navigate to. Defaults to CalendarView.Month.
  • DisabledDates - Specifies a list of dates that cannot be selected.
  • Enabled - Specifies whether typing in the input is allowed.
  • Height - Defines the height of the DatePicker. Defaults to 28px.
  • Format - Specifies the format of the DateInput of the DatePicker. Defaults to yyyy-MM-dd.
  • PopupHeight - Defines the height of the DatePicker's Popup. Defaults to 280px.
  • PopupWidth - Defines the width of the DatePicker's Popup. Defaults to 320px.
  • Value - The current value of the input. Can be used for binding.
  • View - Specifies the current view that will be displayed in the popup calendar.
  • Width - Defines the width of the DatePicker. Defaults to 280px.
  • Validation.

 

The date picker is, essentially, a date input and a calendar and the properties it exposes are mapped to the corresponding properties of these two components. You can read more about their behavior in the respective components' documentation.

 

 

Quick Navigation;

© Copyright 2000-2023  COGITO SOFTWARE CO.,LTD. All rights reserved