Telerik Forums
UI for WPF Forum
3 answers
183 views

Hello!

I'm troubled, by export to image RadCartesianChart3D, don't display labels, is this a common problem?

Martin Ivanov
Telerik team
 answered on 18 Apr 2018
1 answer
81 views

In the attached very simple project, the main window has a single RadExpander containing a single RadNumericUpDown control. The Viewmodel adds a validation rule which always sets the only property (MyValue) as failed. (I tried to attach files but your system no longer lets me!)

When the RadExpander.IsExpanded property is set to false (as in the attached code), and you then expand it, you'll see the RadNumericUpDown appears normally, without any validation error adornment.

If you change RadExpander.IsExpanded property in the xaml to true and you run, you'll see the RadNumericUpDown has the validation error adornment and shows the error tooltip.

Why? If you use either Snoop or the VS tools, you'll see that the RadNumericUpDown has the error in both cases.

I'm using 2017.3.1018.45 on Win 10 x64.

Thanks.
-John.

Martin Ivanov
Telerik team
 answered on 18 Apr 2018
1 answer
85 views

In the attached very simple project, the main window has a single RadExpander containing a single RadNumericUpDown control. The Viewmodel adds a validation rule which always sets the only property (MyValue) as failed. (I tried to attach files but your system no longer lets me!)

When the RadExpander.IsExpanded property is set to false (as in the attached code), and you then expand it, you'll see the RadNumericUpDown appears normally, without any validation error adornment.

If you change RadExpander.IsExpanded property in the xaml to true and you run, you'll see the RadNumericUpDown has the validation error adornment and shows the error tooltip.

Why? If you use either Snoop or the VS tools, you'll see that the RadNumericUpDown has the error in both cases.

I'm using 2017.3.1018.45 on Win 10 x64.

Thanks.
-John.

Martin Ivanov
Telerik team
 answered on 18 Apr 2018
6 answers
1.4K+ views

Hi all,

I have some padding and margin problems about treeview items. I wanted to mark it at my attachment image. I'm having trouble about the red and the yellow marked spaces. I tried many things but can not succeed.

Here is my treview : 

01.<telerik:RadTreeView x:Name="radTreeView"
02.    IsTriStateMode="True"
03.    ItemsSource="{Binding SomeSource, Mode=TwoWay}"
04.    IsOptionElementsEnabled="True" >
05.     
06.    <telerik:RadTreeView.ItemContainerStyle>
07.        <Style TargetType="telerik:RadTreeViewItem">
08.            <Setter Property="telerik:RadTreeViewItem.IsExpanded" Value="True"/>
09.            <Setter Property="telerik:RadTreeViewItem.IsChecked" Value="True"/>
10.        </Style>
11.    </telerik:RadTreeView.ItemContainerStyle>
12. 
13.    <telerik:RadTreeView.ItemTemplate>
14.        <HierarchicalDataTemplate ItemsSource="{Binding Path=Siblings, Mode=TwoWay}">
15.            <telerik:RadTreeViewItem x:Name="treeViewItem"
16.                Header="{Binding Header}" DataContext="{Binding .}"/>
17.        </HierarchicalDataTemplate>
18.    </telerik:RadTreeView.ItemTemplate>
19. 
20.</telerik:RadTreeView>

 

Here is my custom styles : 

 

01.<Style TargetType="telerik:RadTreeView"
02.    BasedOn="{StaticResource RadTreeViewStyle}">
03.    <Setter Property="BorderThickness" Value="5"/>
04.    <Setter Property="IsLineEnabled" Value="False" />
05.    <Setter Property="telerik:StyleManager.Theme" Value="Office2016" />
06.</Style>
07. 
08.<Style TargetType="telerik:RadTreeViewItem"
09.    BasedOn="{StaticResource RadTreeViewItemStyle}">
10.    <Setter Property="HorizontalAlignment" Value="Left" />
11.    <Setter Property="HorizontalContentAlignment" Value="Left" />
12.    <Setter Property="MinHeight" Value="8" />
13.</Style>

 

Thank you in advance.

 

 

Mustafa Erhan
Top achievements
Rank 1
 answered on 18 Apr 2018
3 answers
169 views
Hi please let the community know the official status of Telerik support rad WPF components or otherwise in the latest Xamarin environment. It would be incredible to develop once with radcontrols, then deploy the same UX to android, windows, and iOS. Thanks Mark
Yana
Telerik team
 answered on 18 Apr 2018
3 answers
267 views
I have a half-circle radial gauge that is contained in a panel.  The problem is that when the panel is resized, the gauge background and the gauge scale stretch independently, giving odd visual results.  See the two attached images.  I have tried setting a variety of gauge properties, but cannot get a result where the two resize with the same aspect ratio.

Thanks for any help on this.
Dan
kaliprasad
Top achievements
Rank 1
 answered on 17 Apr 2018
1 answer
65 views

Dear,

I'm using RadGrid to display a filename and a filepath. 

Everything work fine (capture.PNG) when i click on the filename. The document open, but when i change the file name or i delete the file on my desktop, my program crash...

How can i handle this error?

