Telerik Forums
UI for WPF Forum
3 answers
59 views
Hi Telerik,

I've recently upgraded to Q1 2010. In my code I have had a radchart bound to an observablecollection. The first display of the chart works fine, however when I use either collection.Clear() or ItemsSource = null I receive the following error:

InvalidCastException  
Unable to cast object of type 'System.Windows.Style' to type 'System.Collections.Generic.IList'1[System.Windows.Style] 

This occurs when using a BarSeriesDefinition, however when I use a LineSeriesDefinition it works fine. Also, this used to work previously in both SeriesDefinitions.

Any Ideas?

Rav
jackd doh
Top achievements
Rank 1
 answered on 30 Mar 2010
4 answers
3.0K+ views

WPF and C#: Problem: 1. How to Refresh Radgridview when i Insert,update and Delete Record in database anrecord. 2.when i am Insert or Update Record than in radgridview that row is selected.

i am useing sql server 2005.

i am use to set data source of radgridview like " radgridview1.ItemsSource = ds; " ==> ds is dataset.

i am beginner so if possible than tel me by code it is easy to understand.......

can u help me as early as possible ....

i give some code which i am useing for update RadGridview

con.ConnectionString = @"Data Source=(local);Initial Catalog=DigiDms;Integrated Security=True"
 
        cmd1.Connection = con; 
        con.Open(); 
        cmd1.CommandType = CommandType.StoredProcedure; 
        cmd1.CommandText = "Pro_Insurance_Master_Select"
        da1.SelectCommand = cmd1; 
        da1.Fill(ds1); 
        con.Close(); 
 
        //dataGrid.clear(); 
        //dsGrid.Reset(); 
        //dsGrid = dataGrid.GetData("Pro_Insurance_Master_Select"); //set datasource of gridview 
 
        gridShowData.ItemsSource = null; // At hear i get Error
        gridShowData.ItemsSource = ds1; 

doing this ,

when i am delete or update record than folloning error generated... Error: >> "Object reference not set to an object"
when i am doing the "gridShowData.ItemsSource = null;"

and when i am doing insert operation than this error is not generated and RadGridview also updated.....

so pls help me as early as possible.... i am beginer ........
Rikin Patel
Top achievements
Rank 1
 answered on 30 Mar 2010
10 answers
167 views
I am wondering if this is possible.  I am binding a self-referencing table to a treeview.  One of the columns is SortOrder.  The users have the ability of moving the items in the treeview up and down within a parent node, or moved to another node and up and down in that one.  When the user has made all the moves they want and click save, what has to be saved then is what order the nodes are in under each node.  So for example it should be saved like:

NFL
- Name: AFC East SortOrder:1
-- Name: Patriots SortOrder:1
-- Name: Jets SortOrder:2
- Name: AFC South SortOrder: 2
-- Name: Colts SortOrder: 1
-- Name: Titans SortOrder: 2

I was thinking of looping through each node and checking maybe the child index and saving that.  Not sure if that would work.  Ideally, I would love to be able to Bind the SortOrder to like the child index so it would automatically change if it was moved.
Tihomir Petkov
Telerik team
 answered on 30 Mar 2010
5 answers
99 views

( I re-post correctly here my message that I've already posted in the scheduler-section - it was a mistake)

Hi everybody,
I upgraded today my project from Q3-2009 to Q1-2010 and I've found an error opening Windows and UserControl into the VS2008 editor: (i'm on a Windows7 64 bit)

Cannot create instance of 'GenericTheme' defined in assembly 'Microsoft.Windows.Design.Interaction, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Exception has been thrown by the target of an invocation. 

In expression Blend it's OK ...

Is it a problem of the new version?
Is there a way to solve it?

thanks in advance
Michele

Milan
Telerik team
 answered on 30 Mar 2010
1 answer
98 views
Is it possible to set focus to the beginning of the ComboBox displaying text? What I want is the result shown at pict2.jpg(attached) instead of the pict1.jpg(also attached). The problem with pict1.jpg is that when I select an item, the focus goes to the end of my string instead of going to start. Does the control support this?
Hristo
Telerik team
 answered on 30 Mar 2010
1 answer
128 views
Can you tell me if this is possible with your chart control.  I need to build a geological chart.  I have a couple of images, but stratcolumn is more what I am trying to accomplish.  Essentially, it is like three or more charts, side by side, all based on the same scale.  So you have a Y scale which represents millions of years, then a type of stack chart where you have a series of polygons of different height, width, and colors; then two point charts.  But they all act as one unit for zooming, scaling, panning, etc.  Each chart would have its own seperate datasource.

In looking at your charts, I see things simliar to the stacked Polygon chart I need, but not exactly.  But there can also be gaps as well,  Plus, not with Height, Width being variable.  The line charts are easy as you have them.  It is just a matter of how would I display these three together as almost one chart for zooming purposes, exporting, etc.

Any suggestions or maybe it just can't do it? 
Dwight
Telerik team
 answered on 30 Mar 2010
7 answers
289 views
When I install the Q1 2010 WPF suite, the first time I start Visual Studio, I get an error. The second time there is no error but the theme's are not installed and it is not possible to use the designerarea. It constantly shows an error that it cant find the theme.
Stefan Kamphuis
Top achievements
Rank 2
 answered on 29 Mar 2010
2 answers
110 views
Adding a new row at a Grid has a little bug it seems like, if you use the insert row.

How to reproduce it:
- Set ShowInsertRow="True" at the RadGridView
- Start setting some values at the row (don't add the data by pressing enter or reaching the end of line!)
- Click somewhere else eg. another row.
- Try to finish adding the data
- The row won't disappear and let you add another row
 
The important step is that you leave the insert row before the data gets added by pressing somewhere else.
Adrian Weidermann
Top achievements
Rank 1
 answered on 29 Mar 2010
1 answer
159 views
I have tried the following products with Visual Studio 2010 for memory and performance profiling with WPF.

JetBrains dotTrace 3.1
red-gate Ants Memory Profiler 5

Both have crashed and have not allowed me to actually get snapshots of the memory to determine if me and my dev team are releasing all events and references.

Does anyone have any experience with products that work well for memory profiling?

Thanks,
Ron

Boyan
Telerik team
 answered on 29 Mar 2010
2 answers
110 views
I described the issue in this blog post.
   http://markjerde.blogspot.com/2010/03/radwindow-multimonitor-issue.html

Live Writer makes it so easy to put screenshots & text together.  ;-)

Mark
Mark Jerde
Top achievements
Rank 1
 answered on 29 Mar 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?