Telerik Forums
UI for WPF Forum
3 answers
109 views

 

Mornings,

When we set a "contains" filter with fieldlist we need to know which rows are excluded by it. We have seen that the FilteredGroups property exists but it is not accessible.

Is there any way to find these filtered elements? 

Are there any events that can be intercepted in the filtering action itself?

Library vVersion: 2017.1.117.45

Thanks for everything

Regards

 

Vladimir Stoyanov
Telerik team
 answered on 28 Jul 2021
4 answers
658 views
Chinese Characters become messy codes when pasting from MS word. But it displays properly from web pages or textboxes.
Tanya
Telerik team
 answered on 27 Jul 2021
2 answers
265 views

Hello,

I have a custom Style Selector to modify rows backgorund when selected or mouse over in a RadGridView. The style selector  works as expected when I select an item or do a multiple selection.

The problem comes when I perform a SelectAll() in my VM (or codeBehind). In this case the StyleSelector is not apply and is aparently  using the default style for selected items. 

Curiously it does work correctly when I select all the elements with the keyboard shortcut( ctrl + A)

Here is the style selector code:

<deltaTemplate:LastFoundInUpdateStyle x:Key="LastFoundInUpdateStyle">
            <deltaTemplate:LastFoundInUpdateStyle.GridViewRowCoreStyle>
                <Style TargetType="telerik:GridViewRow">
                    <Setter Property="Background" Value="#FFFFFFFF"/>
                    <Setter Property="SelectedBackground" Value="#FFE0E0E0"/>
                    <Setter Property="MouseOverBackground" Value="#FFF5F5F5"/>
                </Style>
            </deltaTemplate:LastFoundInUpdateStyle.GridViewRowCoreStyle>
            <deltaTemplate:LastFoundInUpdateStyle.LastFoundInUpdateGridViewRowCoreStyle>

                <Style TargetType="telerik:GridViewRow">
                    <Setter Property="Background" Value="LightGoldenrodYellow"/>
                    <Setter Property="SelectedBackground" Value="#FFF9F964"/>
                    <Setter Property="MouseOverBackground" Value="#FFF9F964"/>
                </Style>
            </deltaTemplate:LastFoundInUpdateStyle.LastFoundInUpdateGridViewRowCoreStyle>
        </deltaTemplate:LastFoundInUpdateStyle>
And the RadGridView :
 <telerik:RadGridView              
                Grid.Row="0"
                Margin="0,0,0,10"
                x:Name="JobcardGridView"
                SelectionMode="Extended"
                ItemsSource="{Binding JobcardViewItemQueryableCollection}"
                Style="{StaticResource RadGridViewJobcardRawReviewStyle}"
                LeftFrozenColumnCount="2" 
                FilterOperatorsLoading="JobcardGridView_FilterOperatorsLoading"
                FilteringDropDownStaysOpen="False"
                HeaderRowStyle="{StaticResource GridViewHeaderRowStyle}"
                AlternateRowStyleSelector="{StaticResource LastFoundInUpdateStyleAlternate}"
                RowStyleSelector="{StaticResource LastFoundInUpdateStyle}">

Any idea where the problem might be?

Thanks in advance

Javier
Top achievements
Rank 1
Iron
 answered on 23 Jul 2021
2 answers
182 views

Hi Telerik team

I would like to go through every cell in a RadGridView to get the value, foreground and background of each cell.

Do you have any solution for that?

For your information, I tried  gridView.ItemContainerGenerator.ContainerFromItem() but it work only for the current view port but I need all pages.

 

Many thanks for your support,

 

minh
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 23 Jul 2021
1 answer
172 views

Hello.

I'm working on changing from noxaml to xaml.
There was a problem while working.

The source below is imported to customize the Template of RadGridView GridViewSearchPanel.
<Style TargetType="telerik:GridViewSearchPanel">
	<Setter Property="Template">
		<Setter.Value>
			<ControlTemplate TargetType="telerik:GridViewSearchPanel">
				<Border BorderThickness="0" Background="AliceBlue" BorderBrush="Transparent">
					<Grid UseLayoutRounding="True">
						<Grid.ColumnDefinitions>
							<ColumnDefinition/>
							<ColumnDefinition Width="Auto"/>
						</Grid.ColumnDefinitions>
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="Auto"/>
							</Grid.ColumnDefinitions>
							<TextBlock	telerik:LocalizationManager.ResourceKey="GridViewSearchPanelTopText"
													TextWrapping="Wrap"
													Margin="{TemplateBinding Padding}"
													HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
													VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
													IsHitTestVisible="False"/>
							<Grid Grid.Column="1" Margin="10 0" VerticalAlignment="Center">
								<TextBox x:Name="PART_SearchAsYouTypeTextBox"
													AutomationProperties.Name="search as you type textBox"
													Text="{Binding SearchText, Mode=TwoWay}"
													MinWidth="160"
													MaxWidth="200"
													Padding="5 3 15 3"
													telerik:TextBoxBehavior.UpdateTextOnEnter="True"
													IsTabStop="{TemplateBinding IsTabStop}"
													FontSize="{TemplateBinding FontSize}"
													FontFamily="{TemplateBinding FontFamily}"
													MinHeight="28"/>
								<telerik:RadButton	IsTabStop="False" Visibility="Visible"
											Style="{StaticResource ClearSearchValueButtonStyle}"
											Command="searchPanel:GridViewSearchPanelCommands.ClearSearchValue"/>
							</Grid>
						</Grid>

					</Grid>
				</Border>
			</ControlTemplate>
		</Setter.Value>
	</Setter>
