Telerik Forums
UI for WPF Forum
0 answers
96 views

This error occurs on RaisePropertyChanged or on this line of code

this.Spreadsheet.Workbook = workbook;

An unhandled exception of type 'System.AggregateException' occurred in mscorlib.dll

Additional information: One or more errors occurred.

here is the code which I use 

input is  stream form ms file dialog

XlsxFormatProvider formatProvider = new XlsxFormatProvider();
workbook = formatProvider.Import(input);
workbook.Name = openFileDialog.SafeFileName;
this.Spreadsheet.Workbook = workbook;
Javor
Top achievements
Rank 1
 asked on 20 Sep 2018
5 answers
292 views

Hello,

This was working in the previous version, but not in R3 2018, with the Office2013 theme.

The column is defined as:

<tk:GridViewDataColumn ColumnGroupName="RoleGroup"
                       DataMemberBinding="{Binding [1]}"
                       Header="1"
                       HeaderTextAlignment="Center"
                       IsGroupable="False"
                       UniqueName="Set1Role"
                       Width="35">
  <tk:GridViewDataColumn.CellTemplateSelector>
    <volley:VolleySetPlayerRoleTemplateSelector NoSet="1" />
  </tk:GridViewDataColumn.CellTemplateSelector>
</tk:GridViewDataColumn>

 

And the text in the header is left aligned, as show in the attached screen shot.

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Sep 2018
3 answers
152 views

I am finding:
1) Create a PAGE, and VIEW MODEL
2) ON the Page:
Add a Tab Control with TWO Tab Items, on each Tab Item add a RadMap and a ComboBox
3) In the VM Create an Observable Collection of Providers and assign to both Combo Boxes on each Tab Item.
4) In the VM create a property(INotifyPropertyChanged) for each SELECTED Provider from each ComboBox, and BIND the Provider to each Map's Provider Dependency Property. (One List / Two Selected Items /Two Maps)
5) Run the App, switch between the Tabs and switch between the ComboBox's Selected Provider and you get botched providers displaying mixed data.
I have determined that when tabbing from one TabItem to an other, the RadMap gets Unloaded and then Reloaded each time, and several resources gets messed up because you do not call the DISPOSE. But, in fact you cant or else you would not be able to tab back... so there are several additional week references that are not detached and memory will continue to leak leading to poorly managed provider tiles etc...  Either that, or there are static references in both Maps reference... That I am not sure yet, still investigating and leaning on the Provider itself.

Has anyone else seen bad behavior on the RadMap with multiple Providers Binding on several Tabs?

thanks,

Don

 

Petar Mladenov
Telerik team
 answered on 20 Sep 2018
3 answers
244 views

The ChartView ToolTip should look like the on in the attached gif.

I figured out that I have to change the TooltipTemplate.

But how can I get the LineSeries X values and Y Values ? In my Source code instead of X and Y I should see in the ToolTip the X value (example: January) and Y Value (example: 2,00). Any ideas ?

Here is my unfinished Source Code: 

private LineSeries CreateLineSeries(KeyValuePair<ChartSerie, List<ChartDataPoint>> chartSeries, ChartLegendSettings legendSettings,
                                           int colorPaletteIndex)
       {
           // TODO: tooltip work in progress, show Format in Tooltips
           FrameworkElementFactory tooltipFramework = new FrameworkElementFactory(typeof(Border));
           tooltipFramework.SetValue(Border.BackgroundProperty, new SolidColorBrush(Colors.DimGray));
           tooltipFramework.SetValue(Border.PaddingProperty, new Thickness(5));
 
           FrameworkElementFactory tooltipStackpanelOne = new FrameworkElementFactory(typeof(StackPanel)) { Name = "tooltipStackpanelOne" };
           tooltipStackpanelOne.SetValue(StackPanel.OrientationProperty, Orientation.Vertical);
           tooltipFramework.AppendChild(tooltipStackpanelOne);
 
           FrameworkElementFactory textBlockOne = new FrameworkElementFactory(typeof(TextBlock));
           textBlockOne.SetValue(TextBlock.TextProperty, "X");
           textBlockOne.SetValue(TextBlock.ForegroundProperty, new SolidColorBrush(Colors.White));
           textBlockOne.SetValue(TextBlock.FontWeightProperty, FontWeights.DemiBold);
 
           FrameworkElementFactory textBlockTwo = new FrameworkElementFactory(typeof(TextBlock));
           textBlockTwo.SetValue(TextBlock.TextProperty, "Y");
           textBlockTwo.SetValue(TextBlock.ForegroundProperty, new SolidColorBrush(Colors.White));
           textBlockTwo.SetValue(TextBlock.FontWeightProperty, FontWeights.DemiBold);
 
           tooltipStackpanelOne.AppendChild(textBlockOne);
           tooltipStackpanelOne.AppendChild(textBlockTwo);
 
           var lineSerie = new LineSeries()
           {
               VerticalAxis    = CreateMultipleVerticalAxis(chartSeries, colorPaletteIndex, out var multipleVerticalAxis) ? multipleVerticalAxis : null,
               ZIndex          = 150, // the line series should always be displayed on top of other series.
               StrokeThickness = 3.5,
               LegendSettings  = (SeriesLegendSettings)legendSettings,
               Opacity         = 0.8,
               //SeriesAnimation = new ChartRevealAnimation()
               //{
               //    AnimationDirection = AnimationDirection.In,
               //    Orientation        = Orientation.Horizontal,
               //    Duration           = new TimeSpan(0, 0, 0, 1, 500),
               //    Delay              = new TimeSpan(0, 0, 0, 0, 555),
               //},
               //PointAnimation = new ChartMoveAnimation()
               //{
               //    MoveAnimationType = MoveAnimationType.Left,
               //    Duration          = new TimeSpan(0, 0, 0, 0, 400),
               //    Delay             = new TimeSpan(0, 0, 0, 0, 155),
               //},
               StackGroupKey = chartSeries.Key.Group,
               CombineMode   = string.IsNullOrEmpty(chartSeries.Key.Group) ? ChartSeriesCombineMode.None : ChartSeriesCombineMode.Stack,
               PointTemplate = new DataTemplate()
               {
                   VisualTree = AddPointsToSeries(chartSeries, colorPaletteIndex),
               },
               LabelDefinitions =
               {
                   // set the clarion format for the labels
                   new ChartSeriesLabelDefinition()
                   {
                       Template = new DataTemplate()
                       {
                           VisualTree = GetSeriesFormat(chartSeries),
                       }
                   }
               },
               TooltipTemplate = new DataTemplate()
               {
                   VisualTree = tooltipFramework,
               }
           };
 
           //// this is the old way of adding point to the LineSeries
           //string pointTemplateString =
           //    @"<DataTemplate xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">" +
           //    @"<Ellipse Fill=""Black"" Width=""5"" Height=""5"" /></DataTemplate>";
           //lineSerie.PointTemplate = (DataTemplate)XamlReader.Parse(pointTemplateString);
 
           // this is the color of line series
           if (chartSeries.Key.ColorHex != null)
           {
               lineSerie.Stroke = (SolidColorBrush)(new BrushConverter().ConvertFrom(chartSeries.Key.ColorHex));
           }
 
           foreach (ChartDataPoint serie in chartSeries.Value)
           {
               lineSerie.DataPoints.Add(new CategoricalDataPoint()
               {
                   Category = serie.XPoint.Label,
                   Value    = (double?)serie.Value,
               });
           }
 
           return lineSerie;
       }
