Telerik Forums
UI for WPF Forum
3 answers
3.4K+ views

Hello,

I want to change the text color (foreground) of the selected item in a combo box only. The rest of the control should stay as it is.

Can you help me with this?

regards,

Tobias

Stenly
Telerik team
 answered on 09 Dec 2021
1 answer
255 views

When playing around with the RadRichTextBox for WPF, the following has been noticed:

1) Type in some text using Calibri font: 

2)  Insert symbols in Wingdings font by going to Insert and add Symbol: 

3) Close the 'Insert Symbol' popup, and start typing from the Keyboard. Notice that only Wingdings symbols are being typed up: 

Question: Is this the intended behaviour in Telerik? In Microsoft Word 2013. when you insert a symbol, it does not change the font of the text. In this case, Microsoft Word will let the user type out characters in Calibri font from their keyboard after inserting Wingdings symbols through the Insert Symbols icon present in MS Word. Also, in MS 2013, the font present in the Home page would still be Calibri, it will not change to Wingdings as it does in this example.

Note: The RadRichTextBox being used is from the demo which can be downloaded here: https://demos.telerik.com/wpf/

Tanya
Telerik team
 answered on 09 Dec 2021
1 answer
82 views

Is there a way to disable the grouping of categories?

For example, I'm using a bar series and my category values are A, B, B, B, C which are being grouped and shown as A, B, C bars. I would like to display the original 5 separate bars, without grouping.

Martin Ivanov
Telerik team
 answered on 09 Dec 2021
1 answer
2.9K+ views

Hi. I'm trying to asynchronously load data in a ViewModel when the ViewModel is created. Today I am using Catel in my application for MVVM functionality. If the Control is of type Catel.UserControl then an overridden method InitializeAsync is automatically called when the control loads allowing me to async load data.

However, I am migrating this application to use Telerik Docking. For docking to work I need the controls to be of type RadPane or RadDocumentPane. Making this modification breaks Catel's InitializeAsync functionality. So I'm left searching for the best way to asynchronously load data in aTelerik RadPane/RadDocumentPane.

I might have found a working solution, but I wanted to check if there's a better way to do this. The solution I found is to add an interaction trigger that fires an async command on the RadPanes 'Loaded' event. https://newbedev.com/calling-async-method-to-load-data-in-constructor-of-viewmodel-has-a-warning

Edit: I should note that I'm using the Telerik DockingPrism7 sample.

Current XAML with Catel:

<catel:UserControl xmlns:catel="http://schemas.catelproject.com">
    <Grid>
        <telerik:RadGridView ItemsSource="{Binding Model}" />
    </Grid>
</catel:UserControl>

 

ViewModel:

public class ObjectViewModel : Catel.MVVM.ViewModelBase
{
    /// <summary>
    /// Create model and get all tenants.
    /// </summary>
    /// <param name="tenantBL"></param>
    /// <param name="security"></param>
    public ObjectViewModel(BL bl) : base()
    {
    }

    /// <summary>
    /// Initialize control. Automatically called if Control is of type Catel.UserControl.
    /// </summary>
    /// <returns>Task</returns>
    protected override async Task InitializeAsync()
    {
        await base.InitializeAsync();

        await LoadDataFromBL();
    }

    /// <summary>
    /// Load all data from the business logic.
    /// </summary>
    /// <returns>Task</returns>
    private async Task LoadDataFromBL()
    {
        await DoSomething();
    }
}

Dilyan Traykov
Telerik team
 answered on 09 Dec 2021
1 answer
93 views

Hi Guys,

When i set the chartview, the RadLegend didn't show normally..

I have uploaded my solution.

Best wishes,

JIJIKO

Stenly
Telerik team
 answered on 08 Dec 2021
2 answers
96 views

Hello.

this is version 2020.1

I have a scheduler working nicely (lots of customizations...)

Now, I am trying to edit an appointment calling RadScheduleViewCommands.EditAppointment.Execute:


public void EditAppointmentWithDialog(AppointmentDTO appointmentData)
        {
            var appo = PersistenceLayer.FindAppointment(appointmentData.ID);
            ScheduleView.scheduleView.CurrentDate = appo.AppointmentDate;
            var newAppo = Appointments.FirstOrDefault(app => app.ID == appointmentData.ID);
            ScheduleView.scheduleView.SelectedAppointment = newAppo;
            RadScheduleViewCommands.EditAppointment.Execute(null, ScheduleView.scheduleView);
        }

void IEditableObject.BeginEdit  is called, so everything is in place.

If I cancel the edit, everything goes fine.

If I just click Ok in the edit window, void IEditableObject.EndEdit is never called.

I get a null exception error and the program exits.

See the attached file for the exception log.

Thanks!

Richard
Top achievements
Rank 1
Iron
 answered on 08 Dec 2021
1 answer
269 views

Hi,

I have a GridView bound to a DataTable. The DataTable contains a combinition of numeric and non numeric columns. Null is a valid value in the the numeric columns. How do I let the user clear an existing numeric value to null?

/Brian

Stenly
Telerik team
 answered on 07 Dec 2021
0 answers
96 views

Solved.

JIJIKO
Top achievements
Rank 1
Iron
 updated question on 06 Dec 2021
1 answer
195 views

I was wondering how I can create a new Aggregation Function and add it to this list of existing Functions in "More Aggregation Options"
In this article I see that they managed to create the 'Sqrt Of Sum' function in WinForms

-> https://docs.telerik.com/devtools/winforms/controls/pivotgrid/custom-aggregation

I would like to know how I can be doing the same to add an Aggregation Function in Options in PivotGrid WPF:

Explanatory Image below:

 

Thank you!

Dilyan Traykov
Telerik team
 answered on 06 Dec 2021
1 answer
149 views
Good morning people, I'm having problems trying to create a new Calculated Field or a new Aggregate Function.

I need to add a weighted average function with the values ​​using the last column of the PivotGrid as the weight.

I happen to make the examples from the documentation and even so, the examples don't even work, the Calculates in the component are not added. Is there another way to do this?
Dilyan Traykov
Telerik team
 answered on 06 Dec 2021
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?