Telerik Forums
UI for WPF Forum
5 answers
397 views
Hi,

I am using a Telerik tree. I want to drag a node from one parent on the tree to another. When I start dragging, I create a custom cursor with text to show what node I am dragging. When I do this, I see the cursor I want when I start dragging, but as I move my mouse, the cursor disappears and the default cursor (arrow with small square) appears. How can I disallow this cursor from overriding mine?

I know my cursor is there because if I deliberately fail to reset the cursor, I can see my custom cursor when I complete the drop.

How do I prevent the default arrow/square cursor from taking precedence over my cursor?

Thanks
Petar Mladenov
Telerik team
 answered on 22 May 2014
3 answers
222 views
PivotGrid is absolutely amazing. One issue we are running into, however, is the PivotFieldList displays all the properties of the objects in the collection. Is there a way, similar to RadGridView, to hide or prevent certain fields from appearing in the list? There is very little documentation on it. Is the only solution to create a DTO object that exposes only the properties you want?
Rosen Vladimirov
Telerik team
 answered on 22 May 2014
3 answers
562 views
I have searched and searched, but cannot figure out how to have each bar in each series be a different color from the bound palette per category.  Is this doable?  It appears so if you manually create each series, but my series are dynamic.  Attached is the markup for my chart control in its current state.

I also cannot get the smart labels to do anything.  I'm not sure if I have declare the strategy correctly or not.

<telerik:RadCartesianChart Palette="{Binding Palette}"
                                      telerik:ChartSeriesProvider.IsDynamicSeries="True"
                                      TooltipTemplate="{StaticResource BarChartTemplate}"
                                      HoverMode="FadeOtherSeries">             
               <telerik:RadCartesianChart.SmartLabelsStrategy>
                   <telerik:ChartSmartLabelsStrategy/>
               </telerik:RadCartesianChart.SmartLabelsStrategy>
               <telerik:RadCartesianChart.VerticalAxis>
                   <telerik:LinearAxis LabelFormat="N2"/>
               </telerik:RadCartesianChart.VerticalAxis>
               <telerik:RadCartesianChart.HorizontalAxis>
                   <telerik:CategoricalAxis />
               </telerik:RadCartesianChart.HorizontalAxis>
               <telerik:RadCartesianChart.SeriesProvider>
                   <telerik:ChartSeriesProvider Source="{Binding BarData}">
                       <telerik:ChartSeriesProvider.SeriesDescriptors>
                           <telerik:CategoricalSeriesDescriptor ItemsSourcePath="ChartData"
                                                                ValuePath="Value"
                                                                CategoryPath="Category">
                               <telerik:CategoricalSeriesDescriptor.Style>
                                   <Style TargetType="telerik:BarSeries">
                                       <Setter Property="CombineMode"
                                               Value='Cluster' />                                     
                                   </Style>
                               </telerik:CategoricalSeriesDescriptor.Style>
                           </telerik:CategoricalSeriesDescriptor>
                       </telerik:ChartSeriesProvider.SeriesDescriptors>
                   </telerik:ChartSeriesProvider>
               </telerik:RadCartesianChart.SeriesProvider>
           </telerik:RadCartesianChart>
Cameron
Top achievements
Rank 1
 answered on 21 May 2014
1 answer
123 views
I'm sorry to say this but, your documentation is lacking for the Diagram.  I start an example but it doesn't give me enough to actually get any success.

From your documentation, I created the following class.  Can you please tell me how I would link all of the nodes created in the loop to the baseN node?  Linking is not covered in this scenario and I can't find documentation or examples on the ObservableGraphSourceBase to understand it:
public class ItemNodes :
    ObservableGraphSourceBase<NodeViewModelBase,
        LinkViewModelBase<NodeViewModelBase>>
{
    public ItemNodes()
    {
        ItemNode baseN = new ItemNode("Base");
        this.AddNode(baseN);
 
        for (int i = 0; i < 10; i++)
        {
            ItemNode n1 = new ItemNode(String.Format("Item {0}", i));
            this.AddNode(n1);
            this.CreateLink(baseN, n1);
        }
    }
 
    public override void AddNode(
        NodeViewModelBase node)
    {
        if (!(node is ItemNode))
        {
            node = new ItemNode("New Item!");
        }
 
        base.AddNode(node);
    }

Joel Palmer
Top achievements
Rank 2
 answered on 21 May 2014
1 answer
95 views
When a user selects an item in the GridView, my application needs to select all others of the same type.  This part is working, the problem I'm having is when the user selects an item of a different type (which I detect in the SelectionChanging event) - I'm unable to clear the existing selection while in the SelectionChanging() event. 

I call GridView.SelectedItems.Clear(), but (I assume because I am in the SelectionChanging event) nothing happens.  Is this a bug, and is there a workaround to clear the GridView selection while in a SelectionChanging event?  Thanks.
Yoan
Telerik team
 answered on 21 May 2014
4 answers
230 views
Working with version 2014.1.224.45. mvvm pattern.

I have a grid inside a tileview.  The grid has its own vert/horiz scrollbars.  with respect to the horizontal scrollbar, there are more columns than what the screen can show so the horiz scroll kicks in.

Now as the user enters data and tabs through the cells, eventually they land in a cell that is off the visible part of the grid (e.g. the right hand side of the columns).  is there anyway to force the grid's scroll bar to scroll to the right so that the cell being edited (tabbed into) will be visible?

we tried a couple of things (my developer did) and no luck.  Perhaps we missed the mark on this one?

Any ideas?
Robert
Top achievements
Rank 1
 answered on 21 May 2014
1 answer
621 views
Hi,

i try to add some png to a custom shape gallery, but without andy success.

MyGallery secondGallery = new MyGallery { Header = "Shapes" };
secondGallery.Shapes.Add(new Switch
{
    SN = "000",
    Content = "Start",
    Height = 50,
    Width = 50,
    Backcolor = "#319b47",
    Forecolor = "#ffffff",
    Geometry = ShapeFactory.GetShapeGeometry(CommonShapeType.EllipseShape),
    Manufacturer = "Manufacturer 2.2"               
});

But i want to set an image instat of Gemoetry. Can you tell me how?

Thanks
Best Regrads
Rene
Martin Ivanov
Telerik team
 answered on 21 May 2014
3 answers
323 views
Hi Guys

I was wondering, is it possible to bind a Collection to a Spreadsheet? For eg if I had a collection ObservableCollection<string> MyCollection , I would be able to bind this a GridView like this -> radGridView1.ItemSource = MyCollection;

Is this type of binding possible with the Spreadsheet control?

Thanking you in advance!

Darryl Chetty
Petya
Telerik team
 answered on 21 May 2014
1 answer
153 views
Hi

I am having an issue with the RadTreeListView. When we have 30+ items in our grid, the scrolling becomes very jerky as the scroller fails to keep up with the pointer. Is there anything we can do about this? We cannot use the RadGridView because we need to display hierarchical data. 

Many thanks

Ed

Boris
Telerik team
 answered on 21 May 2014
9 answers
949 views
Hello,

I am trying to implement MVVM pattern using RadGridView.
I have a People property as the ItemsSource of the Grid.
Now, I also have a SelectedPeople property that I want to bind to the grid (Two Way).
Anyone knows how can that be supported in RagGridView?

Thanks!
Dimitrina
Telerik team
 answered on 21 May 2014
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?