Telerik Forums
UI for WPF Forum
3 answers
113 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
413 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
220 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
122 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
166 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
599 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
113 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
124 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
1.0K+ 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
8 answers
151 views
I have created RadGridview to check the Validating Data on a Property Level. When i run the code and give invalid value, exception is thrown but it wouldn't been caught by the RadGridView. I am Using
WPF 4.0    Version 2010.2 924

Here is the Code

<Window x:Class="WpfApplication1.Window1"
        Title="Window1" Height="300" Width="565" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Loaded="Window_Loaded">
    <Grid>
        <telerik:RadGridView Name="radGridView1" AddingNewDataItem="radGridView1_AddingNewDataItem" ShowInsertRow="True">
        </telerik:RadGridView>
    </Grid>
</Window>

using System;
using System.Windows;
using System.Collections.ObjectModel;
 
namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
        }
 
        public ObservableCollection<Employee> GetEmployees()
        {
            ObservableCollection<Employee> employees = new ObservableCollection<Employee>();
            return employees;
        }
 
        private void radGridView1_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
        {
            e.NewObject = new Employee();
        }
 
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.radGridView1.ItemsSource = this.GetEmployees();
        }
 
    }
 
    public class Employee
    {
        string _FirstName;
 
        public string FirstName
        {
            get { return _FirstName; }
            set
            {
                if (value.Length > 5)
                {
                    throw new Exception("Firstname must be less than 6");
                }
                 _FirstName = value;
            }
        }
         
     }
}

check the attachment for error screen shot.
Rajesh
Top achievements
Rank 1
 answered on 05 Jun 2012
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?