Telerik Forums
UI for WPF Forum
1 answer
106 views
Hello

I have a grid with checkBox column
I want to find all the rows
where the user select the checkBox
(something like foreach..
so I can save the ID's of the selected rows in an array)

thanks
Vlad
Telerik team
 answered on 14 Dec 2009
1 answer
59 views
What are the new classes I can used alternatively? I cast a Record to a DataRecord to access its Data property currently.

SelectedRecords and its CollectionChanged event are gone...


Vlad
Telerik team
 answered on 14 Dec 2009
6 answers
223 views
I'm getting strange results with the gridview when I maximize my window and the Gridview has data.  I can't figure out why it's happening (because sometimes maximizing the window works just fine and sometimes it doesn't).  Here's the stack trace:

System.NullReferenceException was unhandled  
  Message="Object reference not set to an instance of an object." 
  Source="Telerik.Windows.Controls.GridView" 
  StackTrace:  
       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeChild(UIElement child, Int32 displayIndex, ArrangeState arrangeState) in c:\Builds\WPF_Scrum\GridView_WPF\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 1599  
       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeOverride(Size arrangeSize) in c:\Builds\WPF_Scrum\GridView_WPF\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 1536  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)  
       at System.Windows.Controls.ItemsPresenter.ArrangeOverride(Size arrangeSize)  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at System.Windows.ContextLayoutManager.UpdateLayout()  
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)  
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()  
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()  
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)  
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)  
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)  
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)  
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)  
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()  
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)  
       at System.Threading.ExecutionContext.runTryCode(Object userData)  
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)  
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)  
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
       at System.Windows.Threading.DispatcherOperation.Invoke()  
       at System.Windows.Threading.Dispatcher.ProcessQueue()  
       at System.Windows.Threading.Dispatcher.WndProcHook(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, Boolean isSingleParameter)  
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)  
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)  
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)  
       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)  
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)  
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)  
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)  
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)  
       at System.Windows.Threading.Dispatcher.Run()  
       at System.Windows.Application.RunDispatcher(Object ignore)  
       at System.Windows.Application.RunInternal(Window window)  
       at System.Windows.Application.Run(Window window)  
       at System.Windows.Application.Run()  
       at Tracker.App.Main() in C:\_projects\R2C\Tracker\Tracker\obj\Debug\App.g.cs:line 0  
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)  
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)  
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()  
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)  
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
       at System.Threading.ThreadHelper.ThreadStart()  
  InnerException:   
 
udit handa
Top achievements
Rank 1
 answered on 14 Dec 2009
1 answer
277 views
SelectedItem is null after set

i checked why it happened and appearently there was a problem inside
Telerik.Windows.Data.Dll
in the class
DataControl

on the  SelectedItem Property
inside the

ItemCoerce function

the Items.CollectionView is null so it doesn't seceed with the IndexOf
and nothing is selected

now it all happens because the Items.CollectionView is null
i also tried to set the ItemSource & DataContext Before the assigment of selectedItem
but it didn't helped

what should i do to make it work?

thanks

igal a
Top achievements
Rank 1
 answered on 12 Dec 2009
5 answers
388 views
Hi Guys

I am trying to bind my chart to a ObservableCollection of ObservableCollections is this possible?

I have worked look at ms-help://telerik.windows.controls/telerik.windows.controls.charting/data-binding-series-mappings.html but no joy. Do you have a sample of this in VB ?

Velin
Telerik team
 answered on 11 Dec 2009
0 answers
161 views
Hi,
I tried to build QuickStart dll, but it gave me error:
'Telerik.Windows.Controls.ThemeManager' does not contain a definition for 'StandardThemeNames'
I found that StandardThemeNames was defined as internal in 'Telerik.Windows.Controls.ThemeManager'
Please help, i need to build and debug to learn the QSF.

Thanks in advance.
Duy Doan

Duy
Top achievements
Rank 1
 asked on 11 Dec 2009
2 answers
169 views
Hi,

is there a possibility to select or to doubleclick a row only by clicking on the RowIndicator? 

I need an event to open a new Window in a RadGridView. 
The double click event of the RadGridView works, but if you try to change a value of a column and if you are clicking too fast, you will hit the double click event.
EAkbari
Top achievements
Rank 1
 answered on 11 Dec 2009
