Telerik Forums
UI for WPF Forum
1 answer
108 views
Some api naming issues that tend to make working with charting more difficult:

RadChart is in the Telerik.Windows.Charting.dll and is referred to as "Chart" in the documentation and RadChart in code.

However, RadChartView is in the Telerik.Windows.Controls.Chart.dll (where you would think to look for RadChart), is referred to in the documentation as "ChartView" and the even less obvious "RadCartesianChart" in code.

I'm sure as new assemblies and controls get created a need for backward compatibility must be maintained, so the Charting.dll reference is likely a product of that since it appears like new controls get added to the Controls namespace. But something should be considered for Chartview, either correcting the code name (which hurts upgrade-ability) or correcting the documentation (which is always a pain).

Also, on a related note, the link in the Chart documentation that says "We encourage you to review our new control RadChartView for super-fast visualization of your data." links back to the Chart documentation instead of the ChartView documentation.


Tina Stancheva
Telerik team
 answered on 05 Dec 2013
0 answers
124 views
I have simple TreeListView and GrdiView. With drag-drop Telerik behaiviars move data between components. The problem is that GrdiItemTemplate work only from GridView, but not for TreeListView.  See image ba.png for more information.                                                                                                                                                                                                                                                                                                                                          And please fix forum editor. Cannot press enter, cannot paste text, paste image or paste from Word. I use lattes IE browser.  See atached image for more info.
kity
Top achievements
Rank 2
 asked on 05 Dec 2013
13 answers
112 views
Hi,

I'm a little bit confused and I need help to select the proper conponent for what I'm trying to do... Image enclosed...

Thank's
Alain
Kalin
Telerik team
 answered on 05 Dec 2013
1 answer
92 views
Hi. I have a very simple for with 2 grids:

<Grid Margin="0,165,0,0">
    <telerik:RadGridView Margin="0,-155,0,307" x:Name="Grid1"/>
    <telerik:RadGridView Height="293" VerticalAlignment="Bottom" x:Name="Grid2"/>
</Grid>


I bound both grids to the same ListViewCollection:

private readonly ObservableCollection<Tuple<string, string>> _data = new ObservableCollection<Tuple<string, string>>();
private ListCollectionView _dataView;
....
    this.Loaded += (sender, args) =>
    {
        for (int i = 0; i < 10; i++)
        {
            _data.Add(Tuple.Create("row" + i, "value" + i));   
        }
 
        _dataView = new ListCollectionView(_data);
 
        Grid1.ItemsSource = _dataView;
        Grid2.ItemsSource = _dataView;
    };

When I select a row on one of the grid, the matching row gets selected on the 2nd grid. Why is this happening? This behavior does not happen when setting ItemsSource property to the underlying collection, only when using ListViewCollection. This is a very simple example that shows the basic issue I am trying to figure out in a much larger application where using underlying collection is not possible. If anyone knows why this is happening I would love to understand (and hopefully fix).

You can download the project showing a problem here WpfApplication1

Thanks
   
Dimitrina
Telerik team
 answered on 05 Dec 2013
1 answer
85 views
Hi,
I currently have an issue where the trackball overflows the chart when there are many series on the chart. Trackball shows the information until the chart height and then is cut off. Is there a way to still display the trackerball but sort of overlay on top of chart? The users still want to see the complete trackball information.

Thanks
Avneesh
Yavor
Telerik team
 answered on 05 Dec 2013
7 answers
118 views
Hello,
I am using a grid view where the item source is a VirtualQueryableCollectionView and have created a DataTempalteSelector to supply the row details template.  I have my LoadSize  for the collection set to 200, but currently only dealing with about 20 items in my small test data set.   If all 20 items fit in view at the same time I have no problems and everything looks great; however if I shrink my window so only a few fit on the grid at a time an exception is thrown when I scroll.  The exception text reads something like:

Exception Message: 'BlockDataIntegrityTemplate' resource not found.

BlockDataIntegrityTemplate is the data template that is being returned from my simple template selector.  Most of the records in the list are of this type. My resource dictionary contains two data templates that are located in separate files and merged into the UserControls resources like so:

<UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Dashboard;component/View/AudioDataIntegrityTemplate.xaml"/>
                <ResourceDictionary Source="/Dashboard;component/View/BlockDataIntegrityTemplate.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <model:IntegrityDataTemplateSelector x:Key="IntegrityDataTemplateSelector"/>
        </ResourceDictionary>
    </UserControl.Resources>

Has anyone run into this situation before, or help me think of what I may be missing?
Dimitrina
Telerik team
 answered on 05 Dec 2013
1 answer
152 views
Hello,

Is it possible to show initial letters instead of numbers in the RadDataPager?

