Telerik Forums
UI for WPF Forum
1 answer
188 views

Hi,

My grid uses Ajax to load its entire content at initial load. Paging/Filtering/Sorting all done locally afterwards. I would like to enable interactive Grouping that mimics as closely as possible the Telerik Windows Forms Grid.

When the user groups on a column, the grid should display initially collapsed groups with as many group headers as fit into the given page size. Ideally, The group headers should also indicate the number of child rows in the group. Ideally I should be able to sort the group headers according to the count of members (largest group first).

I had a look at documentation but most samples seem to use the databind event which is as far as I know not fired when the user selects grouping after data load.

I'm a beginner with ASP.NET MVC so I might have missed the obvious.

Thanks and kind regards

Erwin

erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 24 Aug 2018
6 answers
960 views

I'm using the GroupDescriptors property in XAML to define the grid to group rows. I.e. the rows are grouped using one column.

Why is the grouped column still visible when I start the application? When I ungroup and the group again using mouse, the column is then hidden. Not very consistent. Is this a bug or am I missing a property here?

You can test this issues with your SDK Samples Browser application. Just open the GridView->Group Selection example in Visual Studio, set ShowColumnWhenGrouped property to false for the first GridViewDataColumn object, and run the example. For simplicity, you may also want to comment out the second GroupDescriptor object in the GroupDescriptors collection. I.e. use just one column to group like I do.

Vladimir Stoyanov
Telerik team
 answered on 24 Aug 2018
10 answers
336 views

telerik version: 2018.2.515.40

When i click on the item in the property grid, i expect the Label's foreground to turn into Black color. But it didn't.

 

<telerik:RadPropertyGrid Grid.Row="0"
                         x:Name="grdTestProperty" Margin="4"
                         Item="{Binding TestProperty, Mode=OneWay}"
                         SearchBoxVisibility="Collapsed"
                         SearchInNestedProperties="False"
                         FieldIndicatorVisibility="Collapsed"
                         IsVirtualizing="True"
                         AutoGeneratePropertyDefinitions="True"
                         NestedPropertiesVisibility="Visible"
                         LabelColumnWidth="{Binding LabelColumnWidth, Mode=OneWay}"                                 
                         RenderMode="Flat"
                         IsReadOnly="{Binding IsReadOnly, Mode=OneWay}" Loaded="grdTestProperty_Loaded"/>
Stefan
Telerik team
 answered on 24 Aug 2018
7 answers
274 views
How can I display a BarSeries with a linear axis on the horizontal?

My application needs to display columns along an x axis that is fixed from 0 to 100.
Andrew
Top achievements
Rank 1
 answered on 23 Aug 2018
12 answers
3.3K+ views
I would like to create a listbox that contains checkboxes similar to this, but for WPF:

http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/checkboxes/defaultcs.aspx

Notice in this demo that you can still 'select' a single row - independent of the checkboxes.  I need to preserve that functionality.  I just want to add checkboxes next to each item that can be checked (one or more).  I also need to know how to get the checked items.

Thank you,
James DiEdwardo
Dilyan Traykov
Telerik team
 answered on 23 Aug 2018
2 answers
159 views

Hi! I have RadGridView with HierarchyChildTemplate. I use Fluent no xaml theme.

Width of expander ("Plus/Minus") button smaller than it's column and all cells seems shifted left relatively headers at same width. This width is difference between expander and it's column width.

See picture attached.

How to redefine expander's width?

Stefan
Telerik team
 answered on 23 Aug 2018
10 answers
259 views

Telerik Support,

I hate to just post an exception stack trace without being able to provide many more details, but unfortunately I'm not getting any helpful information out of the stack trace to help me track this down.

