Forum Replies Created

Viewing 15 posts - 1 through 15 (of 717 total)
  • Author
    Posts
  • Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    The presence of line breaks (‘\ n’) in the string, could be the trigger of this problem. This should be fixed in our upcoming service release (should be available within few weeks from now).

    In the meantime, a possible workaround is to specify a CellContentTemplate that will use a TextBlock. For example for the column “Col1”:

    <Xcdg: DataGridControl.Columns>
       <xcdg: Column FieldName = “Col1”>
         <Xcdg: Column.CellContentTemplate>
           <DataTemplate>
             <TextBlock Text = “{Binding}” />
           </ DataTemplate>
         </xcdg:Column.CellContentTemplate>
       </ Xcdg: Column>
    </xcdg:DataGridControl.Columns>

    If the problem is not caused by the presence of the ‘\ n’ character, we would like to have a list of all characters in the text causing the problem in order to attempt to reproduce the issue and have a closer look.

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Stating from v6.2, we have added an “out of the box” group header that displays stats. You may refer to the DefaultHeadersFootersType property on GroupConfiguration topic on our documentation center for detailed information in this regard, at:

    https://xceed.com/wp-content/documentation/xceed-datagrid-for-wpf/webframe.html#Xceed.Wpf.DataGrid~Xceed.Wpf.DataGrid.GroupConfiguration~DefaultHeadersFootersType.html

    You may also check the “Summaries & Statistics” sample, which comes along with the Xceed pacakge and can be found, by default, at the following path on your machine:

    C:\Xceed Samples\Xceed DataGrid for WPF v6.4\CSharp\SummariesAndStatistics

    It demonstrates how to create a statcell for every corresponding StatFunction defined on the DataGridCollectionView.

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    The WatermarkComboBox derives from the ComboBox and adds a watermark. So the filtering “Starts With” is the same as the one in the standard comboBox.

    If you want to use the WatermarkComboBox and use a “Contains” filter instead of a “Starts With” filter, you will have to derive from ComboBox (or WatermarkComboBox) and add the necessary to filter the way you want. Here are people trying to do so :
    -http://dotbay.blogspot.ca/2009/04/building-filtered-combobox-for-wpf.html
    -http://jacobmsaylor.com/wpf-filtering-a-combobox/

    Please note that the toolkit also offers a TokenizedTextBox with filtering as you type. You can test it in the sample “Input Fields/Text/Tokenized TextBox” of the LiveExplorer of the Toolkit available here : https://xceed.com/xceed-toolkit-plus-for-wpf/.

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    While I don’t have a sample which implements your requirements, you may look at the “MVVM” sample project which comes along with the Xceed package for detailed information on how to use the grid with MVVM. The sample can be found, by default, at the following path on your machine:

    C:\Xceed Samples\Xceed DataGrid for WPF v6.4\CSharp\MVVM

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Can you give me more details regarding what are you trying to achieve so that I could have a better understanding.

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    I am not sure if I understood what you mean. Can you give me more details so that I could have a closer look at your requirement.

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    We were able to reproduce the issue and this should be fixed in V3.6.

    In the meantime, go in file Xceed.Wpf.AvalonDock/DockingManager.cs,
    In method :
    GetFloatingWindowsByZOrder()
    and replace the beginning :

    var parentWindow = Window.GetWindow( this );

    if( parentWindow == null )
    yield break;

    IntPtr windowParentHanlde = new WindowInteropHelper( parentWindow ).Handle;

    with :

    IntPtr windowParentHanlde;
    var parentWindow = Window.GetWindow( this );
    if( parentWindow != null )
    {
    windowParentHanlde = new WindowInteropHelper( parentWindow ).Handle;
    }
    else
    {
    var mainProcess = Process.GetCurrentProcess();
    if( mainProcess == null )
    yield break;

    windowParentHanlde = mainProcess.MainWindowHandle;
    }

    and see if it helps.

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Which Xceed product are you using?

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    It seems like you have downloaded the .net 3.5 version. Could you download the latest version for .net 4.5 from the below link and tell me if that fixes the issue:

    Xceed Zip for .NET

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Using a standard WPF RichTextBox with HorizontalContentAlignment and VerticalContentAlignment will not work, by design.

    The Xceed.RichTextBox derives from the standard WPF RichTextBox, so the HorizontalContentAlignment and verticalContentAlignment will still don’t work.

    Here are potential solutions :
    For Horizontal alignment, as you do, try setting the Document.TextAlignment :

    _RichTextBox.Document.TextAlignment = TextAlignment.Right;

    For vertical alignment, try modifying the TextBoxBase ControlTemplate so that the ScrollViewer will template bind the VerticalContentAlignment :

    <Style x:Key=”AlignedTextBoxBaseStyle”
    TargetType=”TextBoxBase”
    BasedOn=”{StaticResource {x:Type TextBoxBase}}”>
    <Setter Property=”Template”>
    <Setter.Value>
    <ControlTemplate TargetType=”{x:Type TextBoxBase}”>
    <Border x:Name=”border” BorderBrush=”{TemplateBinding BorderBrush}” BorderThickness=”{TemplateBinding BorderThickness}” Background=”{TemplateBinding Background}” SnapsToDevicePixels=”True”>
    <ScrollViewer x:Name=”PART_ContentHost” Focusable=”false” HorizontalScrollBarVisibility=”Hidden” VerticalScrollBarVisibility=”Hidden” VerticalAlignment=”{TemplateBinding VerticalContentAlignment}”/>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>

    <xctk:RichTextBox x:Name=”_RichTextBox”
    Width=”300″
    Height=”100″
    Background=”LightGreen”
    Style=”{StaticResource AlignedTextBoxBaseStyle}”>

    You will then be able to do :
    _RichTextBox.VerticalContentAlignment = VerticalAlignment.Bottom;

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Unfortunately, master-details view is only available in the Pro-edition of the grid, not in the Toolkit one.

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Could you give me more details regarding your scenario so that I could have a better understanding.

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Could you send me a simple stand alone sample project which reproduces the issue so that I could have a closer look. You may send it to: support@xceed.com

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    You can display the AutoFilterControl by setting the DataGridCollectionViewSource’s AutoFilterMode property according to your needs. A simple code snippet which can be used in this regard could be:

    <xcdg:DataGridCollectionViewSource x:Key=”TheCollectionViewKey”
    Source=”{Binding Source={x:Static Application.Current}, Path=Orders}”
    AutoFilterMode=”And”
    >

    Fawzi [Xceed]
    Member
    Post count: 722
    in reply to: Summary row #44916

    Hi,

    Statistics and summaries are only available in the professional edition of the grid. That said, the included version of the DataGrid in the Toolkit, does not support statistics.

Viewing 15 posts - 1 through 15 (of 717 total)