</Style>

The method I know of is to take the style of noxaml as it is and redefine it.

<Style x:Key="ClearSearchValueButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Template" Value="{StaticResource ClearSearchValueButtonTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:FluentResource ResourceKey=IconBrush}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Width" Value="28"/>
        <Setter Property="Height" Value="28"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{telerik1:FluentResource ResourceKey=AccentMouseOverBrush}"/>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="Foreground" Value="{telerik1:FluentResource ResourceKey=AccentPressedBrush}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

If other styles are not defined, will they be applied automatically?

The style was applied as 'Setting Application-Wide Built-in Theme in the Code-Behind'.

 

Also, Is there a way to override Style 'x:key="SearchPanel" TargetType="telerik:GridViewSearchPanel"' and apply it to <telerik:RadGridView> as a key value?

If you create and define multiple gridviews in one xaml, they are all applied. I want to apply only one.

 

Thanks.

Dilyan Traykov
Telerik team
 answered on 22 Jul 2021
5 answers
197 views

Hello,

I'm using Telerik WPF R1 2021

We discovered that PolarLineSeries are not correctly displayed when we have a PolarAxis that is too strict for the data to display.

We work a lot with graph and happen to dynamically (or from user input) resize the axis for readability

 

For example, I have a dataset in spiral


<telerik:PolarDataPoint Angle="0" Value="0"/> 
<telerik:PolarDataPoint Angle="30" Value="1"/> 
<telerik:PolarDataPoint Angle="60" Value="2"/> 
<telerik:PolarDataPoint Angle="90" Value="3"/> 
<telerik:PolarDataPoint Angle="120" Value="4"/> 
<telerik:PolarDataPoint Angle="150" Value="5"/> 
<telerik:PolarDataPoint Angle="180" Value="6"/> 
<telerik:PolarDataPoint Angle="210" Value="7"/> 
<telerik:PolarDataPoint Angle="240" Value="8"/> 
<telerik:PolarDataPoint Angle="270" Value="9"/> 
<telerik:PolarDataPoint Angle="300" Value="10"/> 
<telerik:PolarDataPoint Angle="330" Value="11"/> 

If I reduce the PolarAxis to display between 3 and 8, overflow points will be displayed outside the graph and other point will be displayed according to the difference between minvalue and the actual value of the point

 

Here a screenshot of my test projet attached

Is that normal or did I miss something to do that ?

Right now, we override the PolarLineSerie to udpate the source according to the actual min and max value of the axis

You can find my project attached to this post

 

Regards

Thomas

Thomas
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 22 Jul 2021
1 answer
219 views

Hello.

I’m trying to display a pre-generated docx document using the RadRichTextbox in my WPF app but it doesnt render the right and sometimes bottom borders around the text elements.

The word document itself is generated through the ReportProcessor using a TRDX reporting template. The template has borders around the TextBox and as you can see in the docx file they are printed to the document.

You can see the missing border in the attached picture, you can also replicate the problem using the test app.

Does anyone knows how to fix this?


Tanya
Telerik team
 answered on 22 Jul 2021
1 answer
295 views

When I try to generate a PNG file Exporting RadPieChart it crash without any message. The files is generate with 0KB size. I don't need the graph in the screen I just need to export the PNG to programatically insert it in a RichTexBox.

            Telerik.Windows.Controls.RadPieChart gr1 = new Telerik.Windows.Controls.RadPieChart();
            gr1.Series.Add(new Telerik.Windows.Controls.ChartView.PieSeries());
            foreach (KeyValuePair<string, int> g in dt1)
            {
                Telerik.Charting.PieDataPoint pA = new Telerik.Charting.PieDataPoint();
                pA.Label = g.Key;
                pA.Value = g.Value;
                gr1.Series[0].DataPoints.Add(pA);
            }
            string filename1 = Path.GetTempFileName();
            using (Stream fileStream = File.Open(filename1, FileMode.OpenOrCreate))
            { Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(gr1, fileStream, new PngBitmapEncoder()); }

Any Advice will be welcome. Thanks in advance.

 

Stenly
Telerik team
 answered on 21 Jul 2021
0 answers
138 views

Hi, 

Is there a way to resolve this type of issue? The data are homogeneous.

Thanks and regards, 

Simone
Top achievements
Rank 1
 asked on 21 Jul 2021
2 answers
400 views

I am using data table for populating data through Radgridview control instead of direct collection and facing some issue with this control which is not able to get all the cell value from this control. In my project is using through code behind.
Current Telerik version : v4. 0. 30319

Thanks & Regards

Murugansilvers

Stenly
Telerik team
 answered on 20 Jul 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?