Telerik Forums
UI for WPF Forum
1 answer
186 views

Hi,    

I'm trying to create a custom component that inherits from RadGanttView, but I'm not sure what the intended workflow is intended to be. Namely to set my columns, rows, taskssource,... up. Here are the steps that I took:  

1- Create a "CustomGantt.cs" class that inherits from RadGanttView   

2- Create a Generic.xaml file. Within that file, create a style that targets CustomGantt and is based on the default RadGanttViewStyle   

3- Add said Generic.xaml file to my App.Resources   

Now I can add my CustomGantt control to any of my views, and it does display a Gantt as intended, however, this, is not enough as I've yet to define my columns, rows, source,.... But I'm unsure of what the best way to do that is supposed to be. Should I create a ControlTemplate within my Generic.xaml file in which I add a RadGanttView that I can then set up?     

Thanks a lot for your help!

Dilyan Traykov
Telerik team
 answered on 19 Oct 2022
2 answers
110 views

We have a RadGridView which contains a combobox, bound to a collection of custom objects. 

At the moment the full text search does not take the combobox items into consideration when searching.

 

How can i tell the fulltextsearch to search in the title of the, in the combobox chosen, object?

Fabian
Top achievements
Rank 1
Iron
 updated answer on 19 Oct 2022
1 answer
93 views

Hi,
I have a radPane defined as following.

The text is loaded dynamically so i can select a different StringDictionary.
It works perfectly on every string in application and also in this control, but the header is still in the original language (the dictionary is initially loaded and succesively discarded).

You can see the effect on the image attached: the text on the tab is correct, while the text on the header is wrong.

Thank you

Luigi

 

<t:RadPane  
		DataContext="{Binding DataContext, ElementName=radDocking1}"
		IsHidden="{Binding StatoFinestre.FinestreProgetto.DatiHidden, Mode=TwoWay}">
		<t:RadPane.Header>
		   <local:StackPanelText Orientation="Horizontal">
			<Image Source="/Images/Tab Dati_24x24.png" Style="{StaticResource TreeviewImageSize}"/>
			<TextBlock Text="{DynamicResource ResourceKey={x:Static r:ResourcesKeys.TabProjectDatiHeader}}"/>
		  </local:StackPanelText>
		</t:RadPane.Header>
Martin Ivanov
Telerik team
 answered on 18 Oct 2022
1 answer
154 views

Hello,

We have a project that currently uses Telerik 2013. We need to gradually upgrade different screens in the system to use Telerik 2022.

How do you recommend we do that? Can we use Telerik 2013 dlls and Telerik 2022 dlls in the same project?

Thanks in advance.

Paul

Martin Ivanov
Telerik team
 updated answer on 18 Oct 2022
1 answer
97 views

I am looking to mimic Spreadsheet behaviour where a user selects two or more cells in a row and then the user drags to the right to trend and fill in additional values according to the linear trend. 

How could I go about overloading the RadGridView to provide behaviour like this? I have seen posts about using CustomAdorner to give a thick line around the selected cells. What would be required to change the mouse cursor when the "Think" line around the selected cells is hovered over, and capture the dragged-over cells when the user executes the drag operation?

Any help you can provide would be much appreciated.

Martin Ivanov
Telerik team
 answered on 17 Oct 2022
1 answer
154 views

What happens: 

- User inputs some keyword: eg "Yaris"

- User wants to select "Yaris Cross" which is next in list

- User uses Down Arrow to select next item

- Instead the RadComboBox selects the first element in the whole list. 

Expected:

- User inputs some keyword: eg "Yaris"

- User wants to select "Yaris Cross" which is next in list

- User uses Down Arrow to select next item

- Next item in list is highlighted

- User presses ENTER to select element

 

What setting do i need to set ? 

<telerik:RadComboBox x:Name="ModelPicker"
			                     Width="150"
			                     Height="28"
			                     CanAutocompleteSelectItems="False"
			                     DisplayMemberPath="ModelNavn"
			                     IsEditable="True"
			                     IsEnabled="{Binding CanChangeVariant}"
			                     IsSynchronizedWithCurrentItem="False"
			                     ItemsSource="{Binding Source={StaticResource SortedModels}}"
			                     OpenDropDownOnFocus="True"
			                     SelectAllTextEvent="GotFocus"
			                     SelectedItem="{Binding BrandModel.SelectedCarModel}"
			                     StaysOpenOnEdit="True" />


Stenly
Telerik team
 answered on 14 Oct 2022
0 answers
118 views

The bug is only occurring when working with footnotes.

More detailed explanation:

1)  Open Telerik WPF Demos projects for RadRichTextBox

2) Add a footnote, type some text in it

3) Important: scroll the view so the footnote is not visible (maybe to the end of the document)

4) Set mouse cursor at any part of the main document (main text)

5) After this the document is completely blocked for for most of the edit functions:
You can't cut, delete, replace or undo

But you can only type new symbols with a keyboard.

I think that the reason that causes this bug is that the RadRichTextBox's commands stay linked to the footnote, and not to the active document's body. Maybe event ActiveDocumentEditorChanged didn't properly worked, and didn't changed the current context.

Vasily
Top achievements
Rank 1
 updated question on 14 Oct 2022
0 answers
63 views

Bug: Adding a figure -> smile leads to error message that you can only close by killing an application.

more thorough description (follow these simple steps to reproduce this issue/bug) :

1) Open Telerik WPF Demos projects for RadRichTextBox.

2) Try adding a figure -> smile.

3) Enjoy watching an infinite error message that you can't ever lose. The only way out is to close the application with task manager.

Vasily
Top achievements
Rank 1
 updated question on 14 Oct 2022
4 answers
207 views

I learned from the (still imperfect) Documentation, that in an MVVM Scenario one would use QueryableEntityCoreCollectionView to handle various CRUD Scenarios.

 

Constructing the QueryableEntityCoreCollectionView like so inevitably leads to a DB-Query fetching all rows, without any limitation.


var purchaseOrderContext = new PurchaseOrderContext();

PurchaseOrdersView = new QueryableEntityCoreCollectionView<PurchaseOrder>(purchaseOrderContext, purchaseOrderContext.PurchaseOrders, new Collection<string>());

Am I using it wrong?

 

The Context is of type Microsoft.EntityFrameworkCore.DbContext

 

Anyone?

 

Thx, Martin

 

Vladimir Stoyanov
Telerik team
 answered on 13 Oct 2022
1 answer
280 views

Telerik Team,
In my project 
I have used material theme for the Telerik grid ( Xaml approach )and I want to adjust the height of header row. To achieve this If I Modify the height in common template, It will be applied to all the pages, Is there any way to modify the header height and header cell height specific to the page ? 

If so, please let me know how to change the height. Thanks in advance

 

Martin Ivanov
Telerik team
 answered on 12 Oct 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?