Telerik Forums
UI for WPF Forum
3 answers
291 views
Hello, a few questions about this feature:

1) Is it possible to show a tooltip on annotations?
2) Is it possible to have a click event (mousedown / mouseup should be fine too) on annotations to do something in response of a click?
3) Is it possible to update the way an annotation looks based on the mouse being over the annotation? I tried with style triggers but it didn't work.

Thanks!
Petar Kirov
Telerik team
 answered on 27 Sep 2013
1 answer
111 views
Hi
I have a draggable treeview and I would like to write on dragvisual content something like "Drop inside <Node Information>".
How can I get the Node information?

I tried something like this but "options" is always null

private Telerik.Windows.Controls.Label dragVisualLabel;
private void OnDragInitialize(object sender, DragInitializeEventArgs args)
{
    this.dragVisualLabel = new Telerik.Windows.Controls.Label() { ContentTemplate = RootGrid.Resources["ItemTemplate"] as DataTemplate, Content = "" };
    args.DragVisual = this.dragVisualLabel;
}
private void OnGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs args)
{
    if (args.Effects == DragDropEffects.Move)
    {
        args.UseDefaultCursors = false;
        args.SetCursor(Cursors.Hand);
 
        var options = DragDropPayloadManager.GetDataFromObject(args.OriginalSource, TreeViewDragDropOptions.Key) as TreeViewDragDropOptions;
        if (options != null)
        {
            var dragVisual = options.DragVisual as TreeViewDragVisual;
 
            if (dragVisual != null)
            {
                var classModel = (options.DropTargetItem).DataContext as ClassObjectModel;
 
                if (classModel != null)
                {
                    this.dragVisualLabel.Content = string.Format("Drop inside {0} - {1}", classModel.Class.Code, classModel.Class.Description);
                }
            }
        }
 
 
        //  this.dragVisualLabel.Background = new SolidColorBrush(Colors.Yellow);              
 
    }
    else if (args.Effects == DragDropEffects.None)
    {
        args.UseDefaultCursors = false;
        args.SetCursor(Cursors.None);
        // this.dragVisualLabel.Background = new SolidColorBrush(Colors.Red);
    }
    else
    {
        args.UseDefaultCursors = true;
        //  this.dragVisualLabel.Background = new SolidColorBrush(Colors.Green);
    }
 
    args.Handled = true;
}


Thanks
Nick
Telerik team
 answered on 27 Sep 2013
1 answer
139 views
I'm trying to show a tooltip in the needle in order to show the selected value.

I have this code in the xaml file:

<telerik:RadRadialGauge Name="RadialGaugeDemo" HorizontalAlignment="Left" Margin="961,30,0,0" Grid.Row="1" VerticalAlignment="Top" Height="255" Width="274">
            <telerik:RadialScale Name="scale"
                                     LabelRotationMode="None"
                                     IsInteractive="True"   
                                     MajorTickOffset="-0.015*"
                                     MiddleTickOffset="-0.015*"
                                     MinorTickOffset="-0.015*" Min="0" Max="120">
                 
                <telerik:RadialScale.Indicators>
                     
                    <telerik:Needle Name="needle" Value="50"/>
                    <telerik:Pinpoint />
                </telerik:RadialScale.Indicators>
            </telerik:RadialScale>
        </telerik:RadRadialGauge>

And I wanted to add the tooltip format in the code behind file:

needle.TooltipFormat = "{0:F2}";

But when I run the program, it only shows a blank square, as you can see in the image that I have attached.
I think that I am missing something.

I saw this Page and i tried this code:

<telerik:Needle x:Name="needle"
 IsAnimated="True"
 Value="{Binding Value}" TooltipFormat="No: {0}"/>

But it doesn't work either.

Regards,

Alberto Martinez




Andrey
Telerik team
 answered on 27 Sep 2013
2 answers
101 views
Hello,

I want to make a radgridview which columns and rows depends of the selected items in two combo boxes. Right now I'm doing that by creating a data table each time the selection changes and assigning it to the radgridview itemsource... It's woks fine with few elements but if one of the selection (for example, cities) has a lot of columns the grid stops working.... Is there a better way to implement this?

