Telerik Forums
UI for WPF Forum
4 answers
111 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
59 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
117 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
841 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
147 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
113 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
217 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
0 answers
95 views
Hi
I need to validate some rules befor user can fill special column in GridView (Such as previous column shouldn't be null). How can I mark cell invalid in BeginEdit event? OR any other idea?

All the best
Mehri
Mehri
Top achievements
Rank 1
 asked on 01 Aug 2011
1 answer
165 views

Hello Telerik,

Here is the style:

<Window.Resources>
        <Style TargetType="telerik:GridViewColumn">
           <Setter Property="HeaderTextAlignment" Value="Center"/>
      </Style>
 </Window.Resources>

And here is the grid:

<telerik:RadGridView Name="radGridScenario" CanUserReorderColumns="False" CanUserSortColumns="False" CanUserFreezeColumns="False" IsFilteringAllowed="False" ShowGroupPanel="False" AutoGenerateColumns="False" >
   
     <telerik:RadGridView.Columns>
     <telerik:GridViewDataColumn DataMemberBinding="{Binding BusName}" UniqueName="BusName" Header="Bus Name" Width="100" />
    </telerik:RadGridView.Columns>

</telerik:RadGridView>

Observe the style is not working and the column is left centered (default behaviour). To make it working I have to create a named style and assign this style by key to every column. Why can't I create a global default style for all the columns automatically?
Just in case somebody wants to point out that I should create style for GridViewDataColumn (instead of GridViewColumn) my answer is that GridViewDataColumn is derived from GridViewColumn and even if I do that in the style definition it's stil not working.

If I apply the same technique to other grid properties, for example to center check box then it is working.

Thanks,
Cezar

 

Vanya Pavlova
Telerik team
 answered on 30 Jul 2011
7 answers
270 views
Hi..
Is there any way to implement an incremental search field or combobox in the grid.
So a user can Type in 'Sm'  and the Grid will locate the first column value of 'Sm'
and when they type 'Smith' it will locate 'Smith'
thanks in advance..
john
Top achievements
Rank 1
 answered on 30 Jul 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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?