Telerik Forums
UI for WPF Forum
2 answers
80 views
Hi Telerik,

I'm trying to retrieve the date of which I have right-clicked.
How can I retrieve a date (in month view) from a given point in the calendar.

Or if it is possible to have right-click also select the date would help me.

What I'm trying to achieve is that I have added a context menu and need to display some checked menu items according to the date being right-clicked (not the selected date).

Thanks in advance!
Best regards,
Kasper Schou
Kasper Schou
Top achievements
Rank 1
 answered on 14 Apr 2011
3 answers
159 views
Hi,

I'm in this simple situation, my Shell contains 2 regions 
in the first region I have a botton with a RoutedCommand associated (RoutedMyCommand)
in the second region I have a RadDocking like this :

<telerikDocking:RadDocking>
    <telerikDocking:RadDocking.DocumentHost>
        <telerikDocking:RadSplitContainer>
            <telerikDocking:RadPaneGroup Regions:RegionManager.RegionName="Body" >
            </telerikDocking:RadPaneGroup>
        </telerikDocking:RadSplitContainer>
    </telerikDocking:RadDocking.DocumentHost>
</telerikDocking:RadDocking>

when I activate a new View ( a new RadPane ) in Body region, the RadPane is initially "Tabbed Document" and it handle correctly the RoutedMyCommand 
when the RadPane becomes "Floating" the RoutedMyCommand is not handled by View. 

Telerik version 2010.3.1110.35

Thanks, Andrea.
George
Telerik team
 answered on 14 Apr 2011
1 answer
113 views
Hi

Can you please guide me - if there is anything in RadGrid which can help me to show "NO DATA FOUND" when underlying collection to the grid doesnt containt any data.

I think for AJAX grid telerik has NoRecordsTemplate which can be used. I didnt find anything for WPF RadGrid.

thanks!

Dharmesh
Maya
Telerik team
 answered on 14 Apr 2011
1 answer
145 views
Hi,

How can I position the insert row at the end of the rows currently in the grid ?

I've only found an example of how to display it after the grid footers.

Thanks,
Maya
Telerik team
 answered on 14 Apr 2011
3 answers
314 views
Hello,

I set up a simple WPF window with two grids side-by-side: A Telerik RADGridView and a Microsoft DataGrid.  Both grids are set up with 2 levels of hierarchy (master-detail), and are bound to the same data (2 master records, each with 1000 detail records).  Both grids have one fixed-width column on the master and detail levels.

On my machine, when I expand a master row on the Microsoft grid for the first time, it takes 4 seconds to display all the details; expanding a master row on the Telerik grid for the first time takes 9 seconds to display the details.

The thing that appears to be taking a long time is rendering the detail rows -- if I limit the height of the detail grid to 200 pixels, it takes less than a second to expand a master for the first time (this is the case with both the Microsoft grid and the Telerik grid).

I reviewed the performance tips/tricks.  Is there anything else I can do to reduce the time it takes to expand a master for the first time in the RADGridView?

Any help is much appreciated!

Here is the XAML and code-behind I'm using:

<Window x:Class="MasterDetailPerformance.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Height="360" Width="760">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="369" />
            <ColumnDefinition Width="369" />
        </Grid.ColumnDefinitions>
 
        <StackPanel Grid.Column="0" Margin="10" Height="300" Width="350">
            <TextBlock Text="Telerik RADGridView:" />
            <telerik:RadGridView x:Name="TelerikMasterGrid" AutoGenerateColumns="False" ShowGroupPanel="False">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="200" />
                </telerik:RadGridView.Columns>
                <telerik:RadGridView.ChildTableDefinitions>
                    <telerik:GridViewTableDefinition />
                </telerik:RadGridView.ChildTableDefinitions>
                <telerik:RadGridView.HierarchyChildTemplate>
                    <DataTemplate>
                        <telerik:RadGridView x:Name="TelerikDetailGrid" ItemsSource="{Binding Details}" AutoGenerateColumns="False" ShowGroupPanel="False">
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="200" />
                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>
                    </DataTemplate>
                </telerik:RadGridView.HierarchyChildTemplate>
            </telerik:RadGridView>
        </StackPanel>
 
        <StackPanel Grid.Column="1" Margin="10" Height="300" Width="350">
            <TextBlock Text="Microsoft DataGrid (click row to expand, ctrl-click to collapse):" />
            <DataGrid x:Name="MicrosoftMasterGrid" AutoGenerateColumns="False" RowDetailsVisibilityMode="VisibleWhenSelected">
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding Name}" Header="Name" Width="200" />
                </DataGrid.Columns>
                <DataGrid.RowDetailsTemplate>
                    <DataTemplate>
                        <DataGrid x:Name="MicrosoftDetailsGrid" AutoGenerateColumns="False" ItemsSource="{Binding Details}">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Name}" Width="200" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </DataTemplate>
                </DataGrid.RowDetailsTemplate>
            </DataGrid>
        </StackPanel>
    </Grid>
