Telerik Forums
UI for WPF Forum
1 answer
11 views
Hi
I'm using RadDocking.LoadLayout to save and restore the positions of docked panels.
My application is localized and every string in xaml is set in this form (for instance...):

Header="{DynamicResource ResourceKey={x:Static r:ResourcesKeys.key}}"
Where r:ResourcesKey.key is an index in the language dictionary selected in the application.

When I change the localization with  an existing xml for layout, the headers of panels are read from the xml and are in the previous language.
Ho can I force to rewrite the strings in the right language (without delete the layout xml file)?

Thank you
Luigi

Martin Ivanov
Telerik team
 answered on 16 Apr 2024
0 answers
5 views

Hi Telerik Team,
I'm using the below telerik version 2023.2.718.45

The default style is extracted through Office2016 theme.

For the RadGridView footers, the below are the styles used.

<Style x:Key="DefaultGridViewFooterRowStyle" TargetType="telerik:GridViewFooterRow">
                <Setter Property="Height" Value="35" />
                <Setter Property="BorderThickness" Value="0" />
            </Style>

            <Style x:Key="DefaultGridViewFooterCellStyle" TargetType="telerik:GridViewFooterCell">
                <Setter Property="Background" Value="#F1F1F1F1" />
                <Setter Property="BorderThickness" Value="0" />
                <Setter Property="HorizontalAlignment" Value="Stretch" />
                <Setter Property="HorizontalContentAlignment" Value="Stretch" />
                <Setter Property="FontWeight" Value="Normal" />
                <Setter Property="FontSize" Value="10" />
                <Setter Property="Padding" Value="0" />
            </Style>


But, from where the vertical lines are coming in the footer (Please refer the attachment).
Also, if I perform Column resizing, then the vertical line is not showing for some time and showing for some other time (Please refer 2nd attachment).
Also, sometimes the border which I used to display the sum in the footer having display issue, means the right border is hiding sometimes when I perform column resizing and sometimes without column resizing the same issue occurs.
It looks like resolution issue.
Please let us know any solution to avoid this line and right border hiding issue. It looks weird.

Premkumar
Top achievements
Rank 1
Iron
Iron
 asked on 16 Apr 2024
1 answer
58 views
Hello. How I can styling WatermarkContent in RadAutoCompleteBox?
For example DateTimeWatermarkTemplateProperty in RadDateTimePicker is simple to set. 
Martin Ivanov
Telerik team
 answered on 15 Apr 2024
2 answers
20 views

Hello,

I am new to Telerik, in my application we are using RadGridView and load the data dynamically.

when data is large, and I copy pasted from excel then my cells are not highlighted. data is pasted correctly but highlighted cell is not working.

If I edit it manually then it's working fine and I handled this highlighted cell in "CellEditEnd" event.

I walk through multiple forums but none of them are working for me.

I tried to raise ClipboardPaste event but that is not available my RadGridView control.

Also I manually created below function but "MyRadGrid.ChildrenOfType<GridViewRow>()" is not giving me all the index of my radgridview it gives 10 or 15 according to the screen size because of virtualization

private void HighlightUpdateCell(int rowIndex, int columnIndex)
        {           
            int rowNumber = 0;
            foreach (GridViewRow gr in MyRadGrid.ChildrenOfType<GridViewRow>())
            {
                if (rowNumber == rowIndex)
                {
                    gr.Cells[columnIndex].Background = Brushes.Yellow;
                    break;
                }
                rowNumber++;
            }
        }

Another approach was to create a property and set it in style but that is also not working. as cells are not showing in edited mode after pasting data.

I also tried using CellStyleSelector but the is applying changes only on load after that this method is not call itself.

 

I tried for ClipboardPaste event but unable to find that in my application.

I am using latest Telerik libraries from 2024

 

Can you please help to highlight the cells of RadGridView after paste is completed.

 

 

Meera
Top achievements
Rank 1
Iron
 answered on 12 Apr 2024
0 answers
13 views

Which controls can be used for the tool shown in the image.

