Telerik Forums
UI for WPF Forum
1 answer
361 views

I have a RadDateTimePicker control in my project and I can only select year, day, month and hour.

How can I select minutes from this control?


      <telerik:RadDateTimePicker DisplayFormat="Short" IsManipulationEnabled="False" InputMode="DateTimePicker" x:Name="dateslct" Grid.Row="2"  Grid.Column="2" HorizontalAlignment="Right" telerik:StyleManager.Theme="Summer" Margin="0,0,10,0" >
            </telerik:RadDateTimePicker>

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Jun 2021
1 answer
144 views

Hi there,

i found an old post where some one asked to rotate the series labels via XAML and C# code behind.
Is this possible and can you show me an example how to do this in an RadCartesianChart.

I have to do it via code behind...

TIA, Andi

Martin Ivanov
Telerik team
 answered on 28 Jun 2021
1 answer
281 views

Hello.

 

I want to make it similar to an image.

I made the design, but binding is the problem.
There is a model, there is a displayname, and there are values.

The dropdown shows the sub item name when selected, and the value uses the value when the button is selected later.

(I know listbox doesn't support this. So I try to use dropdown.)

A parent item may have a value and a child may not. This shouldn't be an option.

The IsSelected function does not exist.

 

How do I put the binding and do it?

<telerik:RadDropDownButton Content="{Binding }">
	<telerik:RadDropDownButton.DropDownContent>
		<telerik:RadContextMenu x:Name="ContextMenu" ItemsSource="{Binding }">
			<telerik:RadMenuItem Header="parent name binding 1">
				<telerik:RadMenuItem Header="child name binding 1.1"/>
				<telerik:RadMenuItem Header="child name binding 1.2"/>
				<telerik:RadMenuItem Header="child name binding 1.3"/>
			</telerik:RadMenuItem>
			<telerik:RadMenuItem Header="parent name binding 2">
				<telerik:RadMenuItem Header="child name binding 2.1"/>
				<telerik:RadMenuItem Header="child name binding 2.2"/>
			</telerik:RadMenuItem>
			<telerik:RadMenuItem Header="parent name binding 3">
				<telerik:RadMenuItem Header="child null"/>
			</telerik:RadMenuItem>
		</telerik:RadContextMenu>
	</telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>

 

Thanks.

 

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
 answered on 28 Jun 2021
0 answers
188 views

I was following the example here: 

https://docs.telerik.com/devtools/wpf/controls/radgridview/managing-data/how-to/edit-item-outside-gridview

The underlying values do change but the grid visual values don't reflect the changes?

I want to avoid using a .Refresh as that can trigger all kinds of other issues.

What am I missing?

Cheers, Rob.

Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 28 Jun 2021
0 answers
112 views

I'm populating a RadTileList using AutoGeneratingFile and setting Tile.Background to a ImageBrush, works well.  In the RadTileList.Loaded event (which seems to be happen only after all AutoGeneratingTile events have completed) I set the RadTileList.SelectedItem.

This works great when I step thru the code in debug mode.  However, if I don't step thru the code the SelectedItem will NOT be checked in the RadTileList?

Don't know how to proceed with this?

Any help?

Cheers, Rob.

 

Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
 updated question on 28 Jun 2021
1 answer
168 views

I've created a custom column for my RadGridView, where upon editing the cell, an appropriate control is shown - A RadComboBox for a boolean or an enumeration, a RadMaskedTextInput for text, and a RadMaskedNumericInput for numeric values.

This is working fine except for a slight issue with the custom column when it's using a RadComboBox. What I would like to happen is for the bound value of that cell to update as soon as the user selects a new value from the drop-down. However, the grid currently fires the CellEditEnded event only after the cell loses focus (or after the enter key is pressed), so the user has to select the item from the drop-down, and then click away from the cell for the change to take effect.

I was thinking that a solution for this would be to add an OnSelectionChanged handler to my dynamically-created RadComboBox, and then inside that handler, programmatically end/commit the edit, which would would cause the CellEditEnded event to be fired. However I can't seem to find a way to programmatically commit the edit from inside the custom column?

Alternatively, I was looking at whether the RadComboBox itself has a property that can force this required functionality, but I can't see that either. 

Thanks

 

Dilyan Traykov
Telerik team
 answered on 25 Jun 2021
1 answer
259 views

Hello.

I've written a similar post before

At that time, there was not much warning output, so I didn't care.
But if I get a lot of Resource not found output, I've seen the design load slowly.

Also, the warning didn't come up when I made a general sample project.
When I use it as a module in another program, it happens.

I used [Row Number] of GridView for Telerik Demo.
I used an implicit style and found this in CellStyle.

 

The GirdViewCell implicit style is as follows, and all warnings are printed for the ResourceKey of telerik1.

    <Style x:Key="GridViewCellStyle" TargetType="grid:GridViewCell">
        <Setter Property="Template" Value="{StaticResource GridViewCellTemplate}"/>
        <Setter Property="FontSize" Value="{telerik1:FluentResource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik1:FluentResource ResourceKey=FontFamily}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="{telerik1:FluentResource ResourceKey=BasicSolidBrush}"/>
        <Setter Property="SelectedBackground" Value="{telerik1:FluentResource ResourceKey=PressedBrush}"/>
        <Setter Property="CurrentBorderBrush" Value="{telerik1:FluentResource ResourceKey=IconBrush}"/>
        <Setter Property="MouseOverBackground" Value="{telerik1:FluentResource ResourceKey=MouseOverBrush}"/>
        <Setter Property="Padding" Value="5 0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisualStyle}"/>
    </Style>

 

 

If this is used, the above warning of the image is output.

<behaviour:GridViewRowNumber.CellStyle>
    <Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
	<Setter Property="Background" Value="LightGray"/>
	<Setter Property="TextBlock.TextAlignment" Value="Center"/>
    </Style>
</behaviour:GridViewRowNumber.CellStyle>

 

However, if you find a property in an implicit style for this warning output and wrap it in style, it does not appear.

<behaviour:GridViewRowNumber.CellStyle>
    <Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
	<Setter Property="Background" Value="LightGray"/>
	<Setter Property="TextBlock.TextAlignment" Value="Center"/>
	<Setter Property="FontSize" Value="12"/>
	<Setter Property="FontFamily" Value="Segoe UI"/>
	<Setter Property="BorderBrush" Value="Transparent"/>
	<Setter Property="SelectedBackground" Value="Transparent"/>
	<Setter Property="CurrentBorderBrush" Value="Transparent"/>
	<Setter Property="MouseOverBackground" Value="Transparent"/>
    </Style>
</behaviour:GridViewRowNumber.CellStyle>


The explanation was a bit long.

Here I want to know two things.

first. When the program crashes and opens a window, is there a way to find and apply the implicit style again?
When loading the program, all styles are read, but when the window is opened, it is assumed that the warning will not occur if read again.

second. If there is no solution, please tell me where to set ValidationBrush, PrimaryBackgroundBrush, and FocusThickness.

 

Thanks.

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
 updated answer on 25 Jun 2021
3 answers
123 views

We have documents that use RadDocumentPane and we serialize them on shutdown so we can restore them when the application restarts. The problem is that floating windows don't get their titles set.

While the application is running, forms can be dragged outside and left floating, then redocked and the titles work fine. The issue occurs after startup and the forms are restored from deserialization, floating windows end up with no title. Redocking them works but the tab has no text.

From what I can see of the XAML there are no errors reported for binding to Header or Title, yet the same code works for docked windows but not for floating windows.

Pete
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 Jun 2021
1 answer
718 views

WPF I am using Radgridview inside having so many group headers, how to merge a particular cell in a row by index of the column. If have any example project pls post here.

 

 

 

 

Thanks & Regards

Murugansilvers

Vladimir Stoyanov
Telerik team
 answered on 24 Jun 2021
1 answer
614 views

Hello,

I use RadRichTextBox and HtmlFormatProvider to render HTML string and faced issue, when Unicode hex character code "&#x200b;" is rendered like "È€b;"
Is it possible to fix it?

Input HTML string fragment:

<span>&#x200b;</span>
Expected: Zero Width Space.
Actual rendering:
Dimitar
Telerik team
 answered on 24 Jun 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?