Telerik Forums
UI for WPF Forum
3 answers
804 views
Hi Guys,

I downloaded telerik WPF controls trial version and intended to replace the Microsoft TreeView control in our existing product with Telerik RadTreeView. Currently, I am at the stage of building a prototype to make sure that all of the existing features are still working.

We have extended RadTreeView and RadTreeViewItem to support various stuff such as ViewModel binding, custom Events and custom Drag and Drop. 

Our custom drag and drop functionality utilizes the mouse events (i.e. take the mouse position on mouse down, decide whether it triggers a drag operation, end drag on mouse up, etc). 

For the last couple of days, I've been struggling with the conflicts in handling the MouseButtonDown in our drag and drop subsystem and the MouseButtonDown handle in RadTreeViewItem. Based on the Telerik forum posts, I found that the  MouseLeftButtonDown event is handled internally and if we want to handle the events we have to call AddHandler with the third parameter  set to true. 

http://www.telerik.com/community/forums/wpf/gridview/q3-mousedown.aspx
http://www.telerik.com/community/forums/silverlight/gridview/radgridview-mouse-event-handling-and-performance-issues-in-q3-2009.aspx

I've done the above workaround and able to handle the MouseLeftButtonDown. However because e.Handled is now set to true, all of the controls up in the visual tree that use MouseLeftButtonDown event must handle the MouseLeftButtonDown event through AddHandler call as well. Unfortunately, it is not possible at the moment to change other subsystem to use the AddHandler.

At the moment, I'm thinking of setting the 'Handled' value to false in the MouseLeftButtonDown handle (from the AddHandler call) and allow the event to be bubbled up. Are there any way to detect that the MouseLeftButtonDown event is handled within the Telerik control? Because our treeviewitem contains a contentcontrol that displays edit button and delete button, if those button are pressed, we still want the Handled property to be true. If there is a guaranteed way to detect whether the MouseLeftButtonDown is handled internally in Telerik control, I could live with it and set the Handled to false when that happen.

Or, is there a way to configure the Telerik RadTreeViewItem to not set the Handled property to true? 

PS: I only have one or two weeks trial left. Does anyone know what happen if the trial expires? Can I still continue building the prototype? 

Kind regards,
Andie
Andie
Top achievements
Rank 1
 answered on 18 Apr 2013
4 answers
125 views
I'm not sure if this is a bug, or if I'm doing something wrong, but when I change a string property of my business object, the gridpropertyview string editor field doesn't reflect the new value, I have to force the control to update (ie. type in the search field) for the new value to be displayed.  The radcombobox seems to update automatically, as does the checkbox.  Is there a way to force the update with the textbox automatically?
Andrew
Top achievements
Rank 1
 answered on 17 Apr 2013
2 answers
687 views
Hello,

Is it possible to make the RTF editor in control also an html editor? So if I allow user to create a document inside RTF editor, they can have choice to choose "edit source html" instead?

I thought this control allowed this?
Petya
Telerik team
 answered on 17 Apr 2013
3 answers
82 views
I'm working with a gridview where when I update one cell, it updates other cells both in the same row and other rows. The issue I have is that the cells in other rows correctly update and show the new contents, but any cell on the 'active row' i.e. containing the cell that was edited and presuming that the caret moved to the next cell in the row does not update i.e. if I have cells A,B,C and D on one row and I edit C then when I finished editing C, cell A is updated but it's changes do not show and the control moves to editing cell D. As soon as I move off that row then the cell's correctly shown their new contents. How can I get all of the updated cells to refresh?

Thanks
Colin

Dimitrina
Telerik team
 answered on 17 Apr 2013
1 answer
98 views
Hi,

I was wondering if it was possible to stop CTRL+A from selecting every record in the grid when the grid is grouped. When the grid is grouped I would like CTRL+A to select only records from the active group.

I would be grateful if anyone know of a way this could be achieved.
Dimitrina
Telerik team
 answered on 17 Apr 2013
1 answer
113 views
I'm currently using one of the provided themes to color my timeline.
Is it possible to override the color theme such that individual items can be colored based on some condition or property?

For example, I have a timeline containing a List of objects. The objects have a Color property. I would like the object being displayed in the timeline to have a backcolor that matches it's Color property.
Tsvetie
Telerik team
 answered on 17 Apr 2013
8 answers
207 views
Hi,

i am very interested for two DateTimeGroupDescription Extensions.
I need the Steps "Hourly" and "Weekly". Also i need the possibility to customize the date text on the screen (StringFormat). 
Do i have to implement a complete new class derived from PropertyGroupDescriptionBase for these extensions, or is there a better way?

Also it would be great, if i could use DateTimeOffsets for the Dates (specially for DaylightSaving)

Best Regards,
Thomas
Thomas
Top achievements
Rank 1
 answered on 17 Apr 2013
3 answers
161 views
Hi