[ I have circled the red color inside the image control ]

Parth
Top achievements
Rank 1
Iron
Iron
 asked on 10 Apr 2024
0 answers
13 views

I have an ImageInline in xaml file. And loading this image file is relatively slow. So I think it is the main reason throw that exception. Has anyone had this problem? Please help me answer this question.
Many thanks.

Telerik.Windows.Documents (Version: 2021.1.223.45) 

Telerik.Windows.Documents.FormatProviders.Xaml (Version: 2021.1.223.45)

Telerik.Windows.Documents.FormatProviders.Html(Version: 2021.1.223.45)

Tran
Top achievements
Rank 1
 asked on 10 Apr 2024
1 answer
9 views

Hello,

we currently use a HeatMap for our C# WPF (.NET Core) project to visualize data with a custom HeatMapDefinition.
Now we want the HeatMap to show a selection border for the selected cell, but this is not working for us as no selection border is shown.

The problem is easily reproducible in the xaml-sdk (with the CustomHeatMapSourceAndDefiniton project).
Just change in the MainWindow.xaml the RadHeatMap like this:
        <telerik:RadHeatMap x:Name="heatmap"
                            SelectionMode="SingleDataItem"
                            SelectedCellBorderColor="Magenta"
                            SelectedCellBorderThickness="5">
...

And limit the GetData parameters in MainWindow.xaml.cs to something like:
CustomHeatMapItem[,] data = this.GetData(20, 30);

According to the documentation, setting SelectionMode, SelectedCellBorderColor and SelectedCellBorderThickness like this should be sufficient, but in our test no border was drawn.

We tested in our project with a CategoricalDefinition and there the selection does work.

Looking into the source code of the HeatMap, the HeatMapColorGrid should be responsible to draw the selection border in different combinations (with and without hover, etc).
In the method RedrawAllCells() for example:
this.DrawSelectedCell(rowIndex, columnIndex, intColor);

However those calls all seem gated by if-checks with a call to this.Definition.IsCellSelected(rowIndex, columnIndex).

Which calls the method IsCellSelected from the current definition casted as HeatMapDefinition.
This method in the HeatMapDefinition always returns false and is internal, so we cannot override it within our derived custom HeatMapDefinition (as opposed to e.g. CategoricalDefinition, which overrides it).

So the question is, how do we get the HeatMap to draw the selection border, if we cannot tell it that the cell is selected?
Or did we miss something?

Martin Ivanov
Telerik team
 answered on 09 Apr 2024
1 answer
14 views

Hello,

I have a floating RadPane, I need to identify when the user stops dragging it. It can be still floating and and not docked.

Stenly
Telerik team
 answered on 08 Apr 2024
1 answer
12 views

Hello,

We are developing a medical system for hospitals. One of the functionalities is to allow users to use an editor or designer to create interactive documents such as referrals, patient questionnaires, etc. It is important that such a document could be printed, e.g. in A4 format.

Which controls will help us build designer documents?

Greetings

Jarek

Dimitar
Telerik team
 answered on 08 Apr 2024
0 answers
12 views

I have been trying to use a VirtualQueryableCollectionView with a RadGridView but no matter what I do, the grid view is always empty.

// Person is an entity.
public class Person
{
    public string Name { get; set; }
    public string Dept { get; set; }
    public double Salary { get; set; }
}

public VirtualQueryableCollectionView PeopleView { get; set; }

// dbContext is an OData DataServiceContext. peopleQuery has a Count() of 1000 items.
IQueryable<Person> peopleQuery = dbContext.Person.OrderBy(x => x.Name);
PeopleView = new VirtualQueryableCollectionView(peopleQuery) { LoadSize = 50 };    
OnPropertyChanged(nameof(PeopleView));
<telerik:RadGridView AutoGenerateColumns="True"
                     ItemsSource="{Binding PeopleView}" />
But the grid view is empty. Just wondering what I'm doing wrong. Thank you.
Wizard6650
Top achievements
Rank 1
Iron
 updated question on 06 Apr 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?