I've attached you an image of what I have for better understanding
Thanks!



Yoan
Telerik team
 answered on 27 Sep 2013
1 answer
128 views
Hello,
I want Fields of RadDataForm (AutoGenerateFields = "true") to satisfy the conditions:
1. Width of field is not depended on the length of the string in this field. 
2.All labels have the equal width (= max {with = auto})
 



Yoan
Telerik team
 answered on 27 Sep 2013
1 answer
122 views
Hello everyone,

I'm posting in General Discussions because I'm not sure which control to use.

I want to display properties of two objects side by side for comparison.  Is it possible to add more columns to PropertyGrid? That would be perfect for me.

I cannot use GridView because it displays records in rows (I want them in column like in PropertyGrid). Is there a way to swap rows with columns in GridView or specify orientation? Just like in StackPanel?

I'm open to any other suggestions as well. 

Thanks,
Umar
Dimitrina
Telerik team
 answered on 27 Sep 2013
5 answers
1.4K+ views
Hello,

I've got double click on a task on the right hand side working, but cannot seem to be able to double click on a row on the grid on the left hand side?

Any pointers?

thanks
Vladi
Telerik team
 answered on 26 Sep 2013
1 answer
244 views
Hi Telerik team,

 I want to filter columns by specifying wildcards. Is there any way to specify the wildcard as bellow:
 columnFilter.FieldFilter.Filter1.Value=cell.value;

I have another query regarding the performance in gridview. I had binded the grid to a datatable with 100 columns X 10000 rows. When i apply programmatic filtering or sorting, the grid lags. I had enabled the virtualization in the grid, but it didnt had any improvement. 

Is there any other way to filter the columns in the grid other than specified in your help . i had used IColumnFilterDescriptor , but its slow. Is there any other way to filter .

Following are the system environment:
WPF version: 4.5
OS: windows 7
exact version of the Telerik product: 2013 Q2 SP1
preferred programming language :  C#

Regards
Nitin
Dimitrina
Telerik team
 answered on 26 Sep 2013
13 answers
229 views
Hello,

We work on a project with EF5 (DbContext) and MVVM WPF Light Toolkit.
So, to load data on the RadGridView, we try to use QueryableEntityCollectionView, instead of RadEntityFrameworkDataSource, it seems to be the good approach ?

But when we want to include graph object when we load entities (with relatedObjectsToInclude in the ctor) when have a problem with the inheritance of the model because we have 2 levels. The message is : 

An include path specified is not valid. The EntityType 'OPY.Entities.Sinistre' does not declare a navigation property with the name 'Agent'.

The model :

[Sinistre]
   |
[SinistrePS]
[----------]      
[ AgentId  ] ---------- [Agent]
   |
[Others class]

The code :

this.SinistreDataView = new QueryableEntityCollectionView<SinistrePS>(
  ((IObjectContextAdapter)_bdd).ObjectContext, "Sinistres", new List<string>() { "Agent" });

As you can see, we want to load "SinitrePS" with all derived but we are forced to use "Sinistres" (top level) as entitySetName because the SinistrePS class don't have it own entityset on the model. 

How can we do ?
Thx

JMazeran
Top achievements
Rank 1
 answered on 26 Sep 2013
2 answers
205 views
Hi

I am facing tab index ordering issue. See the screenshot. When tab key pressed, i want to navigate like 1,2,3.......18,19,20. I have also included a sample project code here:

<telerik:RadGridView x:Name="radGridView" Grid.Row="1" AutoGenerateColumns="False"
                             AutoExpandGroups="True"
                             ColumnWidth="100">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="First Name" TextWrapping="Wrap" TabStopMode="Skip" DataMemberBinding="{Binding FirstName}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding TabIndex}">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <TextBox Text="{Binding TabIndex}" TabIndex="{Binding TabIndex}"></TextBox>
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding TabIndex2}">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <TextBox Text="{Binding TabIndex2}" TabIndex="{Binding TabIndex2}"></TextBox>
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
Ilias
Top achievements
Rank 1
 answered on 26 Sep 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
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?