Telerik Forums
UI for WPF Forum
2 answers
373 views

Hello,

I recently installed UI for WPF R3 2016 and today I was updated our project references to use the new version when I noticed a problem.

Several of the .dlls in the WPF45 directory, which should be for assemblies built for .Net 4.5, are actually the version for .Net 4.0.

If you look at the attached image, it's just a screenshot of Windows explorer open to C:\Program Files (x86)\Telerik\UI for WPF R3 2016\Binaries\WPF45.  I am showing the file version in the list and there are 10 .dlls that show version number 2016.3.1021.40, when it should be 2016.3.1024.45.

I think an updated installer needs to be posted for this release.

Thanks,

Peter

Peter
Top achievements
Rank 1
 answered on 06 Dec 2016
3 answers
269 views

Hi,

 

I found it is hard to drag scroll bar from side to side even column virtualization is enable.

Could you give us some advice how to fix this issue?

My Grid has more than 30 columns and about 300 rows.

 

please reply it.

Yoan
Telerik team
 answered on 06 Dec 2016
1 answer
329 views

I use the gridview's row validating event to perform some validations. 

All database methods in my persistence framework are defined async. The validation method needs database access, so it's also defined as async and returns a Task<bool>. 

The row validating event handler awaits this validation method. If the validation fails, the isValid property is set to false.

Everything works fine as long as there is no asynchronous database call and the code execution runs synchronously. As soon as I have real asynchronism, the grid view doesn't wait for the completion of the validating event handler anymore. It continues its internal validation and the RowEditEnded event raises - although the RowValidating event handler hasn't finished already. 

How can I force the grid view to wait for the asynchronous validation? I know that there are some issues with events and the async/await pattern and I tried different declaration types - without success.

Thanks for you help!

Ivan Ivanov
Telerik team
 answered on 06 Dec 2016
1 answer
200 views

Ok, so I have gridview with IsReadOnly = True. I allow the user to expand the rowdetails and edit data using a raddataform. This the bound object for this form has dataannotations which are used to validate the record. Suppose I have a required field that is left blank. The form recognizes the problem and disables the save button, but I'm still allowed to navigate to another row. How to prevent this (mvvm style ... of course!)?

Thanks ... Ed

 

Stefan Nenchev
Telerik team
 answered on 06 Dec 2016
3 answers
249 views

I have been looking through the Telerik RadMenu WPF demos and found the Customization_MVVM_WPF demo.I have a couple of questions with regard to this demo that I hope someone can help me with.

Question:
The MVVM demo has a class "MenuItemContainerTemplateSelector" that does not appear to be used by the demo. I can see that the 'MenuItemStyleSelector' class is used, but am curious when to use the MenuItemContainerTemplateSelector as opposed to the MenuItemStyleSelector? Is there a demo where this MenuItemCoontainerTemplateSelector class is used which I can take a look at the implementation?

 

What I am trying to accomplish:

I need to create a RadMenu which dynamically binds to a collection of ViewModels (RadMenuItems) and uses DataTemplates or styles to tell 'how' to display each of the ViewModels. Are there examples demonstrating this which I have not yet found? The Customization_MVVM_WPF demo somewhat covers this, but attempting to move the MenuItemsSource in this demo out of the XAML and into a collection of ViewModels which the RadMenu binds to seems to not work.

Stefan
Telerik team
 answered on 06 Dec 2016
2 answers
373 views

Hello,

I am using this example to get a row number in my gridview:
http://www.telerik.com/forums/how-to-display-the-row-number

I altered the code from the example and added a dependency property to it, which I am binding to a property of an item from the itemssource collection of the gridview.

public class RowNumberPresenter : TextBlock
{
    private GridViewDataControl _parentControl;
    public GridViewDataControl ParentControl
    {
        get { return this._parentControl; }
        private set
        {
            if (this._parentControl != null)
                this._parentControl.Items.CollectionChanged -= new NotifyCollectionChangedEventHandler(Items_CollectionChanged);
            this._parentControl = value;
            if (this._parentControl != null)
                this._parentControl.Items.CollectionChanged += new NotifyCollectionChangedEventHandler(Items_CollectionChanged);
        }
    }
  