I have a RadGridView where I show a list of contacts (with properties like FirstName, LastName, FullName, Company, etc...).

I would like to paginate the contacts based on the first letter of the last name instead of a fixed page size and show the initial letter in the data pager instead of page numbers.
So basically I want to group the contacts by the first letter of the LastName property and be able to select a group in the data pager and then show the contacts of that group in the grid view.
So all contacts with the same initial letter in the first name should appear on the same "page".

It would be very nice to also be able to only show those initial letters for which contacts actually exists.

BTW: I am using a QueryableEntityCollectionView to connect the pager and grid view to a entity framework data context.

Thank you!

Sincerely yours,
David
David Liebeherr - rent-a-developer
Top achievements
Rank 1
 answered on 05 Dec 2013
4 answers
153 views

Hello,

I have some questions about how the GridViewComboBoxColumn binds to a lookup list in a Hierarchical  scenario.

I have a WPF window that has a RadGridView on it that is displaying the following schema correctly with no comboboxes in any columns, just the integer that binds to the property (SecurityLevel) (relevant columns only)

Application1      SecurityLevel
--------------------------------------------------
   Client1           SecurityLevel
   Module1        SecurityLevel


Application2      SecurityLevel
--------------------------------------------------
        Client1                   SecurityLevel
        Client2                  SecurityLevel
        Module1                SecurityLevel

So the main grid's ItemSource is sourced from the "ApplicationAccess" property of the main view model  That object is a List<> of UserApplicationAccessViewModel  objects.  That view model has two nested properties, "ClientAccess" and "ModuleAccess". Each are  List<> members containing their respective ViewModel types, UserClientAccessViewModel and UserToolModuleAccessViewModel.

Each view model, including the primary application view model, UserApplicationAccessViewModel  contains this "SecurityLevel" property which is an integer.  The list that contains those SecurityLevel objects is an adjacent member of each viewModel class.  So my intent is to bind that list to the GridViewComboBoxColumn of each row at each level.  So the user selects a value from the combobox lookup which sets the SecurityLevel property.

{relevant members of each view model}
public List<SecurityLevel> SecurityLevels { get; set; }
public int SecurityLevel { get; set; }

I have found some posts here that have demos for this funtionality at the single level but have not found any that demonstrate it at a Hierarchical level.

This is the markup for the GridViewComboBoxColumn at the top level.

<telerik:GridViewComboBoxColumn x:Name="Application_SecurityLevelSelection_ComboBox"
      DataMemberBinding="{Binding SecurityLevels}"
      Width="100"
      Header="SecurityLevel"
      DisplayMemberPath="FriendlyName"
      SelectedValueMemberPath="SecurityLevel"
      />

I am tapped into the DataLoading event of the grid to format some behaviour of the child grids.  Is this event the key to building and binding this list?

I can databind the column above by name to the list in the main view model and it displays the list correctly but is not binding to each row.  No SecurityLevel is selected in the dropdown list when the record shows, and when you select one and move to another row (another application) the selection dissapears.    Which seems normal because it has to be bound to each row.

If anyone can offer some suggestions here I would appreciate it.

Thanks,
Reid









Reid
Top achievements
Rank 2
 answered on 05 Dec 2013
1 answer
114 views
Dear Telerik team,

we are using the RadDateTimePicker component in a WPF application for Win 8 tablet devices (small screen resolution).
We are running into positioning issues if the control is at the center of the screen and there is not enough space to collapse the popup control.
Please see screenshot attached.
Apparently there is no PopopPosition property or something like that to specify the popup behavior.

Can you give us some advice to overcome this issue?

Thanks and greetings from Germany,
Chris
Konstantina
Telerik team
 answered on 04 Dec 2013
1 answer
747 views

RadWindow.Alert will not play nice with async operations as follows...


await _datacontext.SaveChangesAsync().ContinueWith((args) => {

   RadWindow.Alert("Saved!", "Success!");

}).ConfigureWait(false);



or



await _datacontext.SaveChangesAsync().ConfigureWait(false);

RadWindow.Alert("Saved!", "Success!");



throws this...



An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in WindowsBase.dll

Additional information: Exception has been thrown by the target of an invocation.


Exception:Thrown: "The calling thread must be STA, because many UI components require this." (System.InvalidOperationException)

A System.InvalidOperationException was thrown: "The calling thread must be STA, because many UI components require this."

Time: 11/30/2013 13:51:44

Thread:Worker Thread[6864]



I thought it was just me and Caliburn.Micro but its truly the control...



-Windows 8.1, Desktop Application, Lastest controls, Visual Studio 2013, Entity Framework 6.0-



Ventzi
Telerik team
 answered on 04 Dec 2013
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?