4 answers
225 views

Can I adjust RadDocking so that I would be able to place RadPane into one (tabbed) or a few RadPaneGroups, but within the same DocumentHost?

For example:

write:


- <RadDocking>
- <DocumentHost>
- <RadSplitContainer Orientation="Horizontal">
- <Items>
- <RadPaneGroup>
- <Items>  <RadPane/>  </Items>
  </RadPaneGroup>
- <RadPaneGroup>
- <Items>
  <RadPane/>
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedRight">
- <Items>
- <RadPaneGroup>
  <Items />
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
...........


Write:
- <RadDocking>
- <DocumentHost>
- <RadSplitContainer Orientation="Horizontal">
- <Items>
- <RadPaneGroup>
- <Items>  <RadPane/> <RadPane/>  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedRight">
- <Items>
- <RadPaneGroup>
  <Items />
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
...........


wrong:
<RadDocking>
- <DocumentHost>
- <RadSplitContainer Orientation="Horizontal">
- <Items>
- <RadPaneGroup>
- <Items>  <RadPane/>  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedRight">
- <Items>
- <RadPaneGroup>
  <Items><RadPane/></Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
..........


wrong:
<RadDocking>
- <DocumentHost>
- <RadSplitContainer Orientation="Horizontal">
- <Items>
- <RadPaneGroup>
- <Items>  <RadPane/>  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedRight">
- <Items>
- <RadPaneGroup>
  <Items/>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
..........
..........
..........
- <RadSplitContainer InitialPosition="FloatingDockable">
- <Items>
- <RadPaneGroup>
- <Items>
  <RadPane/>
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>






Nikolay Chekalkin
Top achievements
Rank 1
 answered on 11 Dec 2009
1 answer
461 views
Hello
I have a Hierarchy grid
I add a MouseDoubleClick event both to my
parent and child grids
the problem is
when I double click the child
the event raise twice, once to the child and then to the parent.
Milan
Telerik team
 answered on 10 Dec 2009
1 answer
164 views
I have in my .xaml the following code:

<telerik:RadGridView x:Name="radGridView1" IsReadOnly="True" Grid.Column="1" Grid.Row="1" Margin="0,0,0,5" Grid.RowSpan="3"> 
    <telerik:RadGridView.Columns> 
                
    <telerik:GridViewDataColumn Header="Mesa" DataMemberBinding="{Binding mesa}"> 
        <telerik:GridViewColumn.AggregateFunctions> 
            <telerik:CountFunction Caption="# Registros encontrados: " /> 
        </telerik:GridViewColumn.AggregateFunctions>      
    </telerik:GridViewDataColumn> 
    <telerik:GridViewDataColumn x:Name="efectivo" Header="efectivo" DataMemberBinding="{Binding efectivo}"> 
        <telerik:GridViewColumn.AggregateFunctions> 
            <telerik:SumFunction Caption="Total: " /> 
        </telerik:GridViewColumn.AggregateFunctions> 
    </telerik:GridViewDataColumn> 

    .
    .
    .
    .

the count function works but the sum function doesn't, it says in spanish something like "There isn't a 'Sum' method in the 'System.Linq.Enumerable' type, compatible with the specified arguments."
The ItemSource that i'm binding is an Arraylist that contains objects of an object type that i created.


ArrayList listaMesas = Oper_SoftCount.consultarFecha(dt); 
this.radGridView1.ItemsSource = listaMesas; 


and the other problem is that the columns that have the aggregate functions, duplicate.

<telerik:GridViewDataColumn Header="Mesa" DataMemberBinding="{Binding mesa}">
                    <telerik:GridViewColumn.AggregateFunctions>
                        <telerik:CountFunction Caption="# Registros encontrados: " />
                    </telerik:GridViewColumn.AggregateFunctions>     
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="efectivo" Header="efectivo" DataMemberBinding="{Binding efectivo}">
                    <telerik:GridViewColumn.AggregateFunctions>
                        <telerik:SumFunction Caption="Total: " />
                    </telerik:GridViewColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
Rossen Hristov
Telerik team
 answered on 10 Dec 2009
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
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?