I have a grid that starts off with no rows. The rows are created by adding to CriteriaColumnItem (see code snippet below).  When I a row the column in the new row shows the combobox column correctly.  However, when I add another row the new row shows the combobox correctly but the previous row now shows blank in the combobox column. 

Thanks
Rich


================================================================
// Used for GridViewComboBoxColumn

   public List<GroupType> TextGroupTypes = new List<GroupType>()
        {
            new GroupType {Code=4, Name="Count", },
            new GroupType {Code=1, Name="Group By", },
            new GroupType {Code=5, Name="Expression", },
            new GroupType {Code=2, Name="Min", },
            new GroupType {Code=3, Name="Max", },
            new GroupType {Code=6, Name="Where"}
        };

=============================================================================

public partial class CriteriaColumnItem
{
        public string Column { get; set; }
        public string ColumnAlias { get; set; }
        public string TableDisplayName { get; set; }
        public string SchemaName { get; set; }
        public string TableName { get; set; }
        public bool Show { get; set; }
        public string SortType{ get; set; }
        public string SortOrder { get; set; }
        public Int32 GroupByCode { get; set; }  // Used for GridViewComboBoxColumn
}

===========================================================================

<telerik:GridViewComboBoxColumn
IsFilterable="False" Width="65" Name="GroupByCode" Header="Group By"                                   
        DataMemberBinding="{Binding GroupByCode, Mode=TwoWay}"                                           
        DisplayMemberPath="Name"
        SelectedValueMemberPath="Code"  
        IsVisible="False">
</telerik:GridViewComboBoxColumn>

==============================================================================

private void radGridViewSelectedColumns_RowLoaded(object sender, RowLoadedEventArgs e)
{
CriteriaColumnItem item = e.Row.DataContext as CriteriaColumnItem;
        if (item == null)
        return;
        if(radGridViewSelectedColumns.Columns["GroupByCode"].IsVisible)
        {
        Telerik.Windows.Controls.GridViewComboBoxColumn column = 
                             radGridViewSelectedColumns.Columns["GroupByCode"] as Telerik.Windows.Controls.GridViewComboBoxColumn;
                OpenAccessHelper oaHelper = new OpenAccessHelper();
// Determine which list is needed, Only showing one for now.
                column.ItemsSource = oaHelper.TextGroupTypes;   // Is this the problem? does each row have its own itemsSource for the column
        }
}

============================================================================
Maya
Telerik team
 answered on 17 Apr 2013
11 answers
1.0K+ views
Guys,

I've the below requirement in Calender control.

  • Highlight or circle the important days with different colors (eg. public holidays in one color and local holidays in a different color)
  • Custom comments for the day should be shown in tool tip (eg. If I've applied leave for the upcoming day  it should be shown in some color (red) and if i place the mouse over it, the reason for the leave should show in tool tip)

I've attached the sample requirement with this article..

Kindly give your hands on the above requirement.

Regards, Prem


 
Vladi
Telerik team
 answered on 17 Apr 2013
2 answers
70 views
Hi everyone,

I have an issue with selection of data from the RadGridView. The issue is that suddenly, after updating my Telerik Controls for WPF to 2013.1.220.40 it started hating my selection code.

I have the following XAML:
<telerik:RadGridView
    Name="dgOrderOverview"
    AutoGenerateColumns="False"
    SelectionChanged="dgOrderOverview_SelectionChanged"
    SelectionMode="Single"
    SelectionUnit="FullRow"
    IsReadOnly="True"
    CanUserDeleteRows="False"
    CanUserInsertRows="False"
    IsBusy="False"
    telerik:StyleManager.Theme="Windows8"
    >
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=ShipmentID}" Header="ShipmentID" UniqueName="ShipmentID" IsReadOnly="True" IsVisible="False" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=OrderNo}" Header="Order no" UniqueName="OrderNo" IsReadOnly="True" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Pieces}" Header="Pieces" UniqueName="Pieces" IsReadOnly="True" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=ReceiverName}" Header="Receiver" UniqueName="ReceiverName" IsReadOnly="True" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

Which then triggers the following c# code when selecting a row:
private void dgOrderOverview_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e)
{
        OverViewData r = (OverViewData)dgOrderOverview.SelectedItem;
        shipID = r.ShipmentID;
 
        lblSelectedReceiver.Content = r.ReceiverName;
        lblSelectedShipment.Content = shipID;
         
        if(dpStatusDate.SelectedDate == null)
            dpStatusDate.SelectedDate = DateTime.Now;
 
        tpStatusTime.Value = DateTime.Now;
        canvas1.Visibility = Visibility.Visible;
        lblCUselShipment.Content = r.ShipmentID;
}

However, when I select a row it the dgOrderOverview.SelectedItem is always null. If I look at it in the VS debugger I find that it says that SelectionEventArgs flags "remove" to the item I've selected, but the "added" is always null.

How come? This is new to me, it's been working since December before updating the RAD Controls for WPF.

//Johannes
Yoan
Telerik team
 answered on 17 Apr 2013
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?