</Window>

public partial class MainWindow : Window
{
    private IList<Master> masterList = new List<Master>();
 
    public MainWindow()
    {
        InitializeComponent();
        FillMasterList();
        TelerikMasterGrid.ItemsSource = masterList;
        MicrosoftMasterGrid.ItemsSource = masterList;
    }
 
    private void FillMasterList()
    {
        for ( int index = 0; index < 2; ++index )
        {
            masterList.Add(
                new Master()
                {
                    ID = index,
                    Name = index.ToString(),
                    Details = GetDetails()
                } );
        }
    }
 
    private IList<Detail> GetDetails()
    {
        IList<Detail> details = new List<Detail>();
        for ( int index = 0; index < 1000; ++index )
        {
            details.Add( new Detail() { ID = index, Name = index.ToString() } );
        }
        return details;
    }
}
 
public class Master
{
    public int ID { get; set; }
    public string Name { get; set; }
    public IList<Detail> Details { get; set; }
}
 
public class Detail
{
    public int ID { get; set; }
    public string Name { get; set; }
}
Vlad
Telerik team
 answered on 14 Apr 2011
4 answers
388 views
Hello,
    I need to capture the ctrl and shift keys after selecting a row on the grid. I can code something using the SelectionChanged and keydown events but it will take a while to perfect. Has anyone already coded this logic?
Thanks
Charlie
Top achievements
Rank 2
 answered on 13 Apr 2011
1 answer
38 views
Is it possible to apply IsEnable="False" on the radtreeviewitem but not on their children ?

By default, it's applied on their children also.

Thanks,
Petar Mladenov
Telerik team
 answered on 13 Apr 2011
1 answer
153 views
Hello.

I'm adding an image to my treeview using the "DefaultImagesSrc" property and the ImagesBaseDir property. The image displays, but significantly smaller than it should. I tried setting the height and width properties for the radtreeviewitem to be the size of the image but that didn't work. When I drop an image control onto the xaml and set it to the same image, it displays in the proper size. What am I doing wrong?

<telerik:RadTreeView Height="250" HorizontalAlignment="Left" Margin="12,32,0,0" Name="tvDirectories" VerticalAlignment="Top" Width="364" ItemsSource="{Binding ElementName=radTreeView1, Path=Background}" ImagesBaseDir="/UploadDocFromPDFWPF;component/Images/" ItemPrepared="radTreeView_ItemPrepared">
    <telerik:RadTreeViewItem DefaultImageSrc="mycomputer.png"></telerik:RadTreeViewItem>
</telerik:RadTreeView>

Again, if I create a standard image control and use the same image it displays using the proper size.
Petar Mladenov
Telerik team
 answered on 13 Apr 2011
1 answer
230 views
Hello,

I'd like to have a few questions about RadTileView WPF control:

  1. I need to change the size (height) of RadTileViewItem. Setting height works fine, but the area provided by owner RadTileView remains unchanged. Is there any way to change this area's size?
  2. The mouse scroll wheel doesn't work with RadTileView placed in ScrollViewer. I haven't found any suitable property to fix this, is there one?
  3. When I have RadTileView placed in ScrollViewer, I scroll down little bit, click any focusable control contained in a child RadTileViewItem, and then it scrolls itself the top of the RadTileView. (In other words, when any control on RadTileViewItem gets focus, it automaticaly scrolls up to RadTileView's top border). Is there any way to change this behaviour?

Thanks for every answer.

Viktor
Zarko
Telerik team
 answered on 13 Apr 2011
2 answers
154 views
Hello, I have a RadTileView and wondered how to change the DataTemplate for the RadTilveView.ItemTemplate (header) based on the state or configuration of the RadTileView?

Example:
<!-- TileView.HeaderTemplate -->
<DataTemplate x:Key="MinimizedHeaderTemplate">
    <StackPanel Orientation="Horizontal">
        <TextBlock Text="{Binding PatientName}" Width="125" Margin="14,0,0,0" />
    </StackPanel>
</DataTemplate>
  
<DataTemplate x:Key="MaximizedHeaderTemplate">
    <StackPanel Orientation="Horizontal">
        <TextBlock Text="{Binding PatientName}" Width="125" Margin="14,0,0,0" />
        <TextBlock Text="{Binding Age}" Width="30" Margin="14,0,0,0" />
        <TextBlock Text="{Binding Protocol}" Width="100" Margin="14,0,0,0" />
        <TextBlock Text="{Binding Actions}" Width="65" Margin="14,0,0,0" />
        <TextBlock Text="{Binding RegTime}" Width="75" Margin="14,0,0,0" />
    </StackPanel>
</DataTemplate>

Is there something I can bind the ItemTemplate to to evaluate the state of the currently selected item?
Tina Stancheva
Telerik team
 answered on 13 Apr 2011
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?