Telerik Forums
UI for WPF Forum
3 answers
108 views
We have recently upgraded to 2011.2.712.35 dlls.  I have dual monitors and am running Windows 7.  I have an application that displays a modal RadWindow.  My problem is that when I drag the modal window onto the left (secondary) monitor, the window stops dragging when its right side reaches the monitor.  I cannot fully drag the window onto the left monitor.  I rolled back to the previous version of the dlls and it works as expected.  The window will go onto the monitor fully and can be maximized.  Please help me figure this out since all of our users have dual monitors.

Jason
Yana
Telerik team
 answered on 02 Aug 2011
2 answers
113 views
Hi,

When I enable Drap and Drop for GridViewRow, this stops column header grouping working because it tries to drag the column header instead of performing the grouping action.

<telerik:RadGridView.RowStyle>
    <Style TargetType="telerik:GridViewRow">
        <Setter Property="telerikDragDrop:RadDragAndDropManager.AllowDrag" Value="True" />
    </Style>
</telerik:RadGridView.RowStyle>

Is there any way to fix this?

Thanks
Diji
Top achievements
Rank 1
 answered on 02 Aug 2011
2 answers
184 views
I have a RadGridView using a DetailsPresenter (external).  It works great, however if the grid only have one record, the provider doesn't show anything.  Any thoughts as to why?

Here is how I have my RowDetailsTemplate defined:

                <telerik:RadGridView.RowDetailsTemplate>
                    <DataTemplate>
                        <local:NonLaborCostCodeDetailRowTemplate x:Name="NonLaborCostCodePresenter"/>
                    </DataTemplate>
                </telerik:RadGridView.RowDetailsTemplate>

and below, outside the RadGridView tags, I have the following:

            <Border Grid.Row="1" x:Name="externalDetailsBorder" BorderBrush="#FF848484" BorderThickness="1,0">
                <telerik:DetailsPresenter x:Name="ExternalPresenter"
                                      DetailsProvider="{Binding RowDetailsProvider, ElementName=radGridView1}"/>
            </Border>

Robert
Top achievements
Rank 1
 answered on 01 Aug 2011
4 answers
101 views
We have an application whose base shell window is nothing but the RadDock.  One of the best usages we have found (basically the reason we bought the tools) is the multiple monitor support where you allow the DocumentPane to float and therefore be mobile around all of the screen real estate.  We programmatically add these tabs/panes in our codebehind.  To date (being the last two months), we have used the following code to add a tab and it has worked flawlessly.  We new up a DocumentPane, throw in a user control, and it can fly around both screens.  With the Q2 release, we have lost the capacity to use both monitors.  You can drag the pane over to the secondary monitor, but it hits a "wall" and stops when the trailing edge of the pane reaches the near side of the secondary monitor.

Example:  My secondary screen is on my left side.  I start the app on the right monitor.  I click a menu item to instantiate the new pane.  I drag the pane from the right screen over to the left screen.  The pane goes onto the secondary screen fine until the right edge of the pane reaches the right side of the left monitor.  Then it stops.  At that point, I'm only about 50 pixels into the other screen.

I can resize the dragged pane to take up whatever space I want, but it stays "locked" onto the edge of the screen instead of free floating.  Is there an explanation as to why this behavior would change?

Thanks!
Doug

Code:

<telerik:RadDocking Name="dockApplication" Grid.Column="1" BorderThickness="1" BorderBrush="#B1B1B1"
                                        Library:DockingExtensions.RemovePanesWhenClosed="True" Background="#D3D3D3">
    <telerik:RadDocking.LayoutTransform>
        <ScaleTransform CenterX="0" CenterY="0" ScaleX="{Binding ElementName=scaleSlider, Path=Value}"
                        ScaleY="{Binding ElementName=scaleSlider, Path=Value}" />
    </telerik:RadDocking.LayoutTransform>
    <telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer>
            <telerik:RadPaneGroup Name="panelGroupMain" AllowDragReorder="True"></telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>
</telerik:RadDocking>


RadDocumentPane documentPane = new RadDocumentPane
                                {
                                    Content = control,
                                    CanDockInDocumentHost = true,
                                    CanFloat = true,
                                    CanUserClose = true,
                                    Header = "Tab " + _tabCount + " - " + title
                                };
 
panelGroupMain.AddItem(documentPane, DockPosition.Center);

Doug
Top achievements
Rank 1
 answered on 01 Aug 2011
1 answer
55 views
Hi Support team,
We are working on schedule view, We want some help on this.
We are very much interested in first look example( The Royal Tennis club example) .this fits our requirement. Can you please pass over the solution file, so that we can run it locally, and check it for the large number of data.
Please pass over the working code so that we can test it locally.  Please do the needful, I will wait for the reply.

Thanks,
Vivek.
Balakumar
Top achievements
Rank 1
 answered on 01 Aug 2011
4 answers
110 views

A RadTabStrip has two tabs linked to a RadMultiPage control containing two pages, both of which contain RadGrids. There is a button that executes the RadGrid’s MasterTableView.ExportToCSV() method on each page. This works on the first tab, but after switching to another tab the functionality is lost on all tabs.

Method seems to fire correctly when stepping through code, but the file download prompt does not appear
Eraph
Top achievements
Rank 1
 answered on 01 Aug 2011
