Telerik Forums
UI for WPF Forum
3 answers
379 views

Hi,

I have a LocalDataSourceProvider bound to a DataTable. Some of the columns allow nulls and some of the values in them are DBNull. I would like to be able to display a count of the values that aren't null. I've created my own aggregate function and I can add that to some of my AggregatePropertyDescriptions programmatically. I do have an example, but apparently I'm only allowed to upload images.

The questions I've got are:

Is there any easier way to do this?

Can I make this aggregate function appear in the UI in the Field List, so users can select it?

I only appear to be able to apply this to my nullable int property, and not my string property. Is that something I should be expecting?

Many thanks,

Richard

Grinden
Top achievements
Rank 1
 answered on 22 Jun 2017
2 answers
202 views

Hi, I got the code from http://docs.telerik.com/devtools/wpf/controls/radgridview/columns/how-to/scroll-item

 

My code :

when DropRowIndex = 16 and the items.count=17 , it calls the scrollFailedCallback , I tried to make it this.timetableGrid.Items[this.timetableGrid.Items.Count -1] and it still fails. WHy? My items count is 17 so it should not be failing. I hardcoded it into DropRowIndex = 15 and it is calling scrollFinishedCallback which is what I want to happen. May I ask why rowindex 16 is not working ?

if (this.timetableGrid.Columns.Count > 0 && DropColIndex <= this.timetableGrid.Columns.Count)
            {
                IsScrollBarForceIntoView = false;
                int offsetCol = 0; int offsetRow = 0;
                if ((DropColIndex + 3) <= (this.timetableGrid.Columns.Count - 1))
                    offsetCol = 3;
                if ((DropRowindex + 3) <= (this.timetableGrid.Items.Count - 1))
                    offsetRow = 3;
                this.timetableGrid.ScrollIntoViewAsync(this.timetableGrid.Items[DropRowindex + offsetRow], //the row
                                this.timetableGrid.Columns[DropColIndex + offsetCol], //the column
                                 new Action<FrameworkElement>((f) =>
                                  {
                                      App.MainWindow.IsBusy = false;
                                  }), new Action ( ()=>
                                      {
                                          App.MainWindow.IsBusy = false;
                                      }
                                    ));
                isDrop = false;
            }
            else
            {
                App.MainWindow.IsBusy = false;
                DropColIndex = 0;
            }

Ivan Ivanov
Telerik team
 answered on 22 Jun 2017
1 answer
144 views

I used all resource string files for RadPivotGrid, but the message "Blank" could not find the key for translation. What is the procedure for translating this message?

I have a test project demonstrating the problem but I am not allowed to post

Martin Ivanov
Telerik team
 answered on 21 Jun 2017
3 answers
176 views
Hi,

are there any telerik graficle control templates for Storyboarding with VS 2012 in Powerpoint evailable or sceduled?

reagards
Dilyan Traykov
Telerik team
 answered on 21 Jun 2017
1 answer
201 views

Hi,

I'm using the Q3 2016 version of the Telerik WPF controls suite.  I'm having a problem using a ScatterLineSeries in tandem with the "Batch" option on XamlRenderOptions for the series.  I'm using a ChartSeriesDescriptor with a style for the ScatterLineSeries that has the following:

 

<Setter Property="DefaultVisualStyle" Value="{StaticResource DefaultVisualStyle}"/>
<Setter Property="RenderOptions">
    <Setter.Value>
        <telerik:XamlRenderOptions DefaultVisualsRenderMode="Batch"/>
    </Setter.Value>
</Setter>

 

That "DefaultVisualStyle" resource is defined like so:

 

<Style x:Key="DefaultVisualStyle" TargetType="{x:Type Path}">
    <Setter Property="Width" Value="10" />
    <Setter Property="Height" Value="10" />
</Style>

 

When I use those options and add data points via bindings from the ChartSeriesProvider, I get a MissingMethodException, that seems to come from the UIAutomation system:

 

