Telerik Forums
UI for WPF Forum
1 answer
116 views

With the release 2020.1.115 the following changes were made:

The RowValidating event is now fired when the UI virtualization prepares a row to be shown in the viewport. There is a new value in the GridViewEditOperationType enum - None for this specific case.

I need the behaviour before this release. So when UI virtualization prepares a row to be shown in the viewport the validation should not take place. Only when a cell was edited / changed. I need the ValidationResults which are not provided in RowEditEnded Event.

What do I have to change in this case?

 

Vladimir Stoyanov
Telerik team
 answered on 28 Feb 2020
2 answers
124 views
"Shape" DragEnter doesn't work like "ContainerShape" does



RadDiagramContainerShape has OnDragEnter Event. so, on Diagram, if i drag shape into Containershape then DragEnter, DragOver, DragLeave are worked.

but Shape doesn't have DragEnter and DragOver. 



i want to do senario that when "Shape" is dragged to other "Shape", other "Shape"'s DragEnter event is activated.



i handled DragEnter on "Shape",

"DragDropManager.AddDragEnterHandler(this, MyDragEnterEventMethod);"



but, MyDragEnterEventMethod doesn't work when "Shape" is dragged to other "Shape" on Diagram.

MyDragEnterEventMethod only work when control DragContent to DragDropManager.AddDragInitializeHandler.



DragDropManager.AddDragInitializeHandler Code is below

DragDropManager.AddDragInitializeHandler(this.diagram, OnDragSourceDragInitialize);



and OnDragSourceDragInitialize Code is below

private void OnDragSourceDragInitialize(object sender, DragInitializeEventArgs e)
        {
            this.dragVisualControl.Content = this.PrepareDragVisualTypeB(e.OriginalSource as RadDiagramShape);
            e.DragVisual = this.dragVisualControl;
            e.DragVisualOffset = e.RelativeStartPoint;
            e.AllowedEffects = DragDropEffects.All;
        }

Shape DragEnter doesn't work like ContainerShape does

 

RadDiagramContainerShape has OnDragEnter Event. so, on Diagram, if i drag shape into Containershape then DragEnter, DragOver, DragLeave are worked.

but Shape doesn't have DragEnter and DragOver. 

 

i want to do senario if shape is dragged to other shape then other shape's DragEnter event is activated.

 

i tried to handle DragEnter on shape,

"DragDropManager.AddDragEnterHandler(this, MyDragEnterEventMethod);" in Customshape implements RadDiagramShape,

 

but, MyDragEnterEventMethod doesn't work when shape is dragged to other shape on Diagram.

MyDragEnterEventMethod only work when control DragContent to DragDropManager.AddDragInitializeHandler.

 

DragDropManager.AddDragInitializeHandler Code is below

DragDropManager.AddDragInitializeHandler(this.diagram, OnDragSourceDragInitialize);

 

and OnDragSourceDragInitialize Code is below

private void OnDragSourceDragInitialize(object sender, DragInitializeEventArgs e)
        {
            this.dragVisualControl.Content = this.PrepareDragVisualTypeB(e.OriginalSource as RadDiagramShape);
            e.DragVisual = this.dragVisualControl;
            e.DragVisualOffset = e.RelativeStartPoint;
            e.AllowedEffects = DragDropEffects.All;
        }

 

How do i Activate Shape DragEnter, DragOver, DragLeave like ContainerShape does?

i need to cases

case 1. when it dragged "Shape1" to "Shape2", "Shape2"'s Drag Enter is activated.

case 2. when it dropped "Shape1" to "Shape2", "Shape2"'s Drop Event  is activated.

Petar Mladenov
Telerik team
 answered on 26 Feb 2020
5 answers
159 views
Hello,
I am trying to create custom ContainerShape which looks like the attached files.

1) Sample01.png file
In the header, I want to add the 'text' and 'collapsible' button.
For the Child area, I want to add text boxes, arrow image, and connections.
In the middle, I want to add a '+' button, where a user can drag & drop a shape into containerShape.

