Telerik Forums
UI for WPF Forum
4 answers
107 views
Hi

Please find the attached file.

When I resize the browser window then grid is resized properly.

But when I click maximize button of IE or mozilla then white spot is present as shown in attached file.

Please have a look at the problem.
Shailender
Top achievements
Rank 1
 answered on 15 Dec 2010
4 answers
163 views
I have a RadGridView that has data in it, and I apply a filter to the column with the Filter1 component.

For example, I have a string column type, and I add the filter 'Not Equal To Foo'

All works fine.  I save the filterdescriptors when I close the application.  When I open the application the next time, the data collection is empty, but the saved filter is applied.

Now when I mouse over the column header, the Filter Icon does not appear, even tho the IsFilterable is set to true, and the column has a filter decsriptor that was applied to it.  Neither the Filter or the Sort will work on the columns in the grid.  If I step into the grid and look at the Header Cell, the PropertyType is set to null.

If there is data in the collection, then the filtering and sorting work fine, even if there is no row that matches the value 'Foo'.

It seems that if the ItemsSource data collection is empty, and you apply filter descriptors, the header cells don't get the property type set, and this disables the sorting and filtering.  After adding items to the data collection, they show up in the grid just fine, but no sorting or filtering works on the grid.

We see this problem after updating to the Q2 release, where in the prior release this was working correctly.

Has anybody else worked with adding filter descriptors to the grid's FilterDescriptor collection programmatically had any problems doing this?  
rahma
Top achievements
Rank 1
 answered on 14 Dec 2010
1 answer
261 views
When I right click on a row, I want the row to become selected.  I also want a context menu in which each menu item uses an ICommand.

To get the right click selection, I'm handling the context menu's Opened event, using RadContentMenu's GetClickedElement<GridViewRow>() method, and changing the gridview's SelectedItems appropriately.

The trouble is, the Command's CanExecute method is getting called before the context method's Opened is called.  So my CanExecute is analyzing the previously selected item(s).  At one point I fiddled with things enough to get the CanExecute to also be called after I changed the selection, but the user can see the menu items become enabled/disabled and that's no good.
If CanExecute is being called before the context menu opens, I need to change the selections before CanExecute and Opened are called.

How can I get the behavior I want?

Maybe if there was a PreviewOpen event on the context menu.  Or maybe I can handle a row clicked event, look for right-clicked, and change the selection there?  If so, I don't know how to do that at the moment.

Thanks for any help!
Buzz
Buzz
Top achievements
Rank 1
 answered on 14 Dec 2010
2 answers
114 views
I would like to more accurately determine if a Location is in a MapShape, or whether two MapShape intersect each other.

At present, I use something like

LocationRect? selectionRect = null;
foreach(MapShape shape in Items)
{
  LocationRect shapeLocationRect = shape.GeographicalBounds;
  shapeLocationRect.MapControl = MapControl;
  if (shapeLocationRect.Contains(location))
  {
    selectionRect = shapeLocationRect;
    break;
  }
}

This only uses the bounding rectangle, so if I have a MapPolygon, then I can possibly get a hit outside of the actual shape boundaries

The problem becomes more compounded when I need to look for the intersection of two shapes

foreach (var layerItem in layer.Items)
{
    if (layerItem is MapShape)
    {
        MapShape mapShape = (MapShape)layerItem;
        if (selectionRect.HasValue && mapShape.GeographicalBounds.Intersect(selectionRect.Value))
        {
        }
    }
}

One point to note is that because I only have MapPolygons ort MapPaths in my layer I can check the GeographicalBounds for the Intesection.  If I have MapRectangles or MapEllipses then I do not get a hit, unless I set the MapControl.

Hope you can help
Thanks
Simon
Simon
Top achievements
Rank 1
 answered on 14 Dec 2010
1 answer
367 views
Hello,

I am using WPF RadGridView, I want to collapse or expand the grid details on a button click of the selected row, I have toggle button on grid , but I want it to be toggled from other button, How can I do that from code behind.
Maya
Telerik team
 answered on 14 Dec 2010
1 answer
87 views

Hi

I want to know the boundary conditions for TreeListView using WPF.

