Telerik Forums
UI for WPF Forum
4 answers
145 views
Dear forums,

Right now I have a grid (2010.2.714.40) that uses the DefaultView of a DataTable as an ItemsSource.  Unfortunately using something other than DataTables in not an option in my scenario.  I have a custom IFilterDescriptor which lets me filter the grid based on some complicated rules.  The filter works when it is applied, but if the data in the row changes, the filter is not reapplied.  Looking at this forum post it seems like that is the expected behavior.  Regardless, I need it to work the other way.  The alternatives suggested in that thread are not viable in my situation because it is too expensive to recreate/reset the collection view (thus reapplying the filter on each row) every time a field changes.  Are there any other alternatives?

My idea for a workaround was to add a layer of abstraction between the data table and the ItemsSource and do the filtering there instead of using the Grid's built in filtering.  This is doable because the filters are created outside of the Grid's filtering UI.  My FilteredCollectionView class took the DataTable as a member, and listened for changes to the table.  With each row change event it applied the filter on the modified row, and added/removed the DataRow as necessary to an ObservableCollection<DataRow>.  I then set the Grid's ItemsSource to that ObservableCollection.  

Sadly this is not working as expected.  Whenever I try to use my collection, I get errors like these for each column:  Property <PropertyName> not defined for type DataRow at Telerik.Windows.Data.PropertyPathDescriptor.GetPropertyDescriptor(PropertyToken token, Type componentType).  

I suspect it is occurring because of the dynamic nature of DataTables/DataRows and how the grid deals with them internally; it probably knows how to handle DataRows when the ItemsSource is a DataTable, but it never expects to see DataRows in a normal collection.

Any solutions to my current workaround, or suggestions of other workarounds will be greatly appreciated.

Thanks,
Tom
Tom
Top achievements
Rank 1
 answered on 20 Jul 2010
2 answers
233 views
Hi,

I recently found out that you guys support virtualization on the RadTreeView and am very happy with its performance.
The way I use it is:

telerikTreeView:TreeViewPanel.IsVirtualizing="True"
telerikTreeView:TreeViewPanel.VirtualizationMode="Recycling"

There are three modes for virtualization - "Recycling", "Standard" and "Hierarchical". I could find some description for first two. How does the "Hierarchical" perform?

Also I noticed that virtualization is not enabled by default. Are there any cases when virtualization should not be turned on? Do I need to worry about something when turning it on?

Thank you,
Ruben.
rubenhak
Top achievements
Rank 1
 answered on 20 Jul 2010
2 answers
217 views
Hi,

I set the following property for the DataGrid
_dataGrid.SelectionMode = _presenter.AllowMultipleSelection ? SelectionMode.Extended : SelectionMode.Single;

Value of _presenter.AllowMultipleSelection  is set to true for multiple selection. When I use Shift Key and Mouse I am able to select multiple rows but using Shift Key and Up/down keys i am not able to select multiple rows in a data grid view.

I looked at the documentation. In example its seems to work with selection mode extended. But when I am implementing for my grid it doesn't......

Regards
Sanket
Sanket Singhvi
Top achievements
Rank 1
 answered on 20 Jul 2010
1 answer
221 views
I am trying to add a display bellow my grid which will show how many of the source items are displayed in the grid after filtering is applied.  I have two text Blocks, one bound to ItemsSource.Count, this works fine and the other bound to Items.Count this always shows a value of 0.  Is binding to this property not possible?  Is there another way to accomplish this easily that will work across multiple methods of applying filters.
Maya
Telerik team
 answered on 20 Jul 2010
1 answer
101 views
Hello,

I'd like to catch the checked/unckecked item.

As you describe in your documentation : http://www.telerik.com/help/wpf/telerik.windows.controls.navigation-telerik.windows.controls.radtreeview-unchecked_ev.html

I've tried this :

void RadTreeView1_Unchecked(object sender, RadRoutedEventArgs e)
{
   // get a reference to the item that has been unchecked
   RadTreeViewItem uncheckedItem = e.Source as RadTreeViewItem;
        if (uncheckedItem == null) return;
        SphItem oItem = uncheckedItem.DataContext as SphItem;
        if (oItem != null && OnUncheckedItem != null) OnUncheckedItem(oItem);

}


But uncheckedItem is always null.

If I use e.Originalsource, i get a RadTreeViewItem, but not the leaf one.
image my tree is like this :
part1
  |--- elt1
  |--- elt2
I unchecked elt2, i obtain part1 in my datastructure SphItem...

Thanks for your help
Aurore
Valentin.Stoychev
Telerik team
 answered on 20 Jul 2010
1 answer
71 views
This is probably a stupid question, but..

I thought I'd experiment with drag-and-drop, so I did as instructed in the "getting started" subject in the documentation: added AllowDrag=True to the source and AlloDrop=true to the target:
<UserControl x:Class="CreditSuisse.SDP.Client.Application.Workspace"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:telerikDragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
             mc:Ignorable="d"  
>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0" Orientation="Vertical" Background="LightBlue" VerticalAlignment="Stretch">
            <TextBlock x:Name="item1" Background="Blue" Width="75" Height="75" VerticalAlignment="Center" HorizontalAlignment="Center" telerikDragDrop:RadDragAndDropManager.AllowDrag="True" Text="qwerty"/>
        </StackPanel>
        <StackPanel Grid.Column="1" Orientation="Vertical" Background="LightGreen" VerticalAlignment="Stretch" telerikDragDrop:RadDragAndDropManager.AllowDrop="True" Drop="StackPanel_Drop">
  
        </StackPanel>
    </Grid>
  
</UserControl>

Now, my user control displays nicely, but no drag-and-drop visual cues or anything.

It seems to me that the "getting started" subject is missing the last two-thirds...?
Tina Stancheva
Telerik team
 answered on 20 Jul 2010
1 answer
113 views
Hi,
Is there any good Telerik WPF control for File attachment.
Thanks
Pavel Pavlov
Telerik team
 answered on 20 Jul 2010
3 answers
344 views
Hi,

I am using the Telerik.Windows.Controls.RadWindow. By default it has a transition when it opens and closes. This actually gives the impression the window is opening slowly and thus the system is performing badly. What is the best way to disable this functionality? Can it be done programmatically?

Thanks heaps.
George
Telerik team
 answered on 20 Jul 2010
6 answers
253 views
Hi,
I am using RadCarousel on login screen. I have some user lists that is in items source of this panel. Currently its working fine and whoever user sign in, I am using  Panel.BringDataItemIntoView(Panel.SelectedItem as Person); , and it brings focus to slelected user. I want some animaiton to rotate the whole carousel items for 3-4 times just to give user an idea that is is searching. Is i possible?

Also I have gone through all carousels but no one is showing the full 3D view. I mean only 5 items at a time visible. I want it to show fully 3D circle.
Thanks
Muhammad
Top achievements
Rank 1
 answered on 20 Jul 2010
3 answers
126 views
Is it possible to override the MapProviderBase class to create a custom map provider that uses a tile server (rather than a WMS server) as a datasource?  A prompt reply would be very much appreciated!!

Thanks,
Chris
CTI
Andrey
Telerik team
 answered on 20 Jul 2010
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?