Dinko | Tech Support Engineer
Telerik team
 answered on 20 Sep 2018
3 answers
223 views

Hi,

Looks like, using the VirtualQueryableCollectionView, it is possible to lazy load the data if it is flat, but it is not possible if the data is displayed hierarchically. That is, using VirtualQueryableCollectionView, if GroupBy is done for single\multiple columns, the grouping is done only of the initial few records, obviously, as only few records are loaded initially by the VirtualQueryableCollectionView.

If there are multiple groupings then there is a hierarchy, and one can drill down subgroups step by step. I wanted to know if there is a way with GridView to lazily load the subgroup items.

Any suggestions will be helpful.

thanks

Vladimir Stoyanov
Telerik team
 answered on 19 Sep 2018
0 answers
97 views

 what i need to do is :

      In the xaml file, there is an MergeField with PropertyPath isYes,if isYes == 'Y',I want to replace the MergeField with a checked box like symbol ☑

How to do this?

zou
Top achievements
Rank 1
 asked on 19 Sep 2018
1 answer
255 views
I have a GridViewComboBoxColumn in my grid, and want to capture drop down list close event to finish some task at that time. But I did not find proper event in GridViewComboBoxColumn for this, anyone can help? Thanks!
Dilyan Traykov
Telerik team
 answered on 18 Sep 2018
2 answers
248 views
Hi. How i can delete dashed/dotted line in selected shape on RadDiagram?
Svyatoslav
Top achievements
Rank 1
 answered on 18 Sep 2018
3 answers
266 views
Hi There

I have a scenario where I need to show maps under RadPane , i.e. Bing Tab shows Bing Map, Open Street Tab shows Open Streets and Empty provider Tab shows Shapefile map.Under each RadPane i have individual RadMap for each kind of provider.So my question is,

Should I use 1 radMap for all providers and when user clicks tabs , i change the map provider at the runtime, OR should i have individual radMaps for each provider under each tab. What are the performance issues associated with each approach.

Cheers
Petar Mladenov
Telerik team
 answered on 18 Sep 2018
2 answers
181 views

Hello,

we discovered an issue when having a TileList-Control inside a TileView. The reorder doesn't work, the items just disappear...

Please look at the following example code:

<Grid>
           <Grid.ColumnDefinitions>
               <ColumnDefinition Width="*"/>
               <ColumnDefinition Width="*"/>
           </Grid.ColumnDefinitions>
            
           <!-- reorder works like a charm -->
           <telerik:RadTileList Grid.Column="0">
               <telerik:Tile TileType="Single" Background="#FF00A100" Content="A"/>
               <telerik:Tile TileType="Double" Background="#FFA10000" Content="B"/>
               <telerik:Tile TileType="Single" Background="#FF0000A1" Content="C"/>
           </telerik:RadTileList>
 
           <!-- reorder doesn't work -->
           <telerik:RadTileView Grid.Column="1">
               <telerik:RadTileList>
                   <telerik:Tile TileType="Single" Background="#FF00A100" Content="A"/>
                   <telerik:Tile TileType="Double" Background="#FFA10000" Content="B"/>
                   <telerik:Tile TileType="Single" Background="#FF0000A1" Content="C"/>
               </telerik:RadTileList>
           </telerik:RadTileView>
       </Grid>
Tobias
Top achievements
Rank 1
 answered on 17 Sep 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?