1. I am loading the hierarchical levels on demand.
How many hierarchical levels can be displayed/added in TreeListView using WPF?

2. How many Rows can be displayed in TreeListView using WPF ?

 

3 How many Columns can be displayed in TreeListView using WPF ?
I want to display 250-300 columns.
Is there any facility to add the columns dynamically....
like we can add columns on demand while horizontal scrolling?

Thanks.

Veselin Vasilev
Telerik team
 answered on 14 Dec 2010
3 answers
121 views
I have a two TreeView controls, one on the left side and one on the right side. The users should be able to drag items from the left side to the right side, but not the other way around. I have this functionality working, but I want to remove the visual elements (Drag Preview, Preview Line and Tooltip) when the drag is over the left side so that the users don't think that they are allowed to drag. 

I've tried setting the following:
IsDragPreviewEnabled="False"
IsDragTooltipEnabled="False"
IsDropPreviewLineEnabled="False"
But I still get all the visuals. I'd be fine with the visual queue that shows the red indicator saying no to the user.
Tsvyatko
Telerik team
 answered on 14 Dec 2010
1 answer
103 views
Can I not drag and drop onto a ScheduleView? Add Apointments manually? What are the differences between the two controls?

Thanks,
Rod
Valeri Hristov
Telerik team
 answered on 14 Dec 2010
3 answers
95 views
Hello,
I need to add a column to the left of the RowIndicator column, how can I do this?

Thanks
Vanya Pavlova
Telerik team
 answered on 14 Dec 2010
2 answers
154 views
I have the below xaml code. When I change drawers the radgrid always has the same data (from the initial load). How can I get the grid to refresh it's data?



   <telerik:RadTileView DataContext="{Binding Source={StaticResource DS}, PresentationTraceSources.TraceLevel=High}" ItemsSource="{Binding}" x:Name="mainTileView" Height="Auto" Width="Auto" Margin="0 0 7 0" MaximizeMode="One" TileStateChangeTrigger="SingleClick" MinimizedColumnWidth="180" TileStateChanged="TileView1_TileStateChanged">
            <telerik:RadTileView.ItemContainerStyle>
                <Style TargetType="telerik:RadTileViewItem">
                    <Setter Property="MinimizedHeight" Value="155" />
                </Style>
            </telerik:RadTileView.ItemContainerStyle>
            <telerik:RadTileView.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding UserLabel}" />
                </DataTemplate>
            </telerik:RadTileView.ItemTemplate>
            <telerik:RadTileView.ContentTemplate>
                <DataTemplate>
                    <Grid>
                        <telerik:RadFluidContentControl SmallToNormalThreshold="190, 140" NormalToSmallThreshold="190, 140" NormalToLargeThreshold="320, 320" LargeToNormalThreshold="320, 320">
                            <telerik:RadFluidContentControl.SmallContent>
                                <Grid>
                                    <Border Width="193" Height="130" RenderTransformOrigin="0.248,-1.288">
                                        <StackPanel>
                                            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="DS Storage System:" />
                                            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="{Binding UserLabel}" />
                                        </StackPanel>
                                    </Border>
                                </Grid>
                            </telerik:RadFluidContentControl.SmallContent>
                           <telerik:RadFluidContentControl.Content>
<Grid>
<StackPanel>
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="Drawers" />
</StackPanel>
</Grid>
</telerik:RadFluidContentControl.Content>
                            <telerik:RadFluidContentControl.LargeContent>
                                <telerik:RadTileView x:Name="drawerTileView" ItemsSource="{Binding Source={ StaticResource DrawersData}}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0 0 7 0" MaximizeMode="One" TileStateChangeTrigger="SingleClick" MinimizedColumnWidth="180" TileStateChanged="TileView1_TileStateChanged">
                                    <telerik:RadTileView.ItemContainerStyle>
                                        <Style TargetType="telerik:RadTileViewItem">
                                            <Setter Property="MinimizedHeight" Value="155" />
                                        </Style>
                                    </telerik:RadTileView.ItemContainerStyle>
                                    <telerik:RadTileView.ItemTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding DrawerNumber}" />
                                        </DataTemplate>
                                    </telerik:RadTileView.ItemTemplate>
                                    <telerik:RadTileView.ContentTemplate>
                                        <DataTemplate>
                                            <Grid>
                                                <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="Drives" />
                                                <telerik:RadGridView x:Name="gridDrives" ItemsSource="{Binding Source={ StaticResource DrivesData}}" />
                                            </Grid>
                                        </DataTemplate>
                                    </telerik:RadTileView.ContentTemplate>
                                </telerik:RadTileView>

                            </telerik:RadFluidContentControl.LargeContent>
                        </telerik:RadFluidContentControl>
                    </Grid>
                </DataTemplate>
            </telerik:RadTileView.ContentTemplate>
        </telerik:RadTileView>
