Telerik Forums
UI for WPF Forum
3 answers
235 views
HI,
i download the trial of WPF controls, but with this release of the framework don't work.
Can i use this control with the SP1 of the .Net Framework?

Thank's
Hristo Deshev
Telerik team
 answered on 01 Sep 2008
1 answer
138 views
I have tried RadTabControl for data entry Form, where I am facing problem with controls like TextBox and ComboBox once added it for RadTabItem then in running state those controls are always showing in readonly(Non editable) mode by default. Please provide solution for this.
Miroslav
Telerik team
 answered on 01 Sep 2008
1 answer
89 views
Hi,
I just started playing with the RadDatePikcer and overall it looks very good. I have only few comments at this point:

1. The control needs to provide the input mask for the user. Currently control allows any input and will not prompt user if it's not valid (it is simply discarded)
2. The zoom animation shouldn't play when drop down is expanding. It also plays when calendar is used as standalone control and I belive it should play only when user makes action.
3. Provide control descriptions that would show in toolbox in blend.
4. Support IsReadOnly property so the user can select and copy value but can't change it.
5. Add support for time input. The time picker would be nice but control should at least alow to enter time manually.
6. The drop down button in the default skin should be changed to look the same like in Vista: this means the down arrow with a calendar icon. The button shouldn't be a TabStop either.
7. Dropdown changes width when swiching from month view to any other view.
8. Add today button in the drop-down (optional).

This is all I found so far.

Thanks for the great work and I'm looking forward for the next release.

-Szymon
Miroslav
Telerik team
 answered on 25 Aug 2008
1 answer
96 views
Hi,

 I installed the trial version of WPF. Started C# Samples and clicked on RadGridView --> First Look and clicked on one of the menu items in the left.


I got the following error

Failed object initialization (ISupportInitialize.EndInit). I have the screenshot but unable to post it in the forum.

Pradeep
Milan
Telerik team
 answered on 22 Aug 2008
1 answer
122 views
I'd like to hear, if and when , are you going to add the popup autogenerated edit form to your wpf grid.
One of the best feature of the ajax asp net grid,  is a must have for the wpf grid.

Thanks
Regards
Milan
Telerik team
 answered on 14 Aug 2008
4 answers
214 views
Hello,

I'm facing some problems with CurrentRecord. I'm binding the object with CurrentRecord. I can't get the currentrecord from the code where I keep the object.

XAML

<UserControl x:Class="DevExpTest.PersonsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:model="clr-namespace:DevExpTest" 
    model:ObjectReference.Declaration="{model:ObjectReference window}"
    Height="419" Width="537" xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input">
    <UserControl.Resources>
        <ObjectDataProvider ObjectType="{x:Type model:PersonsViewModel}" x:Key="viewModel">
            <ObjectDataProvider.ConstructorParameters>               
                <model:ObjectReference Key="window"/>
            </ObjectDataProvider.ConstructorParameters>
        </ObjectDataProvider>
    </UserControl.Resources>
    <Grid>
        <my1:RadGridView Margin="0,10,28,43" Name="radGridView1"
                         xmlns:my1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
                         ItemsSource="{Binding Source={StaticResource viewModel}, Path= GetData}"
                         CurrentRecord="{Binding Source={StaticResource viewModel}, Path= ActiveRecord}"
                         />
    </Grid>
</UserControl>

ViewModel

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.ComponentModel;

namespace DevExpTest {
    public class PersonsViewModel : INotifyPropertyChanged {
        private IView _iView;
        private ListCollectionView _persons;
        private Person _activeRecord;

        public PersonsViewModel() {
            loadData();
        }
        private void loadData(){
            List<Person> p = new List<Person>();
            p.Add(new Person(){ ID = 1, Name= "Michael Sync" });
            p.Add(new Person(){ ID = 1, Name= "Julia" });

            _persons = new ListCollectionView(p);

        }
        public PersonsViewModel(IView iv)
            : this() {
            _iView = iv;
        }
        public Person ActiveRecord {
            get {
                return _activeRecord;
            }
            set {
                _activeRecord = value;
                SendPropertyChanged("ActiveRecord");
            }
        }
        public ListCollectionView GetData {
            get {
                //_persons.Filter = obj => {
                //    return false;
                //};

                return _persons;
            }
        }

        #region Event Handlers

