New to Telerik UI for WinForms? Download free 30-day trial

Telerik UI for WinForms Prompt Library

Welcome to the Telerik UI for WinForms Prompt Library.

The prompts provided here are intended and optimized for use with the Telerik UI for WinForms AI Coding Assistant MCP Server. They can help you kick start your app development and speed up the component configuration process.

This collection of prompts is not exhaustive and the Telerik UI for WinForms team is constantly working on adding more prompts to the library.

How to Use the Prompts

All prompts in this library target the MCP Server via the #telerik_winforms_assistant handle. Make sure that you have installed and enabled the MCP Server before attempting to run the prompts.

  1. Browse the prompt library to find a prompt that suits your needs.
  2. Copy the prompt text (including the #telerik_winforms_assistant handle).
  3. (Optional) Customize the prompt as needed for your specific use case but keep the #telerik_winforms_assistant handle.
    When modifying the prompts, make sure the changes comply with the recommendations for the AI Coding Assistant.
  4. Run the prompt against the MCP Server.

Always double-check the code and solutions proposed by any AI-powered tool before applying them to your project.

Use with the Copilot Extension

To run the provided prompts in the Telerik UI for WinForms GitHub Copilot Extension (without the MCP Server installed), modify the prompts to use the @telerik handle instead.

Assembly-Specific Prompts

This section provides prompt ideas for the currently supported assemblies.

WinControls.UI Assembly

The Telerik.Telerik.WinControls.UI assembly exposes many components. One of them is the Telerik UI for WinForms RadDropDownList control, which allows you to display a list of items from which the user can choose.

Databind the RadDropDownList to a custom collection Databind the RadCheckedDropDownList and allow multiple selection

#telerik_winforms_assistant Add combobox data bound to a collection of business objects. Each object should have a Name, Address, City and Country property. Use the Name to display the items in the UI

#telerik_winforms_assistant Create a RadDropDownList bound to some sample data. The control should allow multiple selection 
        
Dynamically add pages in RadPageView Preselect a page in RadPageView

#telerik_winforms_assistant Add pages dynamically to the pageview and change the page text when selecting the page

#telerik_winforms_assistant Create PageView with 3 tabs and preselect the second tab

GridView Assembly

The Telerik.Windows.Controls.GridView assembly provides the Telerik UI for WinForms RadGridView component, which enables you to create fully customizable and highly interactive interfaces for display and management of large data.

DataBound the RadGridView with 100 records. DataBound the RadGridView and add combobox column

#telerik_winforms_assistant Create a RadGridView with 100 records each having Id, Name and Company. Group the data by Company. Sort by name. Add aggregate count function for the company column.

#telerik_winforms_assistant Data bind the RadGridView control to a collection of items. Add columns for stocks data manually where one of the columns should use a combobox.
DataBound the RadGridView and customize it Merge Cells in RadGridView

#telerik_winforms_assistant Create a RadGridView and bind it to a sample data. Change the selection text color and mouse over color of the datagrid cells and rows. Apply different color for rows based on a condition (alternating rows)

#telerik_winforms_assistant Bind the RadGridView to sample data. Demonstrate how to merge cells in control

RadDock Assembly

The Telerik.WinControls.RadDock assembly provides the Telerik UI for WinForms RadDocking, which you can use to introduce a docking system like the Microsoft Visual Studio.

Create basic RadDock with 2 panels Save and load the layout

#telerik_winforms_assistant Create a basic RadDocking layout with two panes docked on the left, one on the right and two on the bottom of the control

#telerik_winforms_assistant How to save and load the current docking layout

RichTextEditor Assembly

The Telerik.WinControls.RichTextEditor assembly enables you to use the Telerik UI for WinForms RadRichTextEditor component, which provides advanced features for displaying and editing rich-text content.

RadRichTextEditor and RichTextEditorRiboonBar integration Allow export in various formats

#telerik_winforms_assistant Create a RadRichTextEditor and load a document. Associate the RichTextEditorRiboonBar to control editing and styling

#telerik_winforms_assistant I have a document already loaded inside RadRichTextEditor. I want to allow exporting in various formats
In this article