<telerik:RadTileView DataContext="{Binding Source={StaticResource DS}, PresentationTraceSources.TraceLevel=High}" ItemsSource="{Binding}" x:Name="mainTileView" Height="Auto" Width="Auto" Margin="0 0 7 0" MaximizeMode="One" TileStateChangeTrigger="SingleClick" MinimizedColumnWidth="180" TileStateChanged="TileView1_TileStateChanged">
         <telerik:RadTileView.ItemContainerStyle>
             <Style TargetType="telerik:RadTileViewItem">
                 <Setter Property="MinimizedHeight" Value="155" />
             </Style>
         </telerik:RadTileView.ItemContainerStyle>
         <telerik:RadTileView.ItemTemplate>
             <DataTemplate>
                 <TextBlock Text="{Binding UserLabel}" />
             </DataTemplate>
         </telerik:RadTileView.ItemTemplate>
         <telerik:RadTileView.ContentTemplate>
             <DataTemplate>
                 <Grid>
                     <telerik:RadFluidContentControl SmallToNormalThreshold="190, 140" NormalToSmallThreshold="190, 140" NormalToLargeThreshold="320, 320" LargeToNormalThreshold="320, 320">
                         <telerik:RadFluidContentControl.SmallContent>
                             <Grid>
                                 <Border Width="193" Height="130" RenderTransformOrigin="0.248,-1.288">
                                     <StackPanel>
                                         <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="DS Storage System:" />
                                         <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="{Binding UserLabel}" />
                                     </StackPanel>
                                 </Border>
                             </Grid>
                         </telerik:RadFluidContentControl.SmallContent>
                        <telerik:RadFluidContentControl.Content>
                             <Grid>
                                 <StackPanel>
                                     <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="Drawers" />
                                      
                                 </StackPanel>
                             </Grid>
                         </telerik:RadFluidContentControl.Content>
                         <telerik:RadFluidContentControl.LargeContent>
                             <telerik:RadTileView x:Name="drawerTileView" ItemsSource="{Binding Source={ StaticResource DrawersData}}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0 0 7 0" MaximizeMode="One" TileStateChangeTrigger="SingleClick" MinimizedColumnWidth="180" TileStateChanged="TileView1_TileStateChanged">
                                 <telerik:RadTileView.ItemContainerStyle>
                                     <Style TargetType="telerik:RadTileViewItem">
                                         <Setter Property="MinimizedHeight" Value="155" />
                                     </Style>
                                 </telerik:RadTileView.ItemContainerStyle>
                                 <telerik:RadTileView.ItemTemplate>
                                     <DataTemplate>
                                         <TextBlock Text="{Binding DrawerNumber}" />
                                     </DataTemplate>
                                 </telerik:RadTileView.ItemTemplate>
                                 <telerik:RadTileView.ContentTemplate>
                                     <DataTemplate>
                                         <Grid>
                                             <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="Drives" />
                                             <telerik:RadGridView x:Name="gridDrives" ItemsSource="{Binding Source={ StaticResource DrivesData}}" />
                                         </Grid>
                                     </DataTemplate>
                                 </telerik:RadTileView.ContentTemplate>
                             </telerik:RadTileView>
 
                         </telerik:RadFluidContentControl.LargeContent>
                     </telerik:RadFluidContentControl>
                 </Grid>
             </DataTemplate>
         </telerik:RadTileView.ContentTemplate>
     </telerik:RadTileView>
David Bakker
Top achievements
Rank 1
 answered on 14 Dec 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?