I would like to request 2 features/properties:
public class MyMaskDateTimeProvider : MaskDateTimeProvider
{
public MyMaskDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
: base(mask, culture, owner)
{
this.AutoSelectNextPart = true;
}
public override void SelectFirstItem() { } //base.SelectFirstItem(); //we do not want to go back to the days after the year part
protected override void HandleKeyPressDay(MaskPart part, KeyPressEventArgs e)
{
if(!int.TryParse(e.KeyChar.ToString(), out int result))
return;
string str = part.value.ToString();
int num1 = 0;
int num2;
if(part.hasZero)
{
if(num1 < part.min
|| num1 > part.max)
{
num2 = result;
}
else
{
if(str.Length > 1)
str = str.Substring(1);
num2 = int.Parse(str + e.KeyChar);
}
}
else
{
if(str.Length > 1)
str = str.Substring(1);
num2 = int.Parse(str + e.KeyChar);
}
if(part.day)
{
MyDayLogic(part, num2, result);
}
else
{
part.value = num2 < part.min || num2 > part.max
? result
: num2;
}
part.hasZero = result == 0;
}
private void MyDayLogic(MaskPart part, int num2, int result)
{
//logic for not continuing when changing days and current set month has less days then days needed, when that happens add one month to the current
if((num2 < part.min)
|| (num2 > part.max))
{
if((num2 > part.min)
&& (num2 <= 31))
{
SelectNextEditableItem();
Up(this.List[this.SelectedItemIndex], this.MinDate, this.MaxDate);
SelectPrevEditableItem();
SelectNextEditableItem();
part.value = num2;
}
else
{
part.value = result;
}
}
else
{
part.value = num2;
}
}
}
i am not able to run the Quickstart examples
when i opened the solution in visual studio and run it, its throwing the error application its throwing error as "FileNotFoundException: Could not find file 'C:\Users\rpeddala\AppData\Roaming\Telerik\WinForms\Examples\Analytics\config.xml"as shown below
Hi,
It would be cool if we had a Material Dark Theme,
More and more we see clients requesting this from our apps since Google has popularized the trend now.
Thanks
Changing the preferred width of columns to percentages from the Table Properties dialog actually sets them in pixels. Steps to reproduce: 1) Insert a table 2) select table column property and set preferred width to 20% 3) press "next column" button and set preferred width to 20% 4) Go to previous columns Expected: Column width is set in percentage. Actual: Some (or all) columns have width set in pixels.
To reproduce:
- Open The popup
- Click on it, and then click on the form
- Repeat until the popup stays opened
Hello Guys,
Good Evening , As per your suggestions i make my custom treeview node with LiteVisualElements .
In That Node i have taken one StackLayoutElement and RoundRectShape assigned to it but still panel shows corners instead of round edges,
i tried with different properties and styles but not get succeed , so please help me out.
here i have attached image of my node and "stackLayoutElement" code too.
spnlControls = new StackLayoutElement();To reproduce:
radCheckBox1.Font = new Font("Segoe UI", 20, FontStyle.Regular);Workaround:
radCheckBox2.ButtonElement.Font = new Font("Segoe UI", 20, FontStyle.Regular);
Hello,
I have already used your ItemFormatting event in my code and implemented it the same way you have provided.
In my code, i have created 7-8 messages and fixed the first msg's timestamp to "6/6/2019 11:53:08 AM" and the remaining messages with timestamp of 2 minutes more than this time. Whenever the event is triggered i wrote a code which compares the timestamp of my message with this timestamp "6/6/2019 11:53:08 AM". Conditionally only the first message falls in this condition and i paint it red, which works well for first time (On load) and then when i scroll my chat, the event unnecessarily paints the remaining msgs too, which should not happen.
I am attaching my .cs file with designer please refer to it, and resolve this asap. Looking forward to your response.
Thanks.
Hi All,
Note:- I am using Bound RadTreeview. Bound with DataSource.
1 Take RadTreeview
2 Add Few nodes Like:
......Node A
......Node B
......Node C
............Node D
............Node E
3 Now Drag Node B and Drop it in Node C (As Node C's Child)
4 It throw Exception Error Msg "Collection was modified; enumeration operation may not execute."
5 Now Try to Drag Node E and Drop it in Node B, again same error occurs
6 Full error screen i attached here.
Please reply as soon as possible.
When creating a composite filter descriptor with a value that contains an array of enums, it generates an expression with IN, and an exception is thrown when adding it to the FilterDescriptors on a RadGridView control.
Exception Message:
{"The expression contains undefined function call In()."}
The expression value is: ([RandomPropertyName] IN (1,3,9) OR [RandomPropertyName] = 10)
We have recently upgraded from 2015.2.728.40 (where this worked) to the Feb. 2019 version, then today upgraded to the May 2019 version. The issue remains.
The project includes the following Telerik references:
Telerik.WinControls
Telerik.WinControls.GridView
Telerik.WinControls.PdfViewer
Telerik.WinControls.RadDock
Telerik.WinControls.RadMarkupEditor
Telerik.WinControls.UI
Telerik.Windows.Documents.Core
Telerik.Windows.Documents.Fixed
Telerik.Windows.Zip
TelerikCommon
ChildRowHeight can be set on the main table element of the control like this:
this.radGridView1.TableElement.ChildRowHeight = 750;
When the grid is in a hierarchy and a parent row is expanded, the inner child template will create a new table element and its ChildRowHeight is 205 which is the default value. It would be expected that the height of the inner table element is initially set as the height of the main table element of the control.
A possible workaround is to handle the ChildViewExpanded event of the grid this way:
private void RadGridView1_ChildViewExpanded(object sender, Telerik.WinControls.UI.ChildViewExpandedEventArgs e)
Use attached to reproduce.
- In the excel-like filter popup unselect 0.1, 0.2, and 0.3 and then click "Fork"
- When the layout is loaded the values are changed to 1, 2, and 3.
Workaround:
Change the culture before saving/loading the layout.
Use attached to reproduce.
Type "Christoff" and scroll down.
Workaround:
public RadForm1()