Telerik Forums
UI for WPF Forum
1 answer
425 views
Hello,
 I am working on the Scrollviewer styling, the approach i took at first was to put the treeview in the ScrollViewer, and applying the style to the scrollviewer itself, but in that case the treeview contents could not be scrolled, even by setting the  CanContentScroll Property to true, and Vertical and horizontal scrollbar visibility  to Auto. The I tried without the ScrollViewer and using the tree's default scrolling property, I worked fine but  I dont Know how to put the style on the tree's scrollviewer ?

Please look into this and tell me the possible solutions.

Thanks and regards
Tihomir Petkov
Telerik team
 answered on 20 Mar 2009
2 answers
82 views
Hi,

Thomas (Originator of the other post) marked this
http://www.telerik.com/community/forums/wpf/gridview/2009-q1-breaking-change-on-update-events.aspx
Thread as solved.
That's OK since he can live with only cell events.

For me the problem still exists - therefore I opened this thread.
I have no EditEnded events on a row - as written in the documentation.
Nor do I get events from GridViewDataControl.RowEditEndedEvent  as mentioned by Anastasia in the other post.

So any help on how to get an event when ROW editing ends would be very important!

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 19 Mar 2009
1 answer
51 views
I installed the 2009-Q1 release and now have an error on my page initialization.

The grid is populated with:

this

 

.grdChurches.ItemsSource = this.Church.GetChurchesByAlpha("A");

 

 

 

 

The grid is fine and the ItemsSource has 125 records, but I have a business object that I'm trying to bind to the currentrecord of grid which when it runs the following line of code says CurrentRecord is null.

DataRecord record = (DataRecord)grdChurches.CurrentRecord;

This worked just fine under 2008-Q3, so when is CurrentRecord populated now?  I tried Records[0] but it also was null.

Thanks,
-Sid.

 

Stefan Dobrev
Telerik team
 answered on 19 Mar 2009
1 answer
149 views
Hi,

it's really bitter what I had to experience with RadGridView today.
I makes me thing if Rad stands for "Rough And Dirty" :)

I already posted the filter crash.
But there is more - editing.

OK - I start with the documentation.
There I find (under "Data Editing Support") some information.

The first I find is "Listen for EditEnded event"....
Sounds logical - to bad that RadGridView does not have this event.
--By the way - the Microsoft DataGrid has something called RowEditEnding (as well as some competitors Grids do have this event)
--Anyhow - since I could not such an event I was looking to the documentation.

So I read on and find how to add a new row.
I find how to edit a cell.
How to delete a row....
But nothing about editing a ROW (is editing a cell more common?)
I read about the cell editing - and guess there could be something like this for a row also.

So I go on to the online samples - and find the event telerik:GridViewRow.EditEnded must be handled.
OK, not so nice that it is not a native event of the grid (like with other grids) but OK.
I add the handler - and nothing happens.
So, the handler is there - it shows up in XAML intellisense - but nothing happens.
Next I used snoop to check for events.
And found that only the "CellEdited" event gets fired.
First thought - thats why the help shows "cell editing" instead of row editing.
But thinking about service databinding and other common scenarios I could not believe this.
And by the way -- the events are (at least) declared.

So my way brought me here - and I found that I have to bind to GridViewDataControl.RowEditEnded.
So I added this in my XAML -- and got an error message.
OK - than make it from code.
Of course this is AddHandler -- and so I get no "press tab to create...."
This made me think that Rad could not stand for Rapid Application Devel :)
Anyhow - handcoding the event I was curious if it will work now (snoop told me a different thing).

