Hello,
we are creating a barcode programmatically like it is described here: https://www.telerik.com/forums/generate-barcode-image-programmatically
The problem is, that the barcode itself is a bit small (width) for our purpose.
Our code looks like this:
var barcode = new RadBarcode();
barcode.Width = 900;
barcode.Height = 150;
barcode.Symbology = new Code39();
barcode.Value = "1890";
barcode.LoadElementTree();
var barcodeImage = barcode.ExportToImage(900, 150);
barcodeImage.Save(@"C:\test.png");
But if you look at the attached image (test.png), it has the correct size alright, but not the barcode itself.
Is there away to give the barcode itself more width?
Kind regards.
Me.IsMdiContainer = true
guid me
thanks
I want to generate the image of BarCode without showing on the WinForm. How to assign "Code39Extended" to Symbology?
RadBarcode rBL = new RadBarcode();
rBL.Symbology = "Code39Extended";
Thanks.
Hello,
I'm struggling to get some events to work on a RadListViewElement, which is a child of a custom RadElement, which in turn is inside another custom RadControl. I guess a few lines of code will help to describe this:
Imports Telerik.WinControls
Imports Telerik.WinControls.UI
Public Class xElement
Inherits RadElement
Private listElement As RadListViewElement
Public Sub New()
'Me.NotifyParentOnMouseInput = True
'Me.ShouldHandleMouseInput = True
'Me.Capture = True
'Me.CaptureOnMouseDown = True
End Sub
Protected Overrides Sub OnLoaded()
MyBase.OnLoaded()
AddHandler listElement.ItemMouseUp, Sub(s, e)
If e.OriginalEventArgs.Button = MouseButtons.Left Then
listElement.SelectedItem = e.Item
End If
End Sub
End Sub
Protected Overrides Sub CreateChildElements()
MyBase.CreateChildElements()
listElement = New RadListViewElement
With listElement
'.ShouldHandleMouseInput = True
'.NotifyParentOnMouseInput = True
'.Capture = True
'.CaptureOnMouseDown = True
.ViewType = ListViewType.ListView
.DataSource = New List(Of String)(New String() {"a", "b", "c"})
End With
Me.Children.Add(listElement)
End Sub
End Class
Imports Telerik.WinControls
<ToolboxItem(True)>
Public Class xControl
Inherits RadControl
Private element As xElement
Public Sub New()
element = New xElement()
RootElement.Children.Add(element)
End Sub
End Class
How can I find out the selected layout (list, small icon, etc.) chosen by the user at the point the dialog is closed?
Thanks
Steve
Hello
I would need to calculate the height of a grid as it would be if all the rows were visible.
I need this value to change the location of another element just below the grid.
More precisely, the grid and the other component are located within a tablelayoutpanel that has two rows, the top one is of variable height and the second of fixed height.
When the form is resized (or the grid re-loaded), I can have two situations:
1. the grid does not fit in the available space of the first row, in this case I do not need to adjust the position of the second row of the table layoutpanel
2, the grid does not fill the available space of the first row. In this case I need to change the height of the second row in order to have the second element "just" below the grid without having a large white space between the grid and the second element.
I have tried to calculate the grid height as the sum of individual gridrow height but since the gridheight of a non visible row = -1 this does not work.
Therefore I would like to have the height of the grid as if all the rows were visible and the I can proceed with my redimensionning of the layoutpanel.
I am not sure my explanations are clear ..
Thanks in advance for any suggestion
Best regards
Pierre-Jean
I would like to remove the Group option from the DataFilterAddNodeElement dropdown list when I'm adding to an existing group. Basically I only want to allow adding expressions to groups and prevent nested groups from being created. However, I still want to allow adding groups to the root node, just not to other groups. Is there a way to hide or disable the Group option in this scenario?
Thanks
Hi Team,
When click or double click in the field and the full number doesn't get highlighted on the RadMaskedEditbox.
Video Link : https://ttprivatenew.s3.amazonaws.com/pulse/suganya-gmail/attachments/16655538/TinyTake24-04-2021-01-52-14.mp4
We need to load the Phone number Textbox value as 713-000-0000 ("(###) ###-####") while loading but when i try to enter the value the RadMaskedEditbox value it should allow to type 18 characters ((###) ###-############)
Hi,
How can I prevent the DragDrop operation in the File Open and File Save dialogs?
Thanks
Steve