Telerik Forums
UI for WPF Forum
1 answer
195 views
Hi telerik team
I request you to add persian(Hijri) calendar to your controls because its very necessary for iranians.
I saw many request from you and you just say WE HAVE NOT PLAN TO ADD PERSIAN CALENDAR!!!
I realy dont understand why???
Yana
Telerik team
 answered on 02 Aug 2011
3 answers
144 views
Hello, I have the following problem:
When you double click a row or press enter, the RowActivated event fires and gives you a RowEventArgs.
However, in the case of the enter key, the RowEventArgs has Row=null.
How can I find out which row was selected?

Thanks.
Maya
Telerik team
 answered on 02 Aug 2011
3 answers
84 views
Hi,
I have a problem that is, when I need to update any row in the grid I need to expand that row, but after saving it I need to rebind the grid to load it with latest data, because of this my expanded row collapses, thats what I don't want.
I need the expanded row expanded after the rebind (only one row could be expanded at a time).

Please help me out as soon as possible.

Thanks
Nitin
Nitin
Top achievements
Rank 1
 answered on 02 Aug 2011
3 answers
99 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
98 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
164 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
89 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
44 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
96 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
778 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?