4 answers
830 views
Hi,
We have a custom data virtualization component that we use as the itemsource for the radgridview. The data virtualization component is build on the sample project at the following location
http://www.codeproject.com/KB/WPF/WpfDataVirtualization.aspx

In my project,I have downloaded the source from the above site and  I have 2 windows , one that contains a wpf toolkit grid (ToolkitDataGrid.xaml) and the other that contains the telerik grid (TelerikDataGrid.xaml). The wpf grid works well with the virtualization component and only fetches rows that are in the visible area of the grid.
 
The telerik grid on the other hand fetches all the rows instead of only the visible ones.
This is a very critical requirement and I would be very grateful for any help/assistance.

With Windows datagrid 
<Window x:Class="DataVirtualization.ToolkitDataGrid"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dg="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit" 
        Title="ToolkitDataGrid" Height="600" Width=" 700" >
    <Grid>
          
        <Button Height="50" Width=" 100" Content="Load" Click="Button_Click"  VerticalAlignment="Top"/>
            <dg:DataGrid Name="dataGrid" Margin="5,100,5,5" 
                         ItemsSource="{Binding}"
                         AutoGenerateColumns="False"
                     ScrollViewer.IsDeferredScrollingEnabled="True"
                     VirtualizingStackPanel.VirtualizationMode="Recycling"
                     VirtualizingStackPanel.IsVirtualizing="True"  >
                <dg:DataGrid.Columns>
  
                    <dg:DataGridTextColumn Binding="{Binding Id}" Header="Id" />
                    <dg:DataGridTextColumn Binding="{Binding Name}" Header="Name" />
                </dg:DataGrid.Columns>
            </dg:DataGrid>
          
    </Grid>
</Window>

C# code behind
using System.Windows;
namespace DataVirtualization
{
    /// <summary>
    /// Interaction logic for ToolkitDataGrid.xaml
    /// </summary>
    public partial class ToolkitDataGrid : Window
    {
        public ToolkitDataGrid()
        {
            InitializeComponent();
        }
  
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DemoCustomerProvider customerProvider = new DemoCustomerProvider(1000000, 1000);
            var results=new VirtualizingCollection<Customer>(customerProvider, 20);
            DataContext = results;
        }
    }
}

The same thing with the telerik grid:
<Window
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" xmlns:GridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="DataVirtualization.TelerikDataGrid"
        Title="TelerikDataGrid" Height="600" Width=" 700" >
    <Grid>
        <Button Height="50" Width=" 100" Content="Load" Click="Button_Click"  VerticalAlignment="Top"/>
        <Controls:RadGridView x:Name="dataGrid" Margin="5,100,5,5" 
                         ItemsSource="{Binding}"
                         AutoGenerateColumns="False"
                     ScrollViewer.IsDeferredScrollingEnabled="True"
                     VirtualizingStackPanel.VirtualizationMode="Recycling"
                     VirtualizingStackPanel.IsVirtualizing="True" DataLoadMode="Asynchronous">
            <Controls:RadGridView.Columns>
  
                <Controls:GridViewDataColumn DataMemberBinding="{Binding Id}" Header="Id" />
                <Controls:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" />
            </Controls:RadGridView.Columns>
        </Controls:RadGridView>
    </Grid>
</Window>

c# code behind
using System.Windows;
  
namespace DataVirtualization
{
    /// <summary>
    /// Interaction logic for TelerikDataGrid.xaml
    /// </summary>
    public partial class TelerikDataGrid : Window
    {
        public TelerikDataGrid()
        {
            InitializeComponent();
        }
  
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DemoCustomerProvider customerProvider = new DemoCustomerProvider(1000000, 1000);
            var results = new VirtualizingCollection<Customer>(customerProvider, 20);
            DataContext = results;
        }
    }
}
Alan
Top achievements
Rank 1
 answered on 01 Aug 2011
1 answer
144 views
I had drag and drop working and now it doesn't seem to be working.

I have a DragQuery handler that creates Custom Appointment objects from ListViewItems (DataRowView) to the ScheduleView and adds them to an ObservableCollection to be added as the payload.
if (appointments.Count > 0)
                {
                    e.Options.DragCue = CreateDragCue(appointments);
                    ScheduleViewDragDropPayload payload = new ScheduleViewDragDropPayload(null, appointments);
                    e.Options.Payload = payload;
                }

However, now in my custom ScheduleViewDragDropBehavior class, the objects being dragged are Telerik Appointment items instead of the CustomAppointment object that I created and added as the payload. Did something change? I already figured one thing out and that was that I had to add the new ExecutionMode property to get my drag to occur from my ListView. What else has changed? Kind of upsetting that I keep having to changing things everytime I upgrade the controls.

Is there a more current example of how to drag listviewitems to the scheduleview?
Yana
Telerik team
 answered on 01 Aug 2011
1 answer
107 views
When using 'Collection Editor: Columns' to edit the Columns collection, in the 'Select item:" combobox I only have the option to add a column of type GridViewColumn.  I know I can add columns manually, but is there some way to add the other supported column types to this dropdown?

Is there any documentation for GUI?  What about for the product in general?  

Thanks.
Dimitrina
Telerik team
 answered on 01 Aug 2011
6 answers
210 views
Mouse wheel in RadNumericUpDown not working. I tried different mice and different computers, but RadNumericUpDown doesn't react on mouse wheel. Mouse wheel in standard numericUpDown works good. I can't imagine what is the problem. Any ideas?
Yana
Telerik team
 answered on 01 Aug 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?