Telerik Forums
UI for WPF Forum
1 answer
99 views
Hi!

Currently, I'm able to obtain the selected row of a GridView following the instructions of a post in this forum. Now I need to obtain the selected cell ... or at least selected column in a edit-only GridView.
¿It is posible?

Thanks.
Pavel Pavlov
Telerik team
 answered on 20 Mar 2009
1 answer
413 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
81 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
49 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
148 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
130 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
81 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
168 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
123 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
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)
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
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?