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.
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
Hello all
(sorry for my english)
I tried to use the example 5 and 6 on this page :
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
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!
Hi
I want to create sales invoice in radgridview. when user start entry in item name which is combobox in radgridview which data (item name and qty) will come from item master user enter qty total should be calculated automatically at the same time grand total should shown radgridview footer.
when user press save button all entries in radgridview should save database. I need after which event footer will be updated. or if i remove radgridview row radgridview footer should be updated.
Regards
Nandan Navale
Is there a way to apply databinding to an RadElement property, rather than to a control ?
Like Binding to RadTextBoxElement.Text
Do I necessarily have to create a property in the control to map to the element property ?
The Element hierarchy Editor seems to offer DataBinding for some tags, but I was unable to enter anything there.
I have a FilterView on the form as well as a GridView
When I apply the filter - the gridview filters as expected.
When I refresh the grid, the selected filters on the FilterView remain in place - which is what I want.
But the GridView (after the refresh) shows all of the data.
What I'd like to do is something like FilterView1.ApplyFilters to cause the Grid to filter accordingly... but I do not see such a method.
Is there some way that I could programmatically tell the FilterView to 're-apply' the selected filters?
Of course, if I deselect and then reselect a filter element the grid view will get filtered appropriately - but, I'd like to just tell the filter to 're-apply' then selected filters programmatically.
How can I do this?
Hi guys,
When I am doing data binding on RadScheduler(using SchedulerBindingDataSource), I meet 'System.Data.NoNullAllowedException, Column 'id' does not allow null'
My steps are:
1) Double-Click on the scheduler to create a new time slot, and custom appointment dialog show up.
2) type the info, then click ok button
3) error shows....
4) After clicking ok button, the appointment slot will show on schedule, then click the Save button, data will be saved to the database
However, The data populating is good. I can receive data from the database, when I run the application the data which I manually type into the database is exist on schedule. And if I click on exist appointment slot and do some changes, there is no error. After I click save button The data will be successfully saved into the database.
Could you let me know which part will be the issue, All screenshots are attached.
If need more information, plz let me know,
Thanks,
Mike
Hi Dess
I have used your previously provided sample project but project replicates the same error on the Windows10 machine.
I am sending screenshot for same.
We had discussion previously my Ticket 1549675 for your ready references
Regards
Nandan Navale
Our documents have a couple of images included (they are in rtf format, with some images in the header).
In Word, depending on the status (started, validated, ...), we take one image from the document and show it as a watermark. The other ones we hide.
I'm trying to do the same with the editor, but i can't really find api's to just get a list of images in the Document.
Is there a way to do this ?