        /// <summary>
        /// This method raises the property changed event.
        /// </summary>
        /// <param name="propertyName">The property name which value has been changed</param>
        protected void SendPropertyChanged(string propertyName) {
            if (_propertyChanged != null) {
                _propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler _propertyChanged;

        public event PropertyChangedEventHandler PropertyChanged {
            add {
                _propertyChanged += value;
            }
            remove {
                _propertyChanged -= value;
            }
        }

        #endregion
    }
    public class Person : INotifyPropertyChanged {
        private int Id;
        private string name;

public string Name
{
  get { return name; }
  set { name = value;
      SendPropertyChanged("Name");
  }
}
        public int ID
        {
          get { return Id; }
          set { Id = value;
          SendPropertyChanged("ID");}
        }

        #region Event Handlers

        /// <summary>
        /// This method raises the property changed event.
        /// </summary>
        /// <param name="propertyName">The property name which value has been changed</param>
        protected void SendPropertyChanged(string propertyName) {
            if (_propertyChanged != null) {
                _propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler _propertyChanged;

        public event PropertyChangedEventHandler PropertyChanged {
            add {
                _propertyChanged += value;
            }
            remove {
                _propertyChanged -= value;
            }
        }

        #endregion
    }
}


Error: Put the breakpoint in setter of ActiveRecord in ViewModel. That property will never get called.

You can download the test project in the comment of this post..

http://michaelsync.net/2008/08/09/any-recommendation-for-wpf-datagrid

Note: I think that there is a wrapper for data object in your datagrid. so, I think it might be the reason why it's not working. maybe, I think I need to call DataWrapper.ActiveRecord or something...

PS: Thanks a lot for visiting my blog,  Hristo!
Atanas
Telerik team
 answered on 13 Aug 2008
4 answers
280 views
I have three-levels grouping in GridView.

I would like to specify the different style for different level for GroupRow. Is it possible to do that?

For example
-AAA (GroupRow)
-----BBB (GroupRow)
----------CCCC(Normal Row)

I want to set as below.

- Set blue color to AAA GroupRow.
- Set Yellow Color to BBB and put Textbox called TextboxLevel2 in style
- Set Pink color to CCC and put Checkbox in normal rows.

Is it possible to do that with Telerik Datagrid? Can get the value of TextboxLevel2 at runtime?


Nedyalko Nikolov
Telerik team
 answered on 13 Aug 2008
4 answers
133 views
I'm reading Styling in Expression Blend from RadGridView Doc. I found that Edit Other Templates is disabled in Blend, why?

Thanks in advance.
Chris
Telerik team
 answered on 12 Aug 2008
3 answers
280 views
Hello,

There is a feature that I never see in other chart products, for example I got 4 array of results and wants to see dynamic evolution between them.

In RadChart there is animation when it is rendered, but I mean something like a slide with my arrays and animation.
Maybe it is already there and I missed this feature.

Thanks !
Ves
Telerik team
 answered on 11 Aug 2008
9 answers
630 views
We are currently using a single grid to display data for multiple "tabs" (in reality a restyled listbox where we bind a new data source to the grid when the selected item changes).

Different tabs can have different columns displayed, so we regenerate the collection of GridViewDataColumn objects whenever tab is switched.  We always set IsCustomSortingEnabled to true on these objects.  We then hook the SortingRequested event and refetch our data whenever a column header is clicked and the collection of sorting criteria changes.  This works fine when a column header is clicked, but breaks when we switch to a tab that was previously sorted.

When we switch to a previously sorted tab, we regenerate the GridViewDataColumn collection (setting IsCustomSortingEnabled to true as ever), clear SortDescriptions on the grid and repopulate it with the correct SortDescription objects.

The problem is that setting these SortDescription's appears to trigger the RadGridView's native sorting mechanism, at which point it complains that our domain objects don't implement IComparable.  I've attached the stack trace at the end of this post.

So it looks as if somewhere in the grid code IsCustomSortingEnabled is not being checked.

All help gratefully received

Regards

Chris

-----------------

at System.Collections.Comparer.Compare(Object a, Object b)
at System.Collections.Generic.ObjectComparer`1.Compare(T x, T y)
at Telerik.Windows.Data.Grouping.NullValuesComparer`1.Compare(Object x, Object y)
at Telerik.Windows.Data.Grouping.SortDescriptionComparer`1.CompareWithIndexes(Int32 xIndex, TElement xElement, Int32 yIndex, TElement yElement)
at Telerik.Windows.Data.Grouping.SortDescriptionsComparer`1.CompareWithIndexes(Int32 xIndex, TElement xElement, Int32 yIndex, TElement yElement)
at Telerik.Windows.Data.Grouping.DataSourceIndexComparer`1.Compare(Int32 x, Int32 y)
at System.Linq.EnumerableSorter`2.CompareKeys(Int32 index1, Int32 index2)
at System.Linq.EnumerableSorter`1.QuickSort(Int32[] map, Int32 left, Int32 right)
at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Telerik.Windows.Data.Grouping.DataRecordList`1.get_UnfilteredIndexes()
at Telerik.Windows.Data.Grouping.DataRecordList`1.get_DataSourceIndexes()
at Telerik.Windows.Data.Grouping.DataRecordList`1.get_Count()
at Telerik.Windows.Data.VirtualizingRecordCollection.get_Count()
at Telerik.Windows.Data.VirtualizingRecordCollection.System.Collections.ICollection.get_Count()
at MS.Internal.Data.IndexedEnumerable.GetNativeIsEmpty(Boolean& isEmpty)
at MS.Internal.Data.IndexedEnumerable.get_IsEmpty()
at System.Windows.Data.CollectionView.get_IsEmpty()
at System.Windows.Data.CollectionView.RefreshOverride()
at System.Windows.Data.CollectionView.RefreshInternal()
at System.Windows.Data.CollectionView.RefreshOrDefer()
at System.Windows.Data.CollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
at System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.VirtualizingRecordCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.VirtualizingRecordCollection.OnCollectionReset()
at Telerik.Windows.Data.VirtualizingRecordCollection.Reset()
at Telerik.Windows.Data.VirtualizingRecordCollection.set_RealRecords(IList`1 value)
at Telerik.Windows.Data.RecordManager.RecalculateGroups()
at Telerik.Windows.Data.RecordManager.SortDescriptions_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)
at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item)
at System.Collections.ObjectModel.Collection`1.Add(T item)
at Epro.ClientControls.Entity.DataGrid.EntityGridSortHandler.SetSortedColumnHeaders(ICollection`1 sortDescriptions, IEnumerable`1 propertiesToDisplay) in C:\Epro4Trunk\Epro.ClientControls\Entity\DataGrid\EntityGridSortHandler.cs:line 63
Atanas
Telerik team
 answered on 07 Aug 2008
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?