|
| 1 | +--- |
| 2 | +title: Prompt Library |
| 3 | +page_title: Telerik UI for WinForms Prompt Library |
| 4 | +description: Explore the collection of prompts that you can use with the Telerik UI for WinForms AI Coding Assistant. |
| 5 | +slug: ai-prompt-library |
| 6 | +tags: telerik,winforms,ai,coding assistant,prompt,library |
| 7 | +position: 3 |
| 8 | +--- |
| 9 | + |
| 10 | +# Telerik UI for WinForms Prompt Library |
| 11 | + |
| 12 | +Welcome to the Telerik UI for WinForms Prompt Library. |
| 13 | + |
| 14 | +The prompts provided here are intended and optimized for use with the Telerik UI for WinForms AI Coding Assistant [MCP Server]({%slug ai-mcp-server%}). They can help you kick start your app development and speed up the component configuration process. |
| 15 | + |
| 16 | +This collection of prompts is not exhaustive and the Telerik UI for WinForms team is constantly working on adding more prompts to the library. |
| 17 | + |
| 18 | +## How to Use the Prompts |
| 19 | + |
| 20 | +All prompts in this library target the [MCP Server]({%slug ai-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. |
| 21 | + |
| 22 | +1. Browse the prompt library to find a prompt that suits your needs. |
| 23 | +2. Copy the prompt text (including the `#telerik_winforms_assistant` handle). |
| 24 | +3. (Optional) Customize the prompt as needed for your specific use case but keep the `#telerik_winforms_assistant` handle.<br/>When modifying the prompts, make sure the changes comply with the [recommendations]({%slug ai-overview%}#recommendations) for the AI Coding Assistant. |
| 25 | +4. Run the prompt against the [MCP Server]({%slug ai-mcp-server%}). |
| 26 | + |
| 27 | +>warning Always double-check the code and solutions proposed by any AI-powered tool before applying them to your project. |
| 28 | +
|
| 29 | +>caption Use with the Copilot Extension |
| 30 | +
|
| 31 | +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. |
| 32 | + |
| 33 | +## Assembly-Specific Prompts |
| 34 | + |
| 35 | +This section provides prompt ideas for the [currently supported assemblies]({%slug ai-overview%}#supported-assemblies). |
| 36 | + |
| 37 | +### WinControls.UI Assembly |
| 38 | + |
| 39 | +The __Telerik.Telerik.WinControls.UI__ assembly exposes many components. One of them is the [Telerik UI for WinForms RadDropDownList]({%slug winforms/dropdown-listcontrol-and-checkeddropdownlist/dropdownlist%}) control, which allows you to display a list of items from which the user can choose. |
| 40 | + |
| 41 | +<table> |
| 42 | +<tr> |
| 43 | +<th>DataBound the RadDropDownList to a custom collection</th> |
| 44 | +<th>DataBound the RadDropDownList and allow multiple selection</th> |
| 45 | +</tr> |
| 46 | +<tr> |
| 47 | +<td> |
| 48 | +<pre><code> |
| 49 | +\#telerik_winforms_assistant Add RadDropDownList 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. |
| 50 | +</code></pre> |
| 51 | +</td> |
| 52 | +<td> |
| 53 | +<pre><code> |
| 54 | +\#telerik_winforms_assistant Add RadDropDownList (WinForms) 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. Show all of the properties in the drop down and allow multipe selection. |
| 55 | +</code></pre> |
| 56 | +</td> |
| 57 | +</tr> |
| 58 | +</table> |
| 59 | + |
| 60 | + |
| 61 | +### GridView Assembly |
| 62 | + |
| 63 | +The __Telerik.Windows.Controls.GridView__ assembly provides the [Telerik UI for WinForms RadGridView]({%slug winforms/gridview%}) component, which enables you to create fully customizable and highly interactive interfaces for display and management of large data. |
| 64 | + |
| 65 | +<table> |
| 66 | +<tr> |
| 67 | +<th>DataBound the RadGridView with 100 records.</th> |
| 68 | +<th>DataBound the RadGridView and add combobox column</th> |
| 69 | +</tr> |
| 70 | +<tr> |
| 71 | +<td> |
| 72 | +<pre><code> |
| 73 | +\#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. |
| 74 | +</code></pre> |
| 75 | +</td> |
| 76 | +<td> |
| 77 | +<pre><code> |
| 78 | +\#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. |
| 79 | +</code></pre> |
| 80 | +</td> |
| 81 | +</tr> |
| 82 | +</table> |
| 83 | + |
| 84 | +<table> |
| 85 | +<tr> |
| 86 | +<th>DataBound the RadGridView and customize it.</th> |
| 87 | +<th>DataBound the RadGridView and cancel the editing.</th> |
| 88 | +</tr> |
| 89 | +<tr> |
| 90 | +<td> |
| 91 | +<pre><code> |
| 92 | +\#telerik_winforms_assistant Create a RadGridView with 3 columns - Name, Country, City. Add the corresponding business object in the code behind and populate is with sample data. Add 20 entries to the 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). |
| 93 | +</code></pre> |
| 94 | +</td> |
| 95 | +<td> |
| 96 | +<pre><code> |
| 97 | +\#telerik_winforms_assistant Create a RadGridView with 3 columns - Name, Country, City. Add the corresponding business object in the code behind and populate is with sample data. Add 20 entries to the data. And show me how to cancel the editing of the datagrid cell. |
| 98 | +</code></pre> |
| 99 | +</td> |
| 100 | +</tr> |
| 101 | +</table> |
| 102 | + |
| 103 | + |
| 104 | +#### RadDock Assembly |
| 105 | + |
| 106 | +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. |
| 107 | + |
| 108 | +<table> |
| 109 | +<tr> |
| 110 | +<th>Create basic RadDock with 2 panels.</th> |
| 111 | +<th>Save and load the layout.</th> |
| 112 | +</tr> |
| 113 | +<tr> |
| 114 | +<td> |
| 115 | +<pre><code> |
| 116 | +\#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. |
| 117 | +</code></pre> |
| 118 | +</td> |
| 119 | +<td> |
| 120 | +<pre><code> |
| 121 | +\#telerik_winforms_assistant How to save and load the current docking layout. |
| 122 | +</code></pre> |
| 123 | +</td> |
| 124 | +</tr> |
| 125 | +</table> |
| 126 | + |
| 127 | + |
| 128 | +#### RichTextEditor Assembly |
| 129 | + |
| 130 | +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. |
| 131 | + |
| 132 | +<table> |
| 133 | +<tr> |
| 134 | +<th>Import or export different formats.</th> |
| 135 | +<th>How to insert element like images or text in the document. </th> |
| 136 | +</tr> |
| 137 | +<tr> |
| 138 | +<td> |
| 139 | +<pre><code> |
| 140 | +\#telerik_winforms_assistant How to import and export different formats in the rich text editor. Add toolbar items for import and export options. |
| 141 | +</code></pre> |
| 142 | +</td> |
| 143 | +<td> |
| 144 | +<pre><code> |
| 145 | +\#telerik_winforms_assistant How to Insert element like images, text in the document. |
| 146 | +</code></pre> |
| 147 | +</td> |
| 148 | +</tr> |
| 149 | +</table> |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
0 commit comments