    public RowNumberPresenter(GridViewDataControl parentControl, object dataItem)
        : base()
    {
        ParentControl = parentControl;
        SetText(dataItem);
    }
  
    private void Items_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
    {
        SetText(this.DataContext);
    }
  
    private void SetText(object dataItem)
    {
        if (this.ParentControl.IsGrouping)
        {
            var group = this.ParentControl.FindGroupByItem(dataItem);
            if (group != null)
            {
                var items = group.Items as ReadOnlyObservableCollection<object>;
                if (items != null)
                    this.Text = (items.IndexOf(dataItem) + 1).ToString();
            }
        }
        if (string.IsNullOrWhiteSpace(this.Text))
            this.Text = (this.ParentControl.Items.IndexOf(dataItem) + 1).ToString();
    }
}

 

public class RowNumberGridViewColum : GridViewColumn
{       
    private RowNumberPresenter _rowNumberPresenter;
 
 
    public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
    {
        _rowNumberPresenter = cell.Content as RowNumberPresenter;
        if (_rowNumberPresenter == null)
            _rowNumberPresenter = new RowNumberPresenter(this.DataControl, dataItem);
             
        CurrentIndex = Int32.Parse(_rowNumberPresenter.Text);
        return _rowNumberPresenter;
    }
 
    public int CurrentIndex
    {
        get { return (int)GetValue(CurrentIndexProperty); }
        set { SetValue(CurrentIndexProperty, value); }
    }
 
    public static readonly DependencyProperty CurrentIndexProperty =
        DependencyProperty.Register("CurrentIndex", typeof(int), typeof(RowNumberGridViewColum));
}

 

<cControlsTelerik:RowNumberGridViewColum 
                IsReadOnly="True"
                TabStopMode="Skip"
                TextAlignment="Center"
                CurrentIndex="{Binding Path=OrderRowData.SequenceNumber}">
    <cControlsTelerik:RowNumberGridViewColum.Header>
        <TextBlock Text="No.:"/>
    </cControlsTelerik:RowNumberGridViewColum.Header>
</cControlsTelerik:RowNumberGridViewColum>


The binding is not working and I am I am a little stuck how to bind the rownumber of the row to my dataobject (a OrderRow object).
I receive the error that OrderRowData is not a property of OrderViewModel, OrderViewModel is my VM for the whole view?

The Itemssource of the gridview is set to a Rows property on my OrderViewModel, this Rows collection contains all the OrderRowData instances visible in the grid.

Any help would be appreciated.

Regards,

Marcel

 

Marcel
Top achievements
Rank 1
 answered on 06 Dec 2016
5 answers
333 views
 Lets say, i have 70 records, and currently in view is 18 records. Now, I am pressing tab for 19th time then scroll down to display 19th record. Scroll according to tab key navigation.
Please see attachment
Yoan
Telerik team
 answered on 06 Dec 2016
2 answers
274 views
Hello folks!


How can I add DockingPanesFactory to the RadDocking dynamically?

 <telerik:RadDocking 
                            x:Name="Docking"
                            >
            <telerik:RadDocking.DockingPanesFactory>
                <local:CustomDockingPanesFactory />
            </telerik:RadDocking.DockingPanesFactory>
   </telerik:RadDocking>

 var Dock = new Telerik.Windows.Controls.RadDocking();
.....
Any advise or suggestion will be greatly appreciated.

hokushin
Top achievements
Rank 1
 answered on 06 Dec 2016
1 answer
305 views
Hi, I try use RadChartView to display finance data with Candle-style series. After setup data, I set horizontal zoom, but vertical zoom remains unchanged (see screenshot). How to make radchartview auto-Y-scale  for visible part of chart?
Martin Ivanov
Telerik team
 answered on 06 Dec 2016
1 answer
695 views

Hello,

I am looking a generic solution to import excel to radgridview.

I want to do this at my control(not viewmodel or codebehind,I custimized radgridview)

Is there a way to do that

Lance | Senior Manager Technical Support
Telerik team
 answered on 05 Dec 2016
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?