2) Sample02.png file
In the header, I want to add 'text' and two buttons('+' and 'collapsible').
For the Child area, I want to add two separate areas, where each area contains its child items.
'+' button for each area is for a user to drag & drop a shape into the corresponding area.


3) Sample04.png file
So my question is how can I customize the red outlined area in sample04.png
to create custom containerShape described in sample01.png and sample02.png.

Any help will be greatly appreciated.

Thanks.


Dinko | Tech Support Engineer
Telerik team
 answered on 26 Feb 2020
4 answers
134 views

Hi,

in 2018.2.515.45 version of telerik RadGridView I did:

var col = new GridViewDataColumn() { DataMemberBinding = new Binding(item.Name), Header = header };
col.CellStyle = new Style();
col.CellStyle.Setters.Add(new Setter(GridViewCell.FontWeightProperty, FontWeights.Bold));
MyRadGridView.Columns.Add(col);

 

to set the font of a certain column to bold. Now, after update to 2020.1.115.45 version this is not working any more. The content of this column is invisible.

I tried this:

col.CellStyle = new Style() { TargetType = typeof(GridViewCell) };

but no changes.

 

How can I add a setter to the style in new version?

BR Gert

 

 

 

Gert
Top achievements
Rank 1
 answered on 26 Feb 2020
7 answers
273 views

Hi, 

 

is it possible to enter 030120 but have the Preview ToolTip in format dd.MM.yyyy and also wenn leaving the control (d1.jpg, d2.jpg, d3.jpg, d4.jpg)?

 

BR Gert

Gert
Top achievements
Rank 1
 answered on 26 Feb 2020
0 answers
140 views

Dear Telerik support team,

