Telerik Forums
UI for WPF Forum
1 answer
395 views
I have used radgridview with celltemplate for column. I am not able to call  RowEditEnded or  CellEditEnded eventhandler on click of cell to edit the cell value. If I removed celltemplate used for binding, then it is working fine and corresponding celledittemplate is displaying and RowEditEnded or  CellEditEnded event handler is also invoking.But, if I am putting both inside GridViewDataColumn tag, it is not working. I am putting my code below for reference.



  <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=FirstName}">
                 <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox BorderThickness="0" Text= "{Binding FirstName}" Foreground="#0066cc"   Width="100" TextAlignment="Center" />
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                    <telerik:GridViewColumn.CellEditTemplate>
                        <DataTemplate>
                            <TextBox BorderThickness="0" Text= "{Binding FirstName,Mode=TwoWay}" Foreground="#0066cc"   Width="100" TextAlignment="Center" />
                        </DataTemplate>
                    </telerik:GridViewColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>

Please help me in that. I just want to call RowEditEnded or  CellEditEnded  method on click of cell for editing purpose. But that cell using celltemplate. It is very very urgent.

Nedyalko Nikolov
Telerik team
 answered on 03 Nov 2009
3 answers
321 views
In WPF, WindowsFormsHost control will always draws ontop of everything in the same WPF window.
In docking, this problem happens when the floating panes move over the Pane that contain WindowsFormsHost Control.
But, if the floating panes are the separate WPF window, this problem will be solved.

Would you consider to change the design so that the floating panes can draw ontop of the WindowsFormsHost Control?
I think many of us need this a lot when doing migration.

Thanks.

Ching-Yen
Top achievements
Rank 1
 answered on 03 Nov 2009
6 answers
404 views
Hi

I'm looking for an example of binding an observable collection to a radChart in xaml.

This is an app i'm playing around with and it supplies its data to the view using the MVVM pattern.  For the life of me i cannot find an example of how to do this.  Any example i come across has data hard coded into the xaml which i find really annoying - why not use northwind/adventureworks to show these examples?

I have a observable collection with products and quantities all i want to do is show the quantities for each product on a chart.  This will work if i just bind the itemsource of the chart to the observable collection.  but i want to show the product name along the x-axis and also in the legend.

Can anyone give me an example?

Nice controls by the way - just finding it hard to find info in how to use them in MVVM app.

It would be nice if you could have examples that pulled data from a database i.e. Nortwind/adventureworks this would surely help a lot of beginners like myself.

Thanks
Paul 




Dwight
Telerik team
 answered on 03 Nov 2009
3 answers
117 views
When I look at all of the WPF examples I see the XAML pages, but when i click to see C# pages nothing happens... Both in
IE 8.0.6001.18828
and
Firefox
3.0.8

Thanks !
Milan
Telerik team
 answered on 03 Nov 2009
9 answers
265 views
Hi,

Is there any way to bind to the CheckState of an Item in the TreeView?

Cheers

Justin Taylor
Tihomir Petkov
Telerik team
 answered on 02 Nov 2009
1 answer
348 views
is there a way to remove the scroll bars on a combox dropdown.  I just want the dropdown to be large enough for all the items.  I only have 1 or 2 too many items, and would rather have a larger dropdown then have scroll bars
Valeri Hristov
Telerik team
 answered on 02 Nov 2009
3 answers
297 views
Hi,

I would like to do some basic customizations to the Telerik GridView. I am using the Office_Silver theme  

1. Remove all gridlines from the Telerik GridView - including the column headers

2. Set the highlight color for the row

3. Customize the alternating background color
          Already done using the AlternateRowStyle property on RadGridView

Can someone please advise me how I can make these customizations

Thanks
Namir


            
Kalin Milanov
Telerik team
 answered on 02 Nov 2009
5 answers
308 views
Hi.
I have TreeView like:
A
  AA
  AA
B
  BB
  BB
C
  CC
  ...
Drag/drop is only allowed inside of its group. Ex: AA can be moved anywhere inside A group, BB can be moved anywhere inside B group. Initialy i was stopping drop using previewDragEnded. It worked only in situations when drop position was "inside". If drop position was "after" or "before" RadTreeViewDragEndedEventArgs e.TargetDropItem was always null even though if I check TreeView.TargetDropItem was set correctly (I guess it is a bug? ). I couldnt check it cause TreeView.TargetDropItem is not accesible from code.
My current approach is traverse the tree and set IsDropAllowed property on every item. The problem here are elements whose drop position is "after" or "before" which I try to drop after or before root elements (A, B, C). These root elements doesn't have parent elemnent so I don't see any way to set there IsDropAllowed . So behaviour I have now is: after I drag AA after B I got:
B
   BB
   BB
   AA
I thought about adding additional root element and add current root elements to him but in this case I would have to hide (don't display) the new root element otherwise I would have the same problem as before.

Any help or suggestions would be appreciated.

Best Regards,
Jarek (Xiasma)


Bobi
Telerik team
 answered on 30 Oct 2009
2 answers
510 views
I am trying to wire-up a click event to a checkbox column inside the RadGridview.  My problem is that when I handle the click event of the check box the grid has not registered the selected item yet, so I can't access the record to obtain the value from another column for the record which was checked.  Here is the click event code:

        private void CheckBox_Click(object sender, RoutedEventArgs e)  
        {  
            CheckBox chkbox = (CheckBox)sender;  
            ApplyPaymentEntity payment = new ApplyPaymentEntity();  
            payment = (ApplyPaymentEntity)this.grdPmtDetail.SelectedItem;  
 
            if (chkbox.IsChecked == true)  
            {  
                AppliedAmount = AppliedAmount + (decimal)payment.BillBalance;  
            }  
            else  
            {  
                AppliedAmount = AppliedAmount - (decimal)payment.BillBalance;  
            }  
  
        }  

The SelectedItem property is null.  So I need to handle the click event after the grid has processed the click.  Just not quite sure yet how to do this.

Thanks,
-SId.
Sid
Top achievements
Rank 1
 answered on 30 Oct 2009
1 answer
155 views
I have discovered a GridViewComboBoxColumn, NullReferenceException that is reproducible with the Examples_WPF application. Using the GridView Editors example, if you drop down the country combo box, then select another row and try to drop down the country list, a NullReferenceException is thrown. The exception is thrown even if you try to drop down the list in the same row that you started with. I am trying to use the GridViewComboBoxColumn in my app in a similar way that the example shows and am having the same problem. I am using the latest internal build (2009.2.1023.35). The Telerik.com online demo does the same thing.

Thanks,
Kevin
Pavel Pavlov
Telerik team
 answered on 30 Oct 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?