Regards,

 

                    GridViewDataColumn cFullCompanyName = new GridViewDataColumn();
                    GridViewDataColumn cFileName = new GridViewDataColumn();
                    GridViewDynamicHyperlinkColumn cFilePath = new GridViewDynamicHyperlinkColumn();

                    cFullCompanyName.DataMemberBinding = new Binding("FullCompanyName");
                    cFileName.DataMemberBinding = new Binding("FileName");
                    cFilePath.DataMemberBinding = new Binding("FilePath");

                    cFilePath.NavigateUrlMemberPaths = "FilePath";

                    documentPage.gvDocument.Columns.Add(cFullCompanyName);
                    documentPage.gvDocument.Columns.Add(cFileName);
                    documentPage.gvDocument.Columns.Add(cFilePath);

Stefan
Telerik team
 answered on 17 Apr 2018
1 answer
128 views

Hi,

I want to add a drop down list with predefined RowGroup, ColumnGroup and Aggregate Descriptions to ease switching between different data arrangements via RadPivotFieldList. 

I tried to check if I can add such descriptions to the filter list example, but I couldn't find the proper namespace for FiltersCollection and FilterItem in my application. Thus they're giving "type not found" errors. In the example they are defined as below.

...
        xmlns:local="clr-namespace:Telerik.Windows.Examples.PivotGrid.Common.Filtering"

...

        <local:FiltersCollection x:Key="Filters">
            <local:FilterItem DisplayName="&lt;none&gt;" />
            <local:FilterItem DisplayName="The name is in the list: 'Copy holder', 'Glare filter'.">
                <local:FilterItem.GroupFilter>
                    <pivot:LabelGroupFilter>

...

Kalin
Telerik team
 answered on 16 Apr 2018
0 answers
157 views
<telerik:RadGridView Name="rgvExplorador"                                         
                     GridLinesVisibility="Both"                                            
                     GroupPanelBackground="LightGray"
                     GroupPanelForeground="Black"                                
                     ShowSearchPanel="True"
                     ShowGroupPanel="False"                                     
                     d:LayoutOverrides="Height"
                     Grid.Row="1"
                     FontSize="10.667"
                     CanUserResizeColumns="False"
                     CanUserFreezeColumns="False"
                     AutoGenerateColumns="False"
                     SelectionMode="Single"
                     ItemsSource="{Binding}"
                     RowIndicatorVisibility="Collapsed" >
    <telerik:RadGridView.GroupDescriptors>
 
        <telerik:GroupDescriptor Member="areaTexto" SortDirection="Ascending" />
        <telerik:GroupDescriptor Member="clasificacionTexto" SortDirection="Ascending" />
 
    </telerik:RadGridView.GroupDescriptors>
 
    <telerik:RadGridView.Columns>
 
        <telerik:GridViewDataColumn  Header="Área" DataMemberBinding="{Binding areaTexto}"  Width="70" IsReadOnly="True"  IsGroupable="True" IsVisible="False"/>
        <telerik:GridViewDataColumn  Header="Clasificación" DataMemberBinding="{Binding clasificacionTexto}"  Width="140" IsReadOnly="True"  IsGroupable="True" IsVisible="False"/>
 
        <telerik:GridViewDataColumn Header="Título" DataMemberBinding="{Binding descripcion}" IsReadOnly="True" TextWrapping="Wrap" Width="300">
            <telerik:GridViewColumn.ToolTipTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Vertical" Width="300"  MinHeight="80"  Background="White">
                        <TextBlock Text="Descripción:" FontWeight="Bold"/>
                        <TextBlock Text="{Binding Objetivo}" TextWrapping="Wrap"/>
                    </StackPanel>
                </DataTemplate>
            </telerik:GridViewColumn.ToolTipTemplate>
        </telerik:GridViewDataColumn>
         
        <telerik:GridViewDataColumn Header="Nº" DataMemberBinding="{Binding IdAlerta}" IsReadOnly="True" Width="auto"  IsGroupable="True"/>
        <telerik:GridViewDataColumn x:Name="colHV" Header="Info dimensional" DataMemberBinding="{Binding HvInfoDesc}" IsReadOnly="True" />
        <telerik:GridViewDataColumn x:Name="colPatron" Header="Patrón" DataMemberBinding="{Binding HF_Referencia}" IsReadOnly="True" />
        <telerik:GridViewDataColumn Header="Período" DataMemberBinding="{Binding FechaDatos}" DataFormatString="{}{0:MMM/yyyy}"  Width="70" IsReadOnly="True"/>
        <telerik:GridViewDataColumn Header="Entidad" DataMemberBinding="{Binding Entidad}" IsReadOnly="True"  Width="70" />
        <telerik:GridViewDataColumn IsReadOnly="True" Width="30"  DataMemberBinding="{Binding EsAlerta}" IsGroupable="True" ShowDistinctFilters="True" >
 
            <telerik:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <Image>
                        <Image.Style>
                            <Style TargetType="{x:Type Image}">
                                <Setter Property="Source" Value="/Mercvrio.Style;component/Images/Blank.png" />
                                <Style.Triggers>
                                    <DataTrigger Value="1" Binding="{Binding EsAlerta}">
                                        <Setter Property="Source" Value="/Mercvrio.Style;component/Images/WarningRed.png"/>
                                    </DataTrigger>
                                    <DataTrigger Value="1" Binding="{Binding AlertaPositiva}">
                                        <Setter Property="Source" Value="/Mercvrio.Style;component/Images/Warning.png"/>
                                    </DataTrigger>
                                    <DataTrigger Value="0" Binding="{Binding EsAlerta}">
                                        <Setter Property="Source" Value="/Mercvrio.Style;component/Images/Blank.png"/>
                                    </DataTrigger>
 
                                </Style.Triggers>
                            </Style>
                        </Image.Style>
                    </Image>
                </DataTemplate>
            </telerik:GridViewDataColumn.CellTemplate>

 