I would to customize the style of TileViewItem in order make the content when maximizing overlap the other control (it doesn't take spaces of other controls in my screen when maximizing).

Would you please help to style it?

 

Below is my current xaml:

01.<telerik:RadTileView x:Name="TitleView"
02.                            RowHeight="{Binding HeightConcept, UpdateSourceTrigger=PropertyChanged}" ColumnWidth="{Binding WidthConcept, UpdateSourceTrigger=PropertyChanged}"
03.                            Width="{Binding MaximizedWidthConcept, UpdateSourceTrigger=PropertyChanged}"
04.                            MaxHeight="{Binding MaximizedHeightConcept, UpdateSourceTrigger=PropertyChanged}" MinimizedRowHeight="Auto"
05.                            MinHeight="0"
06.                            ColumnsCount="1" RowsCount="1"
07.                            MaximizeMode="ZeroOrOne"  ScrollViewer.CanContentScroll="False"
08.                            DragMode="{Binding ElementName=dragMode, Path=SelectedItem}" IsItemsSizeInPercentages="True"
09.                            PreservePositionWhenMaximized="True"
10.                            telerik:TileViewPanel.IsColumnsShrinkEnabled="True"
11.                            telerik:TileViewPanel.IsRowsShrinkEnabled="False" telerik:TileViewPanel.IsSizeBoundToPosition="False"
12.                            HeaderStyle="{StaticResource TileItemHeaderStyle}"
13.                            ItemTemplate="{StaticResource HeaderCustomTemplate}"            
14.                            ItemsSource="{Binding Items}"
15.                            TileStateChanged ="TitleView_TileStateChanged"
16.                            Background="Transparent"
17.                            >
18.           <telerik:RadFluidContentControl x:Name="FluidControl" ContentChangeMode="Manual" State="Large"
19.                                           TransitionDuration="0:0:.1" Height="Auto" Background="Transparent">
20.               <telerik:RadFluidContentControl.Content>
21.                   <Grid></Grid>
22.               </telerik:RadFluidContentControl.Content>
23.               <telerik:RadFluidContentControl.LargeContent>
24.                       <telerik:RadMultiColumnComboBox x:Name="MultiColumCombo1" Width="{Binding SearchBoxWidth, UpdateSourceTrigger=PropertyChanged}"
25.                                                       MinWidth="0" MinHeight="0" VerticalAlignment="Top" HorizontalAlignment="Left"
26.                                                       DisplayMemberPath="{Binding GridItem.ThirdFullName}"
27.                                                       DropDownMinWidth="{Binding DropDownMinWidthConcept, UpdateSourceTrigger=PropertyChanged}"
28.                                                       DropDownMaxWidth="{Binding DropDownMaxWidthConcept, UpdateSourceTrigger=PropertyChanged}"
29.                                                       SearchMode="MatchAnyTerm"
30.                                                       SelectionMode="Multiple" AutoCompleteMode="Search"
31.                                                       SelectionBoxesVisibility="Visible"
32.                                                       SelectionBoxStyle="{StaticResource SelectionBoxCustomStyle}"
33.                                                       NullText="..."
34.                                                       DropDownPlacement="Bottom" FooterVisibility="Visible"
35.                                                       FooterContentTemplate="{StaticResource FooterCheckBoxTemplate}"
36.                                                       CloseDropDownAfterSelectionInput="True"
37.                                                       GotFocus="MultiColumCombo1_GotFocus">
38.                           <telerik:RadMultiColumnComboBox.ItemsSourceProvider>
39.                               <telerik:GridViewItemsSourceProvider x:Name="ItemsSourceProviderGrid1"
40.                                            ItemsSource="{Binding DataSource, Mode=TwoWay}"
41.                                            ShowColumnHeaders="True"
42.                                            RowIndicatorVisibility="Collapsed"
43.                                            AutoGenerateColumns="False"
44.                                            >
45.                               </telerik:GridViewItemsSourceProvider>
46.                           </telerik:RadMultiColumnComboBox.ItemsSourceProvider>
47.                       </telerik:RadMultiColumnComboBox>
48.               </telerik:RadFluidContentControl.LargeContent>
49.           </telerik:RadFluidContentControl>
50.       </telerik:RadTileView>
minh
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 26 Feb 2020
2 answers
129 views
Hello,



I'm sorry to leave so many questions.

Here's the question.

I'd like to find out if the point above the diagram is within the connection.

Other DiagramItems, such as Shape, could calculate to Shape.Bounds.Contains(point).

However, the connection is a line, so if you calculate it as Bounds, there is a problem that i can't measure properly.

I want to get a bool value for the point above the connection or, if possible, within an interval between 1 and 5 around the connection line.

Connection.Geometry has a different position value and connection.Geometry doesn't have been activated by fillcontains or stalkcontains.
seokhyun
Top achievements
Rank 1
Veteran
 answered on 26 Feb 2020
8 answers
190 views

Hello,

When setting the Layer property by code, it works as expected. But, when a layer is selected by the user, the Layer property doesn't change!

Vladimir Stoyanov
Telerik team
 answered on 25 Feb 2020
7 answers
602 views

Hello,

Typing characters with switching IME input mode will crash your RichTextBox sample application.
In 2017.2.614 the process is killed and in 2020.1.115 an exception is thrown.

Could you tell us a solution to this problem?
Also, do you plan to fix your components for this problem?

Reproduction steps:
1. Start editing rich text
2. Switch IME input mode to Hiragana
3. Switch IME input mode to AlphanumericHalfWidth
4. Enter "," (comma) by key operation
5. Switch IME input mode to Hiragana
6. Enter any characters by key operation
⇒ The application crashes

Exception information:
Value cannot be null.
Parameter name: insertIMETextCommandContext

 

Best regards,

Tanya
Telerik team
 answered on 25 Feb 2020
2 answers
483 views

Hello Admin,

I am now using RadCartesianChart's LineSeries to show tooltip. But when loading massive amount of data about 18866 record, UI becomes very slow to show tooltips and finally becomes freeze. Could you please help me how to solve this issue? Thanks.

 

Vladimir Stoyanov
Telerik team
 answered on 24 Feb 2020
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?