Telerik Forums
UI for WPF Forum
3 answers
327 views
Hello.

I use control GridView (RadControls for WPF v2013.1.403.4 (Dev))
As source I bound ObservableCollection.
Sometimes after hard manupulating with data in my ObservableCollection I get duplicates in Grid rows.
In such case I can see that collection GridView.Items contains duplicates but in the same time ObservableCollection is ok.

DataLoadMode has default value (is it "Synchronous" ?).

I see topic with similar problem (http://www.telerik.com/community/forums/wpf/gridview/radgridview-duplicates-data-from-observablecollection.aspx).

Please could you advice me which way I can fix my problem (may be it is fixed in new version of control).
Thank you.
Yordanka
Telerik team
 answered on 04 Oct 2013
1 answer
61 views
Hi guys,

we start working on an agenda project and I'm looking for a specific component. In my project, I want to give to the user the possibility to enter a search criteria to find all free spots matching theirs search criterias in the agenda and I want to show them the search results as you can see in the screenshot I attached.

The vertical representation should be: am, pm and evening or monday..sunday depending of what they want to see.

Before renewing with Telerik, I have to be sure that Telerik have the right component for us.

Thank's guys...
Kalin
Telerik team
 answered on 04 Oct 2013
1 answer
120 views
I'm swapping themes from ExpressionDark to Windows8Touch for a project. The swap from ExpressionDark to Windows8Touch isn't seamless.

In the Telerik.Windows.Controls.ScheduleView.xaml file (Windows8Touch) I see a reference to telerik:Windows8TouchResource, is this Windows8TouchResource a file I should have local on my computer?

I would appreciate any help on this, thanks.
Kalin
Telerik team
 answered on 04 Oct 2013
5 answers
1.6K+ views
I'm trying to bind the IsReadOnly property on a GridViewDataColumn, but it appears to be binding to the DataContext of the GridView instead of the context created by the ItemsSource. My XAML:

<Window x:Class="RadGridViewTesting.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadGridView x:Name="radGridView"
                         AutoGenerateColumns="False"
                             ItemsSource="{Binding Path=EmployeeList}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=FirstName}"
                                            Header="First Name" UniqueName="FirstName"
                                            IsReadOnly="{Binding Path=ReadOnly}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

Simple code behind to create the ViewModel DataContext:

namespace RadGridViewTesting
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            DataContext = new ViewModel();
        }
    }
}


And finally the ViewModel:

namespace RadGridViewTesting
{
    public class Employee
    {
        public string FirstName { get; set; }
        public bool ReadOnly { get; set; }
    }
 
    class ViewModel
    {
        List<Employee> _myList;
 
        public ViewModel()
        {
            _myList = new List<Employee>();
            _myList.Add(new Employee() { FirstName = "John", ReadOnly = true });
            _myList.Add(new Employee() { FirstName = "Jane", ReadOnly = false });
            _myList.Add(new Employee() { FirstName = "Jack", ReadOnly = true });
        }
 
        public List<Employee> EmployeeList { get { return _myList; } }
    }
}

This results in the following output message:

System.Windows.Data Error: 40 : BindingExpression path error: 'ReadOnly' property not found on 'object' ''ViewModel' (HashCode=24397644)'. BindingExpression:Path=ReadOnly; DataItem='ViewModel' (HashCode=24397644); target element is 'GridViewDataColumn' (HashCode=15286079); target property is 'IsReadOnly' (type 'Boolean')

It should be looking for "ReadOnly" on the "Employee" object (same object it's binding the DataMemberBinding to) rather than the "ViewModel" object. The only work-around I've found is to set up DataTriggers for every column I need to be able to disable (in my case several) as mentioned in this post, but that certainly isn't elegant. Is there another known solution?

Thanks,
Louis
Dimitrina
Telerik team
 answered on 04 Oct 2013
6 answers
240 views
Hi. Use your control 2009.2.813.35. 
When i add for some column textblock (for example) in footer and make Binding on some property from DataContext sometime get error 'Cannot find source for binding with reference' in VisualStudio 'Output'? - This situation happens not always.

Did you face such a problem? how to solve it?
Dimitrina
Telerik team
 answered on 04 Oct 2013
3 answers
344 views
How can I select text and highlight with a yellow background inside a radRichTextBox which is inside a radgridview from c# code behind.   Here is my XAML, but when I try to access the radRichTextBox from c# the name is not found?
<telerik:GridViewDataColumn Width="300*" Header="Paragraph" IsGroupable="False"  IsFilterable="True" Name="Paragraph" TextWrapping="Wrap" DataMemberBinding="{Binding Paragraph}">
 
                                   <telerik:GridViewDataColumn.CellTemplate>
                                       <DataTemplate>
                                           <Grid>
                                               <telerik:RadRichTextBox x:Name="radRichPar" FontSize="10" />
                                               <telerik:TxtDataProvider RichTextBox="{Binding ElementName=radRichPar}"  Text="{Binding Path=Paragraph, Mode=TwoWay}"/>
                                           </Grid>
                                       </DataTemplate>
                                   </telerik:GridViewDataColumn.CellTemplate>

from C# I want to access radRichPar to highlight some text programmatically..........it does not appear in intellisense......thanks

 

 

 

 

Maya
Telerik team
 answered on 04 Oct 2013
4 answers
571 views
Hi, I'm using a GroupBox control inside RadTabItem, but the GroupBox's header doesn't display properly when it is placed in RadTabItem.
How can I fix this? I attached the code and a captured image.
Thanks!

<telerik:RadTabControl x:Name="radTabControl" Grid.Row="1" TabStripPlacement="Bottom" >
     <telerik:RadTabItem x:Name="Column" Header="Column">

     </telerik:RadTabItem>

     <telerik:RadTabItem x:Name="WallFoot" Header="WallFoot">
     </telerik:RadTabItem>

     <telerik:RadTabItem x:Name="Stair" Header="Stair">
          <GroupBox Header="GroupBoxtest" Margin="10"/>
     </telerik:RadTabItem>

</telerik:RadTabControl>

Dodd
Top achievements
Rank 1
 answered on 04 Oct 2013
1 answer
81 views
Hi,
        When I Type into the Radcombobox, and  When the typed item is not  present in the RadComboBoxItems I need to have default focus  to the top of the RadComboBoxItems list.
       
         Any Solution for this?

       

Kalin
Telerik team
 answered on 04 Oct 2013
0 answers
80 views
Hi,
How to set the caret position to the end of selection.

Thanks 

Sopan Vaidya
Sopan
Top achievements
Rank 1
 asked on 04 Oct 2013
0 answers
125 views
Hi,

I want to create a player which allow to play audio and video file with different format.

I am currently using 2013.2.611.40 version but not able to fine any control.

Any suggestion from you.

Thanks

Sopan Vaidya
Sopan
Top achievements
Rank 1
 asked on 04 Oct 2013
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?