Telerik Forums
UI for WPF Forum
5 answers
150 views
Hi,

I'm using
The RadGridView v. 2011_2_0712 of the Telerik Controls
Ado.Net Entity Framework 4.1
VistaDB 4.2.18.4 or MSSQL Server 2008

I'm trying to bind a simple RadGridView to a model and then to use the built-in functions.
I have two identical test projects and two identical sampleDBs the one is in VistaDB and the other in MSSql. In the first project I use the Entities from the model generated using the VistaDB and in the second project using MSSql. 

The binding is done like this in both projects.
public partial class MainWindow : Window 
    public MainWindow() 
    
        InitializeComponent(); 
   
        Entities context = new Entities(); 
        radGridView1.ItemsSource = context.Organisationseinheiten; 
    
}

The Sql script to generate the tables is like this.
CREATE TABLE [Organisationseinheiten] (
[OEID] Int PRIMARY KEY,
[Name] NChar(128) NOT NULL,
[Beschreibung] NChar(500) NULL
);
  
INSERT INTO Organisationseinheiten (OEID, Name, Beschreibung)
VALUES (1, 'OE1', 'OE1');
INSERT INTO Organisationseinheiten (OEID, Name, Beschreibung)
VALUES (2, 'OE3', 'OE1');
INSERT INTO Organisationseinheiten (OEID, Name, Beschreibung)
VALUES (3, 'OE3', 'OE1');
INSERT INTO Organisationseinheiten (OEID, Name, Beschreibung)
VALUES (4, 'OE4', 'OE1');

Summary:
Project 1
- RadGridView
- Ado.Net 4.1
- Model from VistaDB

Project 2
- RadGridView
- Ado.Net 4.1
- Model from MSSQL

The two DBs are generated with the same script and seem to been exactly the same. The generated models are exactly the same. BUT when I try to group columns in the project 1 then an exception is thrown. In project 2 the whole grouping, sorting and filtering functions are done well.

Anyone knows about issues of the RadGridView with Ado.Net or with VistaDB?

If it's requested can I upload these two test projects.

Thanks in advance
Walter
Vlad
Telerik team
 answered on 14 Sep 2011
1 answer
102 views
Are you planning on making it possible to place into a RadDocking instance other RadDocking instances?
Yana
Telerik team
 answered on 14 Sep 2011
1 answer
88 views
Hello,

I have a need to set up grouping by both a person's name and what location they work at.

The end result of what i am attempting to do is to have it selectable what person(s) and what location(s) you want to select and then show them on the grid, the catch is that some people only work in 1 location while some work in many.

For example  if we have Person A, Person B, Person C.  Person A works at Location 1, Location 2, Location 3; Person B works at Location 2, and Person C works at Location 3.

so the grid header would look something like:

                         Person A                           Person B         Person C
   Location 1    Location 2    Location3       Location 2       Location 3

I would have 5 columns total,  i have tried adding these as ResourceGroupDescription's in a GroupDescriptionCollection to the ScheduleView.GroupDescriptionsSource, and the resources to the ResourceTypesSource, but when i run it i end up with 9 columns, it makes a location1, 2 and 3 for each Person.

So can anyone tell me the correct way to make it only have the 5 correct columns instead of all 9?  Thank you.
Yana
Telerik team
 answered on 14 Sep 2011
6 answers
152 views
Hi,

In Scheduler Control it was very easy to handle the different cases of events.
I have the following problem in SchedView Control:
When the user "doubleclicks" an appointment then ShowDialog-Event is fired. In my case I set "e.Cancel" and I have my own dialog to Edit the data of the appointment. Fine!
But when the user user deletes an appointment (per single-click on the cross-symbol in the right corner) the same event (ShowDialog) is fired (before the Appoint_Deleting event is fired !!!!!). I cant´t find a solution to handle the difference between these cases (Edit or Delete) inside the ShowDialog-event.
I´m also missing the ShowsConfirmationWindowOnDelete property from Schedule-Control in ScheduleView-Control to suppress the default dialog and show my own dialog.
Thank you in advance.

Regards,
Stefan
Yana
Telerik team
 answered on 14 Sep 2011
1 answer
111 views
After i changed the size of the items (ColumnWidth and RowHeight), i get 
sometimes an ArgumentException when I reorder items per drag-drop.
For the DataTemplate, i use a RadFluidContentControl
System.ArgumentException: '-42,-42,-42,-42' is not a valid value for property 'Padding'.
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.RadTileView.OnDragInitialized(Object sender, DragInitializeEventArgs args) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TileView\RadTileView.cs:line 948
   at Telerik.Windows.DragDrop.DragInitializeEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializeEventArgs.cs:line 94
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at Telerik.Windows.DragDrop.DragInitializer.StartDrag() in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 169
   at Telerik.Windows.DragDrop.DragInitializer.DragSourcePreviewMouseMove(Object sender, MouseEventArgs e) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 153
   at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Thanks for help
Peter
Zarko
Telerik team
 answered on 14 Sep 2011
1 answer
294 views
Hello,

I was wondering if there is a way to check if a GridViewDataColumn's filter... is active or contains filtering.  I have code that will execute depending if the column has filtering on or not.

Thanks,
Kiet
Rossen Hristov
Telerik team
 answered on 14 Sep 2011
1 answer
107 views
Hi,

I'm using WPF version of Chart component.

How can I get series value in the given X-axis location?

E.g. X-axis type is datetime and Y-axis type is double. So if I want to know series (y) values in specific time, how can I do that? 

Regards,
Auvo
Nikolay
Telerik team
 answered on 14 Sep 2011
1 answer
141 views

when i use metro theme with RadGridView, Font size is very large for filter dropdown.
How to solve it ?

Thank you.
oat
Top achievements
Rank 1
 answered on 13 Sep 2011
0 answers
49 views
TreeListView.ExpandAllHierarchyItems() call takes some time. I want to show wait cursor while the grid is expanding, but I can not find any event where I colud know that expanding is finished.
Max
Top achievements
Rank 1
 asked on 13 Sep 2011
1 answer
112 views
Hi 

I would like to know if there is any sample where I can pin tabs in a RadTabControl. 

Thanks,

Bhavik
Petar Mladenov
Telerik team
 answered on 13 Sep 2011
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?