And YES - it did not work :(

Cell Editing is useless - we build distributed apps - I can't go out an call the service for every single field.
This would also make problems with auditing.
I just imagine - normally I get "user XXX changed ZZZ".
Now I would get such an entry 20 Times - per row per user per change...

Conclusion:
Documentation does not fit the current version there you can find (Data Editing Event Sequence) that GridViewRow.EditEnded is the last event in....
The need to add handlers via AddHandler has nothing to do with "normal WPF development" - this should be possible in XAML.

Regards

Manfred
Pavel Pavlov
Telerik team
 answered on 19 Mar 2009
1 answer
94 views
Hello,

could somebody guide me how to bind chart to data from web services in WPF. It seems that standard WS binding is not working.

Thanks in advance.

F.
Giuseppe
Telerik team
 answered on 19 Mar 2009
3 answers
132 views
Hi,

I was looking through your documentation searching for a way to have RadGrid Checkboxes with bool columns (a thing the MS DataGrid does out of the box).

And by this is stumbled over the topic Insert/Update/Delete...Data Editors.
What I saw there was really interesting.
There is a sample for a ComboBox column.
No XAML at all - but interesting code behind.
ComboBoxEditorSettings comboBoxEditorSettings = new ComboBoxEditorSettings();  
       comboBoxEditorSettings.ItemsSource = GetCountries();  
       ((GridViewDataColumn) this.radGridViewEditors.Columns[2]).EditorSettings = comboBoxEditorSettings
.....Columns[2].EditorSettings....
This looks extreme like ASP.NET where I have to access some unnamed HTML things and change values.
I just think about the co worker who decides to change the column order for some reason :=

And what I see here (beside the unsafe and "design == extremely code bound" thing) looks like a windows form application where I had to do it this way.

The "XAML Way" would be a column whit some kind of a template (style, datatemplate, whatever) where the databinding is defined to some source.
This Is what I do, if I build something in "native XAML" (without third party controls).

For RAD controls I would expect - something like a "RadGridComboColumn".
Yes - I found something by accident - GridViewComboboxEditor.
I'm not sure if this is what I think about because the documentation is a bit short.
>>Represents ComboBox editor for GridViewCell

I'm (after the fun with editing) not willing to find this out by trial and error (I'm tired) - but maybe tomorrow I can find an example about it.

Regards

Manfred
Vlad
Telerik team
 answered on 19 Mar 2009
2 answers
83 views
Hi Guys,

After installing your lastest WPF demo on my machine. I am unable to run up the GridView demo, something to do SQL server not found,
This produced a 'fatal error!'

P
Paul Gallen
Top achievements
Rank 1
 answered on 19 Mar 2009
6 answers
170 views
Problem with single column binding. I am using RadtreeView binding it with XML (generated from web service on the fly) Like this:
...
webServices.WebService ws = new webServices.WebService();
this.trvNames.ItemsSource = ws.getNames();
...

my result row contains with 3 columns (NameId, Name, NameValue) and in tree view I see one value merged with 3 different values, I need that tree view will show me only Name. How to set to RadTreeView control to bind only from column / element Name value from code behind?.

Thanks in advance for a help.

F.
Forumai
Top achievements
Rank 1
 answered on 19 Mar 2009
1 answer
125 views
Hi,

I'm used to work with the keyboard - especially with multiple changes.

So I do what:
a.) Scroll to the row where I want to make changes - (selecting the cell of course with double click)
b.) Edit the value
c.) Press enter
d.) Press key down (optional MS Datagrid changes the cell / row on enter)
e.) Press F2
f.) Change the value
g.) Press enter.....
....
m.) Press F2
n.) Find out that I don't need to change (F2 was a mistake)
o.) Press Enter

Alternative Method (need to change different cells).
a.) Scroll to the row where I want to make changes - (selecting the cell of course with double click)
b.) Edit the value
c.) Press enter
d.) Press down key -- maybe multiple times
e.) Press left / right key to select the correct column
f.) Press F2
....

So - this was what's going on with the MS Datagrid.

What's with RadGrid?
a.) Scroll to the row where I want to make changes - (selecting the cell of course with double click)
b.) Edit the value
c.) Press enter
--works :)
d.) Press down key -- maybe multiple times
--new row gets selected
e.) Press F2 --- nothing happens - the focus rectangle moved to the header of the first column in the first row.

The only way to get it down from there (without mouse) is pressing tab (while the focus moves from cell to cell - after the last cell to the next row......)

The other thing:
m.) Press F2
n.) Find out that I don't need to change (F2 was a mistake)
o.) Press Enter
--nothing happens as long as you don't change the value in the cell.

