Hi, is there a way to control the orientation of Labels in CartesianGridLineAnnotation?
To avoid overlapping I would like to have a vertical label on a vertical line, which looks to me like better visual design.
But I haven't found any properties to Control simple things like orientation.
I have a very large gridview and many times when the user utilizes the search row, the screen locks up because the search never returns. I noticed that all of the checkboxes in "Search in Columns" list are checked by default. After talking with the users, I learned that they only really use a couple of the columns to search in.
In what event and how do I override the default for these checkboxes?
(screenshot attached)
Hello,
I'm having an issue incorporating a RadToggleSwitchElement into a SimpleListViewVisualItem I'm using in a RadListView. I incorporated it a while ago, and thought it was working as expected.
During testing, I noticed some odd behavior when I scroll up and down with the keyboard and not the mouse. If a RadToggleSwitchElement as been set to off and I scroll up and down with the keyboard, the switch state turns on and off as well the moment I change direction (up to down or visa versa). Oddly, I don't have to be iterating over that index alone but any index up/down will make it toggle. Also, switches from other indexes in the list that I have not touched are toggled on/off as well as I scroll further down the list. I'm assuming this has something to do with component re-use.
In order to test and make sure it's not behavior I've programmed into the code somehow, I've created a separate little project that does nothing but add a list and a very simple SimpleListViewVisualItem class containing the RadToggleSwitchElement in a StackLayoutPanel. I stripped any code that should tell the control which state to be in, as well as any other components I have in the listview control as well.
This class has exactly the same problem I am having in my solution which makes me think it's not something that I am doing. If I change the ListView selection via mouse click after setting a toggle to Off state there is no problem. If I toggle to Off and then use the keyboard keys to go up/down through the list, the toggle state is changed on/off repeatedly as I change from Up/Down or Down/Up. It seems that the moment I click with the mouse, this problem goes away entirely.
class Toggle_Test_Class : SimpleListViewVisualItem
{
private StackLayoutPanel StackLayout_Horizontal;
public RadToggleSwitchElement IR_Switch;
bool disposed = false;
protected override void CreateChildElements()
{
base.CreateChildElements();
this.BackColor = Color.Black;
this.StackLayout_Horizontal = new StackLayoutPanel()
{
Orientation = Orientation.Horizontal,
EqualChildrenWidth = true,
ShouldHandleMouseInput = false,
NotifyParentOnMouseInput = true,
};
this.IR_Switch = new RadToggleSwitchElement()
{
MaxSize = new Size(150, 40),
OnText = "Color",
OffText = "IR",
};
this.StackLayout_Horizontal.Children.Add(this.IR_Switch);
this.Children.Add(StackLayout_Horizontal);
}
protected override void SynchronizeProperties()
{
this.BackColor = Color.Black;
base.SynchronizeProperties();
}
protected override Type ThemeEffectiveType => typeof(SimpleListViewVisualItem);
//Dispose items
public new void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
// Protected implementation of Dispose pattern.
protected new virtual void Dispose(bool disposing)
{
if (disposed)
return;
if (disposing)
{
StackLayout_Horizontal.Dispose();
IR_Switch.Dispose();
}
disposed = true;
}
}
Please let me know I am overlooking a setting or there is some other solution to this problem.
Thanks!
Hellow everyone
When I right-click on RadMaskedEditBox, it will show me copy and paste, but it shows me English. How can I show it in a different language?
Hellow everyone
The TextChanged event cannot be fired when RadDateTimePicker drops down to select a date or enters a date, How can I use the TextChanged event?
Hello, everyone.
I used to use the DataGridVew. Rows (a). DefaultCellStyle. BackColor attribute in DataGridVew.
Now I want to implement:
DataGridVew1. Rows (a). DefaultCellStyle. BackColor = Color. Red.
How do I implement it in RadGridView? Who can help me?
Dear all,
I am trying to export a PDF file to Excel file (.xlsx or xls). The PDF fiel contains some tables and i need to process them.
I am programing in vb .NET.
I have used FormatProviders, but it always export to PDF.
I can't find the option to export to Excel format.
Is it posible?
do you have an example?
The code I have used:
Dim sampleFile As String = "C:\TEMP\RESERVA HIDRAULICA.pdf"
Using stream As Stream = New FileStream(sampleFile, FileMode.Open, FileAccess.Read)
Dim document As Telerik.Windows.Documents.Fixed.Model.RadFixedDocument = New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider().Import(stream)
Dim dialog As SaveFileDialog = New SaveFileDialog()
dialog.Filter = String.Format("{0} files|*.{1}", "xlsx", "Xlsx")
dialog.FileName = "Result.xlsx"
If dialog.ShowDialog() = DialogResult.OK Then
Using saveStream As Stream = dialog.OpenFile()
Dim pdfFormatProvider As Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider = New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider()
pdfFormatProvider.Export(document, saveStream)
End Using
End If
End Using
Thanks a lot,