Telerik Forums
UI for WinForms Forum
1 answer
98 views

I'm using the new TreeMap control and when I change the font to say Segoe UI 12 - for the boxes - it doesn't seem to have any effect.

So, I searched for the common VisualItemFormatting method but it does not exist on this control.

How can I change the text in the boxes and perhaps use HTML formatting as well?

Todor
Telerik team
 answered on 22 Feb 2022
1 answer
83 views
 

I have a RadGridView using cell Template have another radgrid causing vertical scroll lose postion when move horizontal scroll bar.

  

        <telerik:RadGridView Height="500" ItemsSource="{Binding XyzData}" AutoGenerateColumns="False" CanUserDeleteRows="False"
                             CanUserInsertRows="False" EditTriggers="None" CanUserSelect="False" RowIndicatorVisibility="Collapsed"
GroupRenderMode="Flat" RowHeight="18">
            <telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="A_ID" DataMemberBinding="{Binding A_Id}"/>
<telerik:GridViewDataColumn Header="DGroup" DataMemberBinding="{Binding D_Group}"/>
<telerik:GridViewDataColumn Header="UID" DataMemberBinding="{Binding U_Id}"/>
<telerik:GridViewColumn Header="Recommendation" CellTemplate="{StaticResource RecommendationItemTemplate}" />
</telerik:RadGridView.Columns>
        </telerik:RadGridView>

 last column Template have another RadGridView, when scroll horziontal scroll bar to right  and last columns comes to view sate vertical scroll bar jumping  and row height changing based  on radgrid size in cell. is their a solution not to jump vertical scroll bar keep  same postion when scroll horiziontal scroll bar. thanks

 

Dilyan Traykov
Telerik team
 answered on 21 Feb 2022
1 answer
183 views

I know that when you select a node this event is called.

If you select another node, it is called TWICE.

 

Is there a way to know which it is calling it for (Unselecting or Selecting).

This way I can skip code on the unselecting one and only do code on the newly selected node.

Thanks,

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Feb 2022
1 answer
64 views
Need to shorcut keys for Dockwindow
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Feb 2022
1 answer
125 views

Hi,

I have a RadGridView which uses a GridViewComboBoxColumn, I populate the combo box list at run time using the CellEditorInitialized  event handler. My issue is that when the user selects on a new item in the combobox and then clicks on a menu item (such as FileSave) or rad ribbon button then the new combo value is discarded. I notice the CellEndEdit event is also not fired.

If I select another cell in the grid then everything works as expected (ie CellEndEdit event is fired)

Is this a known issue and is there a workaround I could use ?

Or is it possible to always close the drop down list and call EndEdit when a selection is made?

Regards

Toby

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Feb 2022
1 answer
97 views
OR Change icon,,, Change text,,, 
Dinko | Tech Support Engineer
Telerik team
 answered on 18 Feb 2022
1 answer
114 views

For my tabbed form I have set ShowNewTabButton to false to disallow creating new tabs. But, when a tab is popped out to its own window, the new tab button appears. I would like to hide or disable this button.

Thank you.

Screenshot:

The top (main) form has three tabs and no new tab button (plus sign) since ShowNewTabButton has been set to false. But the "Home - Start" tab, which has been dragged out/popped out into its own window, has the new tab button. I would like know how to hide or disable it.


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Feb 2022
1 answer
237 views

Dear all,

I just installed VS2022 on a machine where VS2019 is already present along with UI for Winforms added via the Progress Control Center.

I am wondering how to tell Progress Control Center to also add it to VS2022 while keeping it in VS2019.

- Is this possible and how ?

- or should I  use another way than the control center ?

or do I have to uninstall VS2019 first (again same machine) ?

I would like to keep both installs until I am confident enough with the 2022 version.

Many thanks for your answers

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Feb 2022
1 answer
125 views

Hello all

(sorry for my english)

I tried to use the example 5 and 6 on this page :

 https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/editing/mail-merge

But it don't work.

"MERGEFIELD" work but "MERGEFIELD TableStart:" don't. 

What did i do wrong ?

 

Thank you very much for answers :)

Please see Below the code :

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.IO
Imports System.Linq
Imports System.Reflection
Imports System.Text
Imports System.Windows
Imports System.Windows.Forms
Imports Telerik.Windows.Documents.Common.FormatProviders
Imports Telerik.Windows.Documents.Flow.FormatProviders.Docx
Imports Telerik.Windows.Documents.Flow.FormatProviders.Html
Imports Telerik.Windows.Documents.Flow.FormatProviders.Rtf
Imports Telerik.Windows.Documents.Flow.FormatProviders.Txt
Imports Telerik.Windows.Documents.Flow.Model
Imports Telerik.Windows.Documents.Flow.Model.Editing
Imports Telerik.Windows.Documents.Flow.Model.Styles
Imports Telerik.Windows.Documents.Spreadsheet.Model
Imports Telerik.Windows.Documents.Core
Imports Telerik.Windows.Documents.Flow
Imports Telerik.WinForms.Documents.FormatProviders.Pdf