I have this radgridview. In the alert column the filter values  takes out a 0 or a 1, which is the data boolean that is collected from the database.

How could I change 0 for no alert and 1 for alert?

Thank you very much

 

 

 

 

alejandro
Top achievements
Rank 1
 asked on 16 Apr 2018
3 answers
128 views

Hello,

I have used the SDK Samples browser example MonthTickProvider and obtained the CustomMonthTickProvider class to display the Month names in the GroupTickLength. On similar lines, I have managed to create Weekly tick provider that displays the Week Number and Quarter tick provider that displays the Quarter of the year. These providers alone work fine when put as GroupTickLegth.

However, I have to display Week tick provider in the MajorTickLength along with Month in GroupTickLength. The user can also switch between having Month in MajorTickLength and Quarter in GroupTickLength.

I tried the change the SDK Browser example itself and I am facing must be non-negative.

The following code block is what I am trying to achieve:

<telerik:RadScheduleView AppointmentsSource="{Binding Appointments, Source={StaticResource ViewModel}}">
    <telerik:RadScheduleView.ViewDefinitions>
                <telerik:TimelineViewDefinition VisibleDays="365"
                                                MinTimeRulerExtent="8000">
                    <telerik:TimelineViewDefinition.GroupTickLength>
                        <example:CustomMonthTickProvider />
                    </telerik:TimelineViewDefinition.GroupTickLength>
                    <telerik:TimelineViewDefinition.MajorTickLength>
                        <example:WeeklyTickProvider />
                    </telerik:TimelineViewDefinition.MajorTickLength>
              </telerik:TimelineViewDefinition>
    </telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>

 

If we replace the MajorTickLength with the same provider as in GroupTickLength, then there is no exception raised.

Here are my Week and Quarter provider classes

public class WeeklyTickProvider : ITickProvider
   {
       public string GetFormatString(IFormatProvider formatInfo, string formatString, DateTime currentStart)
       {
           var weekNumber = GetWeekNumber(formatInfo as CultureInfo, currentStart);
           return string.Format(formatInfo, "Week {0}", weekNumber);
       }
       private static int GetWeekNumber(CultureInfo formatInfo, DateTime currentStart)
       {
           var cultureInfo = formatInfo as CultureInfo;
           if (cultureInfo != null)
           {
               return cultureInfo.Calendar.GetWeekOfYear(currentStart, cultureInfo.DateTimeFormat.CalendarWeekRule, cultureInfo.DateTimeFormat.FirstDayOfWeek);
           }
           return 0;
       }
       public DateTime GetNextStart(TimeSpan pixelLength, DateTime currentStart)
       {
           var currentDate = currentStart.Date;
           var weekStart = CalendarHelper.GetFirstDayOfWeek(currentStart, DayOfWeek.Monday);
           if (weekStart == currentDate)
           {
               return weekStart.AddDays(7);
           }
           return weekStart;
       }
   }
   public class QuarterTickProvider : ITickProvider
   {
       public string GetFormatString(IFormatProvider formatInfo, string formatString, DateTime currentStart)
       {
           if (currentStart.Month >= 10)
           {
               return "Quarter 4";
           }
           else if (currentStart.Month >= 7)
           {
               return "Quarter 3";
           }
           else if (currentStart.Month >= 4)
           {
               return "Quarter 2";
           }
           else if (currentStart.Month >= 1)
           {
               return "Quarter 1";
           }
           return string.Empty;
       }
       public DateTime GetNextStart(TimeSpan pixelLength, DateTime currentStart)
       {
           if (currentStart.Month >= 10)
           {
               return new DateTime(currentStart.Year + 1, 1, 1);
           }
           else if (currentStart.Month >= 7)
           {
               return new DateTime(currentStart.Year, 10, 1);
           }
           else if (currentStart.Month >= 4)
           {
               return new DateTime(currentStart.Year, 7, 1);
           }
           else if (currentStart.Month >= 1)
           {
               return new DateTime(currentStart.Year, 4, 1);
           }
           return DateTime.Today;
       }

Another thing I noticed is that in the above , if I set GroupTick as month and MinorTick as , then there is no exception raised, But the desired output is not achieved.

Is there any way I could provide both GroupTickLength and MajorTickLength as my own custom tick providers. I have spent a lot of time to find a way but did not achieve the desired result.

 

Rinku
Top achievements
Rank 1
 answered on 16 Apr 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?