System.ArgumentOutOfRangeException: Index must be within the bounds of the List.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.Insert(Int32 index, T item)
   at Telerik.Windows.Data.KeyedCollection.Insert(Int32 index, Object value)
   at Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at COMPANYNAME.Data.APSSObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.SetItem(Int32 index, T item)
   at System.Collections.ObjectModel.Collection`1.set_Item(Int32 index, T value)
   at PRODUCTNAME.AsyncReturns.<>c__DisplayClass37_0.<INTERNALMETHOD>b__0()
   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)     
intellitechcorporation
Top achievements
Rank 1
 answered on 22 Aug 2018
5 answers
302 views
I've previously asked if Telerik RadMap could add support for WMTS (https://feedback.telerik.com/Project/143/Feedback/Details/202414-map-add-support-for-wmts-map-source) but unfortunately this has not yet been scheduled for development. We now have an important customer that requires that we display maps from a WMTS source using map projection EPSG:4326

I have implemented a custom tile source (following instructions here: https://docs.telerik.com/devtools/wpf/controls/radmap/how-to/howto-custom-provider) and managed to get it to render a WMTS service successfully, provided that service supports EPSG:3857 (or EPSG:900913 aka GoogleMapsCompatible) and I use the Telerik MercatorProjection (which I think supports Web Mercator, not true Mercator projection).

When I try to use a tile source that uses EPSG:4326 which uses true Mercator projection (I think) the tiles don't appear in the correct place (although zooming in, does correctly show increasing levels of details). A typical characteristic of a 4326 tile source is that it is wider than it is high e.g. the number of tile matrix rows at any zoom level is half as many as there are columns.

The article describing how to create a custom provider talks about using "the actual projection used by the provider". I've tried to create a custom projection which would allow EPSG:4326 data to be displayed however it's not clear to me how to write a custom projection. EPSG:4326 is essentially a mercator projection so I've tried overriding Telerik's MarcatorProjection and modifying some properties (e.g. scale, offset) but without much success.

It might be possible for me to figure out the url for a zoom/x/y combination if I could understand how the MultiScaleTileSource determined which tiles to request for any given geographic area, or if I could somehow override the algorithm it uses to determine which tiles to request. Can you tell me anything about the mapping between geographic area to the tiles to request (zoom/x/y combination)?

Do you have any ideas on how I might proceed with this task? Any other pointers or suggestions would be gratefully received!

My company does have a license for DevCraft Ultimate - if I can use this in any way to get more detailed help/support please let me know.

Thanks
Pete
Martin Ivanov
Telerik team
 answered on 22 Aug 2018
2 answers
150 views

1) Populate GridView with an aggregate observable collection. (Content of this aggregation is correct / what I want, confirmed at every step.)

2) Expand one or more of properly displayed group headers.

3) Collapse same group(s).

Result:

Items that I have manipulated* remain present in the list below both groups. (Somehow not being grouped under the only two possible groups. (The descriptor is not hard coded, and should create new groups at runtime if data was different.)

 

* These customized items are modified before the GridView gets them, and not while the grid view is active. Modification includes recreating the item received from another observable collection by intercepting the modification callback. However, both the complete destruction approach and replace approach result in the same issue. (In the aggregate collection.)

 

Could this issue be related to a poorly implemented Equals, GetHashCode, or CompareTo function? I am trying to use Telerik raw instead of doing over engineered complicated things, as attempts I've made in the past result in very bad performance.

 

Thanks,

Stefan
Telerik team
 answered on 22 Aug 2018
5 answers
181 views
Hello,
I’m shifting from WinForms UI to Telerik WPF UI and I can’t find any control like WinForms Binding Navigator. After looking into documentation I found CollectionNavigator control but that’s not what I was looking for.
As per this Telerik blog (https://www.telerik.com/blogs/a-binding-navigator-in-the-xaml-world) I tried creating a WinForms like Navigator. But unfortunately it is throwing null reference exception in design time every time we try to re-build it. I have downloaded code from blog only and trying to run it. Please see the screenshot attached.

Would you please let me know if there is any control like this in Telerik WPF or if there is any solution for the code in the blog.
Thanks,
Kishan
Kishan
Top achievements
Rank 1
 answered on 22 Aug 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?