Telerik Forums
UI for WPF Forum
1 answer
178 views
Is there a way to determine the current filter count after the text changes?
Thanks in advance,
Steve
Konstantina
Telerik team
 answered on 22 Mar 2012
1 answer
131 views
How to store appointments dynamically to sql 2008 database using LINQ??


Hiii i search the issue i mention in heading on entire Telerik website still i m not getting solution..actully i want to create customs appointment then want to add it on RadScheduler Or RadSchedulerView then store that appointments in database..after that retrive that appointments when application again loades..every thing want to do it using LINQ..Plzz don't suggest me to reffer this link
http://www.telerik.com/support/kb/wpf/scheduler/linq-to-sql-provider-for-radscheduler.aspx 
it doesn't help me at all..plzz give some other solution or give some simple example...
Note that i want to add appointments from sutome field like combobox of Patient ID,textbox of Patient name..combobox is also bing to database so that i get patient ID from Database..then select it and add it on scheduler.


If there is no solution to my issue atleast tell me how keep track of appointments without using any database..so even if i close my app and again run then scheduler retrive my previous appointments. 

Plzz give me replay dear friends..even i don't get reply for my previous thread.
Yana
Telerik team
 answered on 22 Mar 2012
1 answer
174 views
I have bound the ItemsSource of my RadDataForm to a custom collection derived from ObservableCollection<T>.

In the collection class I have a method called "Populate". What it does, is it basically just makes an http request in a new thread and then adds items from the http request to the collection.

When calling ObservableCollection<T>.Add() from the new thread, I get a System.InvalidOperationException with the message "The calling thread cannot access this object because a different thread owns it".

The stacktrace lead me to RadDataForm (pasted below). Should RadDataForm be thread safe?

   at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
   at Telerik.Windows.Controls.RadDataForm.set_CanAddItems(Boolean value) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:line 1367
   at Telerik.Windows.Controls.RadDataForm.SetCanAddItems() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:line 1510
   at Telerik.Windows.Controls.RadDataForm.SetAllCanProperties() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:line 1525
   at Telerik.Windows.Controls.RadDataForm.OnItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataForm\RadDataForm.cs:line 768
   at Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.cs:line 636
   at Telerik.Windows.Data.DataItemCollection.OnCollectionViewCollectionChanged(NotifyCollectionChangedEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.cs:line 615
   at Telerik.Windows.Data.DataItemCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.cs:line 1050
   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\WeakEvents\WeakEvent.cs:line 33
   at Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 900
   at Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChangedWithAdjustedArgs(NotifyCollectionChangedEventArgs originalArguments, Int32 adjustedOldIndex, Int32 adjustedNewIndex) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1499
   at Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(NotifyCollectionChangedEventArgs args) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1366
   at Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1263
   at Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1739
   at Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1718
   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\WeakEvents\WeakEvent.cs:line 33
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at My.Project.ModelCollection`1.<Populate>b__3(IQueryResult result) in D:\myproject\ModelCollection.cs:line 67
  ....something clipped....
   at System.Threading.Tasks.Task.Execute()
Anatoly Chekh
Top achievements
Rank 1
 answered on 22 Mar 2012
1 answer
121 views
Two issues with the RadGridView.  And they both are based around the same issue.
Once we load the grid with our IEnumerable, all items are immediately selected with in the grid.  Even though I have the following: 
SelectedItem="{x:Null}" SelectionMode="Single"
set on the grid.

Now, we are binding the grid programmatically. But all rows and cells are immediately selected, which is not what I want.



The second issue is that when I finally clear them through filters, when I do select a row, it will only allow me to select one row.

Which is fine, but I can't deselect that row and choose another.






Am I missing something?

Thanks

Travis
Maya
Telerik team
 answered on 22 Mar 2012
1 answer
95 views
Hello,

We have a WPF RadGridView, and my Coded UI test having problems with the data items.
Its quite odd, it seems like the last data item in the grid (the last row) is blocking the rest of the rows, (Im Getting an exception of "Blocked object" while using Mouse.click on the object).
I can only click and use the last Row.
By using the Coded UI Spy, i Noticed That The Last row is indeed blocking the rest.
Im using the last telerik controls version (2012.1).

What can I do?

Thanks in advance,
Tomer.
Ivan Ivanov
Telerik team
 answered on 22 Mar 2012
6 answers
382 views
Hi
I am experiencing some problem.While exporting columns of Radgridview to excel or other supported native formats...some columns are not exporting.
for those columns set the property 
IsVisible="False"
in xaml file.
so I have 2 doubts..
1)How to export all columns which are bind to grid irrespective of visibility.
2)I have a Ilist which is datasource of gribView.is it possible to export those list to different files ?

the following was sample code...
using (Stream stream = dialog.OpenFile())
{
GridViewExportOptions exportOptions = new GridViewExportOptions();
exportOptions.Format = format;
exportOptions.ShowColumnFooters = true;
exportOptions.ShowColumnHeaders = true;
grdView.Export(stream, exportOptions);
}
Regards Naresh
Usman
Top achievements
Rank 1
 answered on 22 Mar 2012
2 answers
93 views
It is painfully clear that Microsoft is dumping WPF into the "Maintenance Only" bin (in favor of Metro).

Is Telerik going to follow suit?  I realize that some of your resources have to be devoted to the new Metro stuff.  But Metro is not a good fit for may Enterprise scenarios.

I am about to start a brand new, very large, enterprise level app with WPF.  Because of this, I would like to know how long Telerik will be giving WPF "First Class" level resources.

Is Telerik able to commit to a time line of how long they will continue to actively and aggressively develop new features and products for WPF developers? 
techvslife
Top achievements
Rank 1
 answered on 22 Mar 2012
0 answers
69 views
If you go into windows and and set your display size to 125%, the grid object does not adjust the scrollbar to account for the larger items. This prevents you from scrolling to items that are at the bottom of the list.

(turns out we're using treelistview, not grid view...)
Eric
Top achievements
Rank 1
 asked on 22 Mar 2012
5 answers
2.5K+ views
The radgridview has an event for MouseDoubleClick, but is there a way you can catch a single click?
I need to hook on to the "click event" when the selected row in the grid is clicked(once)
Antonio Jesús
Top achievements
Rank 1
 answered on 21 Mar 2012
1 answer
139 views
When using the If function we were unable to have a results of differing types.  For example
IF(Expression, FieldOfTypeDecimal, 0) will not work

The ExpressionEditor does not understand numeric constants
IF(Expression, FieldOfTypeDecimal, 0M) will not work.

Is there a way to work around this?

Dimitrina
Telerik team
 answered on 21 Mar 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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?