Telerik Forums
UI for WPF Forum
5 answers
105 views
I am using a GridView to display real-time data (syslog messages) and it works fine as long as I keep adding records. However when I try to remove old records, the GridView just freezes (stops responding). Is there a special way to delete records? Right now I have bounds the ItemsSource to an ObservableCollection and when the number of records in it reaches 10,000 I want to delete the first 100 records (i.e index 0 through 99). GridView seems to have no problem dealing with the 10,000 records but as soon as I delete even one record, it stops responding. I have already tried my own variation of your AddRangeObservableCollection (modified it to stop CollectionChanged notification, delete 100 records and then re-start the CollectioChanged notifications) but the GridView still stops responding after deletion. Please help.

-Ambar
Ambar Kulkarni
Top achievements
Rank 1
 answered on 30 Nov 2010
9 answers
190 views
Hello, A couple questions

IF a user clicks on a tile to maximize it. Would it be possible to call a event before to maximized.

The code would be something like:

private Tile_Click()
 If Tile(1) is Clicked
{
messagebox.show
If ok
{
then Tile(1) is Maximized
else
messagebox cancel
message "you don't want to max this tile
}


I know the code not even close
But and snippet would be great

Thoughts>?

Rick
Alex Fidanov
Telerik team
 answered on 29 Nov 2010
6 answers
130 views
The control is bound to a DateTime? and I've specified InputMode="DatePicker" and still it puts the current time into the date selected from the calendar.  How can I get just the date portion only?
Wellpartner
Top achievements
Rank 1
 answered on 29 Nov 2010
2 answers
74 views
Hello,
I am working on a multi-touch project in WPF . and I am trying ti use a telrik splitter.
Every things works when we are using mouse ,but it's difficult to catch the splitter using the fingers.
That's why  I am looking to change the size of the splitter to be cached by fingers.
Thanks for help
Khaldoun
Top achievements
Rank 1
 answered on 29 Nov 2010
1 answer
37 views
telerik grid view has a property called gridviewtogglecolumheader.......I want to change the  "+"  image used for toggling the columns in  gridview into a user defined image . Can any one help me out in solving this problem ?  Me and Gopal are trying this problem since one month.
Vanya Pavlova
Telerik team
 answered on 29 Nov 2010
9 answers
523 views
Can we use RadWindow as main window for the application.


Jaroslav Půbal
Top achievements
Rank 1
 answered on 29 Nov 2010
1 answer
242 views
Hi,

I am using the rad tree view without data binding, and am hooking into the checked changed event of the tree to alter my object model with the new selection in the background code. The checked changed event fires for every sub-node of a node in the tree to update its status, is there an event that fires after all of the checked events have completed on the tree?

Thanks for any help in advance.
Petar Mladenov
Telerik team
 answered on 29 Nov 2010
2 answers
123 views

<telerik:RadGridView x:Name="RadGridView1" ItemsSource="{Binding}" Grid.Row="1" GroupPanelForeground="Red" >
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition>
                    <telerik:GridViewTableDefinition.Relation>
                        <telerik:PropertyRelation ParentPropertyName="Students"/>
                    </telerik:GridViewTableDefinition.Relation>
                </telerik:GridViewTableDefinition>
            </telerik:RadGridView.ChildTableDefinitions>
        </telerik:RadGridView>

In my Linq to SQL Class I have Students Table and Subjects.

Students field has Student ID, StudentFN, StudentLN while Subjects has SubjectID, Subject, Professor, StudentID.

I have associated the two student id.

My .xaml.cs is 
public partial class MainWindow : Window
    {
        ObservableCollection<MyObject> _MyObject = new ObservableCollection<MyObject>();
        DataContextDataContext context1 = new DataContextDataContext();
        public MainWindow()
        {
            InitializeComponent();
            DataContext = new ObservableCollection<MyObject>();
            RadGridView1.Filtered+=new EventHandler<GridViewFilteredEventArgs>(RadGridView1_Filtered);
            foreach (var p in context1.Students)
            {
                _MyObject.Add(new MyObject { ID = p.StudentID, Name = p.StudentFN });
            }
        }
 
        void RadGridView1_Filtered(object sender, GridViewFilteredEventArgs e)
        {
            RadGridView1.ItemsSource = _MyObject;
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
 
        }
    }
 
    public class MyObject
    {
        public int ID { get; set; }
        public string Name { get; set; }
    }

I tried running the gridview but it doesn't show the level 2 data grid for the each record nor the column headers of the subject table.
Leo
Top achievements
Rank 2
 answered on 29 Nov 2010
1 answer
102 views
Hi,
The RadRichTextBox is not supported in WPF. Isn't it? Will it be done?
Thanks a lot.
Veselin Vasilev
Telerik team
 answered on 29 Nov 2010
6 answers
228 views
Hi.

I have an application with a listview. Each listview item is templated showing additional information . Basically each listview items contains one image and several values like timestamps, string, ints.

The listview can be filtered using radDataFilter, and I want to be able to select an item in the listview, copy the item (I use my own clipboard format), go into the filter and then paste one of the copied values from my custom formattet content in the clipboard. I want to prompt the user with a dialog to choose with exact information to actually paste from the clipboard. And the content of clipboard should remain after the radDataFilter pasing.

My first approch to this has been to do it like this (simplified code):

private void filter_EditorCreated(object sender, Telerik.Windows.Controls.Data.DataFilter.EditorCreatedEventArgs e)
{
    DataObject.AddPastingHandler(e.Editor, new DataObjectPastingEventHandler(CheckPasteFormat));
}

public void CheckPasteFormat(object sender, DataObjectPastingEventArgs e)
{
 PasteWindow win = new PasteWindow();
 win.ShowDialog(); // Modal dialog
 string result = win.Value.ToString();
  
 DataObject d = new DataObject();
 d.SetData(DataFormats.Text, result);
 e.DataObject = d;
}

The problem with this solution is that showing a new window or as test just call MessageBox.Show gives an error:

Cannot perform this operation while dispatcher processing is suspended.

I have found a solution to this using Dispather.BeginInvoke but this has another problem with the folowing part updating the DataObject due to it is asynchroniously. There might be solutions to this also, but it gives me a feeling of a lot of hacks to make it work

So my next approach (and maybee more correct solution) would be to define a new "Paste special" command/functionality to handle my special pasting inside editor. Actually kind of the same way as Word, Excell etc does it, Im not very familiar with commands and stuff like that. Can you tell me if it is possible to add/append a "paste special" command with keyboard shortcut to the radDataFilter editors. It should also be available using the right-click menu in the radDataFilter editors.

Hopefully the "Speciel paste" will support undo etc, and clipboard content should not be changed using the "Speciel paste".

Hopefully you will be able to help me with this one.

Yavor Georgiev
Telerik team
 answered on 29 Nov 2010
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
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?