Telerik Forums
UI for WPF Forum
1 answer
129 views
Is there a way to auto-close one RadExpander when another RadExpander is expanded?

James
Miro Miroslavov
Telerik team
 answered on 06 Jun 2012
3 answers
87 views
Hello!

Is there the possibility to set MinHeight & MinWidth to the document host so when the user is resizing the window the DocumentHost would not go shrunk under the specified values?

Thank you!
Roxana
George
Telerik team
 answered on 06 Jun 2012
3 answers
367 views
Hi,

I use programmatically columns generation:

var col = new GridViewDataColumn
{
     DataMemberBinding =
new Binding(column.Name),
        Header = column.Header,
        ToolTip = new Binding(column.Description)
};
........................

for GridView:

<telerik:RadGridView x:Name="dgvResults" AutoGenerateColumns="False" CanUserDeleteRows="False" SelectionMode="Extended" IsReadOnly="True"
                             ShowGroupPanel="False" CanUserFreezeColumns="False" IsFilteringAllowed="True" RowIndicatorVisibility="Collapsed" ScrollMode="Deferred" EnableRowVirtualization="True" EnableColumnVirtualization="True"
                             ColumnWidth="170">
..............
</telerik:RadGridView>

But I can't see ToolTips for columns.
What is problem?

Thanks!
Vlad
Telerik team
 answered on 06 Jun 2012
2 answers
185 views
I've got a custom style for my RadGridView in my WPF application.  Before I started editing the style, I remember that the RadGridView used to show the selected row by changing the background color (I think). After editing the style, my control isn't doing this any more.

Can you point me to the style, or provide it in a response to this thread?

Thanks

Tony
Tony
Top achievements
Rank 1
 answered on 05 Jun 2012
0 answers
80 views
I am finding drag and drop really difficult to implement. I have tried to modify the DragandDrop example in RadListBox by adding a treeview in a column next to the Group A-D listboxes, modified the code to populated it with a couple country objects, but could not work draganddrop from this radtreeview to listboxes work. I also would like to enable reorder in the radlistbox as well.

I can post my solution here, but do not want to include the binaries etc.

Could someone quickly write a small demo, by modifying the demo little bit? I guess I need to use (maybe?) RadDragandDropManager and DragandDrop at the same time, but a sample project would help a lot.

Thanks.
Ahmet
Top achievements
Rank 1
 asked on 05 Jun 2012
4 answers
150 views
I have the following xaml:
<telerik:RadCarousel Name="myCarousel"  HorizontalContentAlignment="Stretch" VerticalAlignment="Top" VerticalContentAlignment="Center" Height="43" Padding="0" IsSynchronizedWithCurrentItem="True" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden" Background="{x:Null}" Margin="25,0,2,0" PreviewMouseDown="effectiveDateCarousel_PreviewMouseDown" PreviewKeyDown="effectiveDateCarousel_PreviewKeyDown" PreviewMouseWheel="effectiveDateCarousel_PreviewMouseWheel">
<telerik:RadCarousel.ItemsPanel>
<ItemsPanelTemplate>
<telerik:RadCarouselPanel HorizontalAlignment="Stretch" VerticalAlignment="Center" Path="{StaticResource path}" IsSelectedTopItem="True" />
          </ItemsPanelTemplate>
</telerik:RadCarousel.ItemsPanel>
</telerik:RadCarousel>


On the UserControl loaded event I have the following:
RadCarouselPanel panel = myCarousel.FindCarouselPanel();
panel.ItemsPerPage = 7;

Most of the time this works fine. However occasionally the FindCarouselPanel will return null instead of the panel? Am I doing something wrong? Is there anything I can do to prevent this?
Dev
Top achievements
Rank 1
 answered on 05 Jun 2012