System.MissingMethodException: Constructor on type 'Telerik.Windows.Automation.Peers.ScatterPointAutomationPeer' not found.
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at Telerik.Windows.Automation.Peers.ChartSeriesAutomationPeer.<>c__DisplayClass1.<EnumerateDataPointPeers>b__0()
   at Telerik.Windows.Automation.Peers.ChartElementAutomationPeer.GetOrCreatePeerForElement(DependencyObject target, Func`1 createPeer)
   at Telerik.Windows.Automation.Peers.ChartSeriesAutomationPeer.<EnumerateDataPointPeers>d__3.MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at Telerik.Windows.Automation.Peers.ScatterLineSeriesAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.ContextLayoutManager.fireAutomationEvents()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

Is there anything I can do to use Batch for performance on this series?

Martin Ivanov
Telerik team
 answered on 21 Jun 2017
1 answer
119 views
I try to open a contextmenu when i select many tasks/items in my ganttview, but when i click the right button, ganttview lost selecteditems and get just the item under my click.
How can i perform a contextmenu for two or many tasks?
Thank you
Stefan
Telerik team
 answered on 21 Jun 2017
0 answers
214 views

Hi, I am experiancing an issue with the rad gridView where the binding errors are making the performance impossibe to work with,  the errors I get are

 

ystem.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=SelectedPane.IsActive; DataItem='RadPaneGroup' (Name=''); target element is 'PaneHeader' (Name='HeaderElement'); target property is 'IsHighlighted' (type 'Boolean')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=SelectedPane.IsActive; DataItem='RadPaneGroup' (Name=''); target element is 'PaneHeader' (Name='HeaderElement'); target property is 'IsHighlighted' (type 'Boolean')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'CommandParameter' (type 'Object')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'CommandTarget' (type 'UIElement')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=IsFloatingOnly; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'IsChecked' (type 'Boolean')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'CommandParameter' (type 'Object')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'CommandTarget' (type 'UIElement')

 

I have checked that the DataContext is not null, and when using the WPF built in Listbox in place of the RadGridView, I do not get any issues. I have seen the same question asked on StackOverflow with no response

 

https://stackoverflow.com/questions/17842712/wpf-cannot-retrieve-value-using-the-binding-and-no-valid-fallback-value-exists

Part of my code looks like this :

 

<telerik:RadGridView x:Name="SummaryGrid" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                             CanUserDeleteRows="False"
                             CanUserFreezeColumns="False"
                             RowIndicatorVisibility="Collapsed"
                             CanUserResizeColumns="False"
                             AutoGenerateColumns="False"
                             CanUserSortGroups="False"
                             GroupRenderMode="Flat"
                             ShowGroupPanel="False"
                             EnableRowVirtualization="False"
                             ItemsSource="{Binding VerifiedItems, FallbackValue={x:Static constant:FallBackConstants.FallBackBaseConversionsList}}">
            <telerik:RadGridView.Columns>
                -->
        <!--column shown the path -->
        <!--
                <telerik:GridViewDataColumn Width="*"
           Header="Type"
           IsGroupable="False"
                                            DataMemberBinding="{Binding Type}"
           IsFilterable="True"
                                            IsReadOnly="True">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel HorizontalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Hidden">
                                <TextBlock Text="{Binding Type, FallbackValue={x:Static constant:FallBackConstants.FallBackString}}" />
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>

 

 

Is there anything that I might be missing in terms of binding on the RadgridView?

Mahlatse
Top achievements
Rank 1
 asked on 21 Jun 2017
1 answer
158 views

Hello Telerik

In my applycation, I choose a pdf file, create preview image by using ThumbnailFactory, and show file in PdfViewer. But I receive exception as title because Telerik's framework cannot read pdf file with encryption algorithm 4. And PdfViewer  I google this bug and find nothing. So can you provide me some tip, trick to get over this bug. Thank you so much.

Tanya
Telerik team
 answered on 21 Jun 2017
1 answer
159 views

Hey community,
the row redorder sample doesn't work within a RadLayoutControl. It looks like as if the RadLayoutControl would intercept the DragEvent, so the  GiveFeedbackEventArgs is not called within the RowReorderBehavior.
Can you provide me asample or give me a hint please.

I've tried it with this sample:

http://docs.telerik.com/devtools/wpf/controls/dragdropmanager/how-to/howto-draganddrop-within-radgridview

Kind regards,
Lars

Stefan
Telerik team
 answered on 21 Jun 2017
2 answers
121 views

Hi,

I would trace in a RadTreeView the structure Groups/Items, wher Groups is first level and Items second one.

I thought that I could intercept "Item Added To Group event", can I do this in somehow?

Two cases I shuold keep:

  • I drag and drop 2 or more objects into RadDiagram, add theme both and create a group for theme.
  • I have already 2 or more objects into RadDiagram, user selects theme and clicks "Group Items" command.



Dinko | Tech Support Engineer
Telerik team
 answered on 21 Jun 2017
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?