Module M_TestGenerationDoc

    Private ReadOnly providers As Dictionary(Of IFormatProvider(Of RadFlowDocument), String)
    Private chemin As String = "C:\Temp\MODELE\"
    Private selectedFormat As String = "Docx"

Public Sub S_TestFusion()
        Dim document As RadFlowDocument = New RadFlowDocument()
        Dim editor As RadFlowDocumentEditor = New RadFlowDocumentEditor(document)

        editor.InsertParagraph()
        editor.InsertField("MERGEFIELD TeamName", "")
        editor.InsertParagraph()
        editor.InsertText("Players:")

        Dim playersTable As Table = editor.InsertTable(2, 2)
        playersTable.PreferredWidth = New TableWidthUnit(TableWidthUnitType.Percent, 100)
        document.StyleRepository.AddBuiltInStyle(BuiltInStyleNames.TableGridStyleId)
        playersTable.StyleId = BuiltInStyleNames.TableGridStyleId

        playersTable.Rows(0).Cells(0).Blocks.AddParagraph().Inlines.AddRun("First Name")
        playersTable.Rows(0).Cells(1).Blocks.AddParagraph().Inlines.AddRun("Last Name")

        Dim firstNameParagraph As Paragraph = playersTable.Rows(1).Cells(0).Blocks.AddParagraph()
        editor.MoveToParagraphStart(firstNameParagraph)
        editor.InsertField("MERGEFIELD TableStart:Players", "")
        editor.InsertField("MERGEFIELD FirsName", "")

        Dim lastNameParagraph As Paragraph = playersTable.Rows(1).Cells(1).Blocks.AddParagraph()
        editor.MoveToParagraphStart(lastNameParagraph)
        editor.InsertField("MERGEFIELD LastName", "")
        editor.InsertField("MERGEFIELD TableEnd:Players", "")

        Dim mailMergeResult As RadFlowDocument = document.MailMerge(GetTeams())


        SaveDocument(mailMergeResult, selectedFormat)

        MsgBox("Fichier sauvegardé")

    End Sub

 Public Function SaveDocument(ByVal document As RadFlowDocument, ByVal selectedFormat As String) As Boolean
        Dim formatProvider As IFormatProvider(Of RadFlowDocument) = Nothing

        Try
            Select Case selectedFormat
                Case "Docx"
                    formatProvider = New DocxFormatProvider()
                Case "Rtf"
                    formatProvider = New RtfFormatProvider()
                Case "Html"
                    formatProvider = New HtmlFormatProvider()
                Case "Txt"
                    formatProvider = New TxtFormatProvider()
                Case "Pdf"
                    formatProvider = New PdfFormatProvider()
            End Select

            If formatProvider Is Nothing Then
                Return False
            End If

            Dim dialog As SaveFileDialog = New SaveFileDialog()
            dialog.FileName = "Result"
            dialog.Filter = String.Format("{0} files|*{1}|All files (*.*)|*.*", selectedFormat, formatProvider.SupportedExtensions.First())
            dialog.FilterIndex = 1

            Using output As Stream = File.OpenWrite(chemin + "test_fusion.docx")
                formatProvider.Export(document, output)
            End Using

            Return True

        Catch ex As Exception
            MsgBox(ex.Message)
            Return False
        End Try


    End Function


Public Function GetTeams() As List(Of Team)
        Dim teams = New List(Of Team)()
        Dim team1 = New Team()
        team1.TeamName = "Team 1"
        team1.Players.Add(New Player() With {
            .FirsName = "John",
            .LastName = "Baker"
        })
        team1.Players.Add(New Player() With {
            .FirsName = "Sam ",
            .LastName = "Wayne"
        })
        teams.Add(team1)
        Dim team2 = New Team()
        team2.TeamName = "Team 2"
        team2.Players.Add(New Player() With {
            .FirsName = "Patrick",
            .LastName = "Gibbs"
        })
        team2.Players.Add(New Player() With {
            .FirsName = "Oscar",
            .LastName = "Stevens"
        })
        teams.Add(team2)
        Return teams
    End Function

    Public Class Team
        Public Property TeamName As String
        Public Property Players As List(Of Player)

        Public Sub New()
            Me.Players = New List(Of Player)()
        End Sub

    End Class

    Public Class Player
        Public Property FirsName As String
        Public Property LastName As String
    End Class

End Module


Vladislav
Telerik team
 answered on 17 Feb 2022
1 answer
113 views

I am using the winforms version. Is it possible to save the chat easily? I would like to save it to sql server. I tried to serialize the radChat but it says it's not marked as serializable and I don't see any sort of save method. I am guessing I need to create a helper that can store all the messages and serialize that? I do not see any examples on how to enumerate each message? Just a little direction if anybody knows. 

 

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Feb 2022
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?