Telerik Forums
UI for WPF Forum
1 answer
130 views

I have referred to example solutions and projects provided by Progress/Telerik.

I have a sample WPF application which refers to the Csharp.ReportLibrary project,  and under Csharp.ReportLibrary I have added a Folder which contains .cs component design file(CardSummary.cs in below image). This design file is the ui of my report.

The question is , is it possible to bind this component with a object data source at run time? where the object can be of any user defined type?

Currently by right clicking the object datasource icon and changing properties of DataMember and DataSource, I am only able to bind it to a method within a class file which returns list. (CardSummaryActivity.cs is the class as shown in below image)

 

 

Todor
Telerik team
 answered on 19 Sep 2022
0 answers
97 views

Hi,

We are using the Telerik diagram control as a templating tool to allow users to create various templates, and then use the template to generate labels for records in the DB by replacing placeholders in the template text.  

This is simple enough, serialize the template, make replacements, load the template again using WPF diagram control and export as image.  However, when you wish to export thousands of images, this can become time consuming.

The Diagram control being a control needs a UI thread, WPF has a single UI thread, and as such even if  you add multiple instances of the diagram control, you can not technically achieve parallel processing since everything has to go through the serialized Dispatcher of the UI thread.

So my question is, is their a way perhaps through some Diagram API wherein batch processing can be achieved in a multithreaded scenario? Do note that we have elements that need to resize automatically (auto width / height)  based on the new content that is merged, also the SVG export of Diagram has limits since it does not support all elements such as images.

The only solution so far that we think might work is to create multiple instances of the program itself, however for many reasons, I would rather prefer a multi-threaded solution in a single application.

Mrugendra
Top achievements
Rank 1
Iron
 asked on 17 Sep 2022
1 answer
185 views

Hello,

is it possible to use a ListCollectionView for BindingToICustomTypeDescriptor in a RadGridView?

If yes how?

I attached the project from Telerik and tryed it out with an ListCollectionView but the data will not show properly.

Dilyan Traykov
Telerik team
 answered on 15 Sep 2022
0 answers
129 views

Hi,Telerik Team,

I‘m using RadGridView  and  “EventToCommandBehavior.EventBindings”  to   process  GridViewRow's MouseEnter event,

but “EventToCommandBehavior.EventBindings”  is  in RadGridView's  range,it couldn’t  connected  with  GridViewRow's  MouseEnter event exactly ,

which eventName should I use  when I need   GridViewRow's MouseEnter event.

this is  my code :


            <telerik:EventToCommandBehavior.EventBindings>
                        <telerik:EventBinding Command="{Binding RowMouseEnterCommand}"    EventName="MouseEnter" CommandParameter="{Binding ElementName=GridView, Path=SelectedItem}"/>
                    </telerik:EventToCommandBehavior.EventBindings>

Thanks!

Justin
Top achievements
Rank 1
 updated question on 13 Sep 2022
1 answer
145 views

Hello guys,

The multisorting in RadGridView on desktop works very well with the help of "Shift" key.

But I want to implement it for the tablet computer. I want to be able to do a multisorting on my RadGridView by tapping and holding (https://docs.telerik.com/devtools/wpf/common-information/touch-support)  a column instead of the "Shift" key.

How can I do this?

Thanks in advance for your help.

Dilyan Traykov
Telerik team
 answered on 13 Sep 2022
1 answer
348 views

Hi,

I saw in other question that someday you will turn the UniqueName property into obsolete.

I need to save some configuration about the GridViewColumns to a file. I saw that when I use DataMemberBinding, the UniqueName name holds the Binding property name, but if I define a cell template without data member binding, the UniqueName property is null. How can I guarante the uniquenes of a column identifier? even if I put DataMemberBinding in all columns, theoretically I can have the same UniqueName name twice (binding two same property twice and showing different path in the cell template of the column).

 

It is not logical to call a property UniqueName without being unique. Can you help me please ??

How do you guarantee the uniqueness in your PersistenceManager implementation??

 

Martin Ivanov
Telerik team
 answered on 12 Sep 2022
0 answers
105 views
No question
MJ
Top achievements
Rank 1
 updated question on 09 Sep 2022
0 answers
77 views

I am using Windows 8 theme with RadTreeListView version 2020.1.218.  I'm trying to get it to preview what is being dragged while dragging but that doesn't seem to be available.  My main code is more complicated but I also reproduced this with some really basic code:

        <telerik:RadTreeListView ItemsSource="{Binding Samples}" IsDragDropEnabled="True" IsDragPreviewEnabled="True">
            <telerik:RadTreeListView.DragCueItemTemplate>
                <DataTemplate>
                    <TextBlock Text="test"></TextBlock>
                </DataTemplate>
            </telerik:RadTreeListView.DragCueItemTemplate>
        </telerik:RadTreeListView>

The classes referenced are just simple example classes; the 'Samples' property is on the view model and is a collection of classes that have a single property.  I am referencing the NoXaml packages as well as the Windows8 theme package.  When I start this application it shows the grid correctly and lets me start a drag and drop, but there is no preview.  I have also tried this without the drag cue item template set with the same result.  

Am I missing something?  Is there not a way to do this with Windows 8 theme?

Stephen
Top achievements
Rank 1
 asked on 07 Sep 2022
1 answer
117 views

Hi

Is it possible to stop tab item from being selected when dragging? We have a quite complex UI which takes long time to render (this is an ongoing issues and we are working on it) and when user tries to drag a tab item within RadDocking it takes a long time. We already use Deffered mode for dragging, but if an item is not selected/rendered it will take a while to render and then drag. I hope this makes sense.

Here is how we have our Docking set up:


<telerik:RadDocking DragDropMode="Deferred" AllowDragReorder="True">
	<telerik:RadDocking.DocumentHost>
		<telerik:RadSplitContainer>
			<telerik:RadPaneGroup telerik:RadDocking.SerializationTag="DocHost">
			</telerik:RadPaneGroup>
		</telerik:RadSplitContainer>
	</telerik:RadDocking.DocumentHost>
</telerik:RadDocking>

RadPanes are added from code as they are deserialised per user. I will skip that code for this question but can add it if needs be. 

We also have a style that is assigned to the dragged visual, like so:


<Style TargetType="telerik:DraggedElementVisualCue">
	<Setter Property="Template">
		<Setter.Value>
			<ControlTemplate TargetType="telerik:DraggedElementVisualCue">
				<Grid>
					<Rectangle Fill="WhiteSmoke"/>
					<TextBlock Text="{Binding Title}"/>
				</Grid>
			</ControlTemplate>
		</Setter.Value>
	</Setter>
</Style>

I am not sure if this has any effect on this but wanted to include it just in case.

 

TIA

Dilyan Traykov
Telerik team
 answered on 06 Sep 2022
1 answer
117 views

Hello!

I am a new user of Telerik UI for wpf.
I have encountered a problem in a project in which I am working on.

The problem consist in the unability to identify the RadTreeViewItem on which a MouseRightButtonUp event is executed.

The setting is as follows, 

I have a RadTreeView that I fill dynamically through a databind of its ItemSource property.
And the event mentioned above (MouseRightButtonUp) is bound to the RadTreeView xaml tag,
since I do not have the RadTreeViewItem /s as a tag in my xaml.


How can I recover the child in which the event MouseRightButtonDown/MouseRightButtonUp, was triggered?
Thanks in advance for any help / clarification


Kind regards

Marko
Top achievements
Rank 2
Iron
 updated answer on 05 Sep 2022
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?