WPF is mend to build client applications. FAST applications - the thing should make dataentry (in case of grid) easy.
Of course it is nice when it binds to XXXX Million records extremely fast.
---(I would more say if you bind to that much records you should rethink your application design :)).
But that helps nothing when editing cells means using the mouse instead of intuitive typing.

Of course these things could be handled via "Cell.EditEnded" code behind things - but that's not the reason why I buy third party controls. I do this because I want to have RAD.

Regards

Manfred
Pavel Pavlov
Telerik team
 answered on 19 Mar 2009
4 answers
302 views
I've been using various Telerik controls for a few years now. I've used the ASP.Net/Ajax controls, the WinForms Controls, the Reporting library, and now as my latest application is based on WPF, I've been trying out some of the WPF controls. I've been fairly happy with Telerik controls in the past on other platforms with minor exceptions here and there.

Using the WPF controls though, I find myself getting frustrated and not finding much use for them. I know WPF is still young, but somethings I'm running into that I would expect better results on are listed below.

1. The documentation is poor. Compared to other control sets here at Telerik, I often find myself unable to find how to do something other than by trial and error. The documentation samples are minimal and features are given very cursory overviews. Usually I end up having to just plop a control in my xaml and start playing with intellisense options to figure out anything.

2. DataBinding in WPF is much more powerful than in WinForms. However, it appears in many cases when building up the controls, Telerik had a very WinForms centric view. I've run into numerous occations where I have tried to bind a property only to be told I can't bind it because it's not a Dependancy Property. Unless there are very good reasons, I would expect most any property on a control to be a bindable dependancy property.

3. DataGrid - I see little reason to use the DataGrid instead of the DataGrid in the WPF Toolkit. The DataGrids in the other products are very rich and provide many reasons to use them over the stock Grid. Using the Telerik DataGrid in WPF it almost feels crippled when I can't help but compare it to the other products. Filtering is probably the biggest downside on this one. I know I can add in some custom filtering as per some of the examples, but in my opinion filtering should be the same across all platforms you offer. I had an idea on how I could restyle the header and include my own filter controls similar to the other products, but again, refering to number 2 above, I ran into some things I couldn't bind to. I'd also like to see not just for the DataGrid, but especially for the DataGrid a more "plain" theme choice.

4. Chart - The chart control has some severe limitations. The biggest being the inability to use strings as values. Probably the most basic chart is either a column or pie chart. In a column chart, the most common use is to show for a series of categories, different values. In almost all instances the categories are either strings or dates. By not allowing string values, it makes it hard/impossible to show a very basic chart. There is another post on this issue where it's described how in code behind you can reset the tick labels after binding or some such thing but that is a very smelly solution. In general the chart is not very friendly for declarative structure and binding. I should be able to describe in XAML how it should work and bind it to a collection and get the chart I want. Almost all examples show everything driven in code behind and I believe the reason is the xaml is either convoluted or in many cases not even possible. One of your examples is an MVVM example and I laughed when I saw it as it wasn't MVVM at all. You had a XAML file with a few bindings and a slew of code behind interacting with the GUI. The project I am working on is entirely MVVM and I have yet to find a reason to put code in the code-behind of a XAML file. There are always the exceptions where the code is truely just for the GUI and it makes sense and I'll likely have a small bit of codebehind when the project is finished but in general everything should be declarative and code/logic kept separate in the viewmodel. In the end, for now I'm using another company's chart control as it allows better MVVM support as well as string values.

5. Other controls - I haven't gotten to using any of the other controls yet as most seemed derivative of the standard controls with not much value add. It might in some cases save a bit of customizing the standard controls, but I have a feeling after using the controls I have used, I'd run into more issues/customizing than it would save.

In closing, I am still a fan of Telerik but can only really recommend their more mature toolkits. I was hoping for a lot more changes in 2009Q1 as I felt there had been enough time since the first WPF drops to mature the product.
Hristo Deshev
Telerik team
 answered on 19 Mar 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
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
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?