7 answers
561 views
since braking changed on for the Q1-2012 version your ColumnFilterDescriptor is not internal and was public..   :( 
I use to inherits this class for a special feature for filtering a "flagable enum"

Since it is cannot be inherits anymore, I try ro create my filter again

big lines:
1. standard "disctinct values"
2. an enum that have multiple state are included in filter even if the values is not "EQUALS" but contains...


My problem reside on the "yellow hilighted line."

Braking changes links : http://www.telerik.com/community/forums/wpf/gridview/known-issues-and-breaking-changes---radgridview.aspx
complete doc : Doc

My code: (not original, but cleaned for reading perpose..)

class MaxEnumFlagsDescriptor : FilterDescriptor

{

    private FilterDescriptor<MaintenanceBoxDataDataTableRow> Filter;

    private string dataMember;

    /// <summary>

    /// Initializes a new instance of the <see cref="MaxEnumFlagsDescriptor"/> class.

    /// </summary>

    /// <param name="control">The column.</param>

    /// <param name="dataMember">The data member.</param>

    /// <param name="enumType">Type of the enum.</param>

    public MaxEnumFlagsDescriptor(MaxFilteringControl control, string dataMember, Type enumType)

    {

        if (dataMember.StartsWith("["))

            dataMember = dataMember.RemoveFromStart(1).RemoveFromEnd(1);

        this.Control = control;

        this.Column = control.GridColumn as GridViewBoundColumnBase;

        this.dataMember = dataMember;

        this.EnumType = enumType;

        Filter = new FilterDescriptor<MaintenanceBoxDataDataTableRow>();

        Filter.FilteringExpression = (e) => (Check(e));

    }

     /// <summary>

    /// Creates the filter expression.

    /// </summary>

    /// <param name="instance">The instance.</param>

    /// <returns></returns>

    public override System.Linq.Expressions.Expression CreateFilterExpression(System.Linq.Expressions.Expression instance)

    {

        return Filter.CreateFilterExpression(instance);

    }

     private bool Check(DataRow row)

    {

        if (this.DistinctValue == null || !this.Control.IsActive)

            return true;

        var desc = this.DistinctValue;  // this was available in the ColumnFilterDescriptor. originaly
                                        // in the class (so how to get it..)
                                        // HOW TO GET THE CHECKED VALUES OF THE DISTINCT VALUE LIST

        if (!desc.Any())

            return true;

        Debug.Assert(row != null, "Should have found a Row");

        if (row != null)

        {

            var inf = row[this.dataMember];

            if (inf == DBNull.Value)

                inf = null;

            if (inf == null)

                return desc.Any(c => c == null);

            else

            {

                var enumType = this.EnumType;

                try

                {

                    var val = Enum.ToObject(enumType, inf).ToString();

                    return desc.Any(c => IsInclude(c, val, enumType));

                }

                catch (System.Exception ex)

                {

                    // In case of old value

                    Debug.Fail(ex.Message);

                    return false;

                }

            }

        }

        return true;

    }

    private static bool IsInclude(object value, string data, Type enumType)

    {

        var val = Enum.ToObject(enumType, value).ToString();

        return data.IndexOf(val) >= 0;

    }

}


Luc
Top achievements
Rank 1
 answered on 05 Jun 2012
1 answer
98 views
Hello Telerik Team,

i tried to use the RadRichTextBoxribbonUI with the RadRichTextBox as it is described here.

http://www.telerik.com/help/wpf/radrichtextbox-features-radrichtextboxribbonui.html#RadRichTextBoxRibbonUI_priorTo_2011.Q3
(Using RadRichTextBoxRibbonUI based on RadRibbonBar using 2011.2.xxx or older)

when i am draging the RadRichTextBoxribbonUI from the Toolbox into the designer area i get the this error.

Die Ressource "images/msoffice/16/linktopreviousheaderfooter.png" kann nicht gefunden werden.
   bei Microsoft.Windows.Design.DocumentModel.ModelProducer.<OnLoad>b__2(Damage damage)
   bei MS.Internal.Design.DocumentModel.DocumentTrees.VirtualModel.VirtualModelDocumentTreeManager.OnEditingScopeComplete(VirtualEditingScope scope)
   bei MS.Internal.Design.DocumentModel.DocumentTrees.VirtualModel.VirtualModelDocumentTreeManager.VirtualEditingScope.OnComplete()
   bei Microsoft.Windows.Design.Model.ModelEditingScope.Complete()
   bei Microsoft.Windows.Design.Interaction.Task.Complete()
   bei MS.Internal.Creation.DragDropCreationTask.OnCreateAt(Object sender, ExecutedToolEventArgs args)

for all who can not read german i will translate the error message.
German: Die Ressource "images/msoffice/16/linktopreviousheaderfooter.png" kann nicht gefunden werden.
=
English: the ressource "images/msoffice/16/linktopreviousheaderfooter.png" can not be found

I hope you can help me

best regards
Martin Ivanov
Telerik team
 answered on 05 Jun 2012
2 answers
104 views
Hi,

I am using telerik treeview control alongwith ,NET System.Windows.Interactivity to implement the drag and drop feature.

Recently i upgraded to version 2012.1.0326.40 and since then the drag and drop feature has stopped working.

Reverting to the older version of 2011.2.0920.40 with same code makes drag and drop works.

Appreciate your help on the same.
raju
Top achievements
Rank 1
 answered on 05 Jun 2012
20 answers
889 views
Hi,

I am in the process of evaluating Telerik Gridview.  Our data is organized in groups.  I created a RadGridView that uses 1 column as a GroupDescriptor.  I noticed that the scrolling through each grouped table is VERY slow as each group is expanded (AutoExpandGroups="True").  The performance is better if I remove GroupDescriptor altogether.  Here are what I set in my RadGridView:

<code>CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed"  AutoGenerateColumns="False" IsReadOnly="True" ScrollMode="Deferred"   telerik:StyleManager.Theme="Metro" FontSize="11" ShowGroupPanel="False" RowHeight="18" Grid.Row="1"  Width="1320" MaxWidth="1320" MinHeight="800" MaxHeight="1000"</code>


Is there anything I can do to increase the performance.  The table size is around 14000 cells.  

I saw this earlier post and it was stated that the issue was resolved. I can't download the code as I am not yet a licensed user.
http://www.telerik.com/support/pits.aspx#/public/winforms/4570 

Please advise.  Thanks.
Johnson
Top achievements
Rank 1
 answered on 05 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?