Telerik Forums
UI for WPF Forum
4 answers
136 views
I have a gridview in a window that displays/loads fine, in design view, for a VS 2008 solution.  i have upgraded the solution to VS 2010 and now receive the error below when in design view (still runs without error, just design time error).

System.NullReferenceException

Object reference not set to an instance of an object.

at Telerik.Windows.Controls.GridView.GridViewItemsControl.DisconnectFromDataEvents() in c:\Builds\WPF_Scrum\X1_Q1_2009\Sources\Development\WPF\GridView\GridView\GridViewItemsControl.cs:line 824 at Telerik.Windows.Controls.GridView.GridViewItemsControl.GridViewItemsControl_Loaded(Object sender, RoutedEventArgs e) in c:\Builds\WPF_Scrum\X1_Q1_2009\Sources\Development\WPF\GridView\GridView\GridViewItemsControl.cs:line 548 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 System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) at MS.Internal.LoadedOrUnloadedOperation.DoWork() at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget) 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)

Milan
Telerik team
 answered on 28 May 2010
2 answers
417 views
Hi,

I need to do something like the following :
            <r:GridViewColumn Header="{Binding Path=Whatever}">
                <r:GridViewColumn.CellTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding TotalUnits}" />
                    </DataTemplate>
                </r:GridViewColumn.CellTemplate>
            </r:GridViewColumn>

It doesn't work.  There's no binding error displayed to the Output Window (normally, all binding errors are displayed there).  The header is just plain empty in my grid.  Before you tell me that the property may not exist, I must add that I also tried {Binding .} (or {Binding Path=.} if you prefer); at least, it should display the ToString value of the current DataContext, whatever it is, but again, nothing is displayed.

Thanks in advance

project30
Top achievements
Rank 1
 answered on 27 May 2010
1 answer
138 views
sorry, maybe it's a stupid question, but how can I make a window unresizable?
Konstantina
Telerik team
 answered on 27 May 2010
3 answers
116 views
Could it be, that beside me being stupid and not having a clue about wpf/silverlight, you guys duplicated the RadMap Tutorial for Silverlight and used it for RadMap WPF, and I tried to apply the silverlight tutorial to the wpf application and therefore get the error below ?

http://www.telerik.com/help/silverlight/map-create-basic-application-bing-maps.html



http://www.telerik.com/help/wpf/map-create-basic-application-bing-maps.html

?
----------------------------------------------------------------------
can i post now ?

sorry, but I got an error message when trying to reply to my previous thread. So, again ... I want to use RadControls for WPF. I have Visual Studio 2008 SP1 installed and the Telerik WPF Q1 2010. Telerik shows up fine in my Visual Studio Toolbar, the sample files are there and show up.

Now, when I try to follow the tutorial for RadMap ...

"

    1.   Open Visual Studio 2008.

    2.   Select File the main menu.

    3.   Select New, and then Project from the menu.

    4.   In the New Project dialog box, under the language of your choice (for example, Visual C#), select Silverlight.


"

I previously did not had the option "Silverlight" ... I installed Silverlight Tools and Silverlight SDK, then I got the option to choose Visual C# and Silverlight.

Next Step ...

"
Display a Map

Next, reference the map control in your project and display the default map in your application.

    1.    With the Silverlight project selected (not the Web project), select Project then Add Reference from the Visual Studio main menu.

    2.    In the Add Reference dialog box, click the Browse tab.
    3.    Browse to the location of your RadMap control installation, select the Telerik.Windows.Controls.DataVisualization.dll file and click OK.


"
When I try to add the Reference, I browse for the "Telerik.Windows.Controls.DataVisualization.dll" in the RadControls for WPF Q1 2010/Binaries/WPF/ ... Folder. When I try to add the .dll I get ...

"You can´t add a refernece to Telerik.Window.Controls.DataVisualistion.dll as it was not built against Silverlight runtime. Silverlight projects will only work with Silverlight assemblies"


So, that´s so far killing my attempt to follow the turial and use the wpf telerik RadMap component.

Help ?

Thanks d.







dirk binternagel
Top achievements
Rank 1
 answered on 27 May 2010
4 answers
213 views
Hello again,

To keep this post fairly short I will reference the great code you have provided from http://www.telerik.com/community/forums/wpf/treeview/select-entire-row-and-remove-expand-buttons.aspx

I would like the SelectionVisual Border to stay highlighted on the main tree item if a user goes deeper into the tree.  I am also trying to change the foreground color of the item if selected.

I was thinking that I needed to have a ItemContainerStyle for each HierarchicalDataTemplate "layer" in the treeview to achieve the desired result.  Is this the best way?

I am including a reference picture to better illustrate what I am talking about.  I have already done the expander.


Thanks again,
Your controls and help save us lots of time :)

Ryan

Ryan Black
Top achievements
Rank 1
 answered on 27 May 2010
3 answers
264 views
I'm trying to set the data type of one of my columns  with code behind using the following code but it is erroring

Can anyone explain what i'm doing wrong?

column.DataType = typeof(DateTime);



Vlad
Telerik team
 answered on 27 May 2010
6 answers
194 views
I have some objects displaying in the grid with some detail archive objects that the users want to see.  How do I get the columns in the detail table to line up(be directly under) the same columns in the master table?
Stefan Dobrev
Telerik team
 answered on 26 May 2010
7 answers
99 views
Why does the memory usage keep increasing if you click the header and  sortt he same column  desc and asc  multiple times?

Thanks!

May
Stefan Dobrev
Telerik team
 answered on 26 May 2010
3 answers
218 views
Hi,

I am currently binding a radgrid to an object in which one of the properties can have a large amount of free text, which causes the text to wrap and the row height to expand to accomodate it. I really want to have the text go to ellipses (e.g. 'mary had a little...') when it runs out of room, but I cannot seem to get it to work. How can I do this for one or more columns?
Stefan Dobrev
Telerik team
 answered on 26 May 2010
1 answer
106 views
Hi, is it possible to use a table adapter as the datasource or itemssource without coding? If not, what would be the easiest and quickest way to connec the chart to a dataset/adapter?

sorry my english...

Thanks!
Nikolay
Telerik team
 answered on 26 May 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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?