Telerik Forums
UI for WPF Forum
3 answers
155 views

My diagram size is fixed.

When the items is many(over 100 or more), then i layout the diagram

SugiyamaSettings settings = new SugiyamaSettings()
            {
                VerticalDistance = 10d,
                HorizontalDistance = 5d,
            };
            transDiagram.Layout(LayoutType.Sugiyama, settings);

some items is out of the diagram

How to let the items inner the diagram when items is horizontal or vertical overflow  

Vladimir Stoyanov
Telerik team
 answered on 04 Jan 2018
2 answers
682 views

Hi,

I created a behavior to scroll to the selected item in a RadGridView when the selected item is set programmatically. Basically, I used Dan's answer in this post: https://www.telerik.com/forums/scroll-to-row-when-programmatically-setting-selected-item.

This works fine when applying the behavior directly to the grid as in following example

 <telerik:RadGridView Grid.Column="2"  ItemsSource="{Binding StockSvtCollectionView}" SelectedItem="{Binding CurrentModel}" GroupRenderMode="Flat"          AutoGenerateColumns="False" IsReadOnly="True" ShowGroupFooters="True" ShowColumnFooters="True" AutoExpandGroups="True" Margin="0,-10,0,10">

            <i:Interaction.Behaviors>
                <uct:RadGridViewScrollSelectedItemIntoViewBehavior/>
            </i:Interaction.Behaviors>


Now I'm looking for an easy way to apply this behvior to all my GridViews.  I tried using a style:

    <Style x:Key="DefaultTelerikGridView" TargetType="{x:Type telerik:RadGridView}">

        <Style.Setters>
            <Setter Property="i:Interaction.Behaviors">
            <Setter.Value>
                <uct:RadGridViewScrollSelectedItemIntoViewBehavior/>
            </Setter.Value>
            </Setter>
            <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource DefaultTelerikApplicationTheme}"/>
        </Style.Setters>
    </Style>
    <Style TargetType="{x:Type telerik:RadGridView}" BasedOn="{StaticResource DefaultTelerikGridView}"/>

But this generates this error:

The property "Behaviors" is not a DependencyProperty. To be used in markup, non-attached properties must be exposed on the target type with an accessible instance property "Behaviors". For attached properties, the declaring type must provide static "GetBehaviors"  and "SetBehaviors"

Any help would be much appreciated.

Marnic
Top achievements
Rank 1
 answered on 04 Jan 2018
8 answers
834 views
Hi,

I am new to Telerik RadGridView and facing issues when using Telerik RadGridView with HierarchyChildTemplate.Here is the scenario I am trying to achieve -

1. I have a RadGridView with only 4 columns
2. In the same RadGridView I have HierarchyChildTemplate
3. Within HierarchyChildTemplate I have DataTemplate with RadTabControls and 4 RadTabItems
4. Every RadTabItem has TextBlocks,TextBoxes and ComboBoxes.
5. I have added the RadGridView table definitions and childdefinitions,so I get data populated in the radgrid rows and all controls
    in the RadTabItems gets automatically populated.

6. I have also added the Edit Save and Cancel buttons outside the HierarchyChildTemplate to have a common functionality applied to all RadTab items.

The issue is that 
    - I am not able to get the values from the controls that I have placed in RadTabItems although all the controls have values.
    - I am also not able to get the CurrentItem of the RadGridView.It always gives me first item of the RadGridView even if I am in
      other Row.

I need help on this.

Many Thanks
Anurag
Stefan
Telerik team
 answered on 04 Jan 2018
2 answers
110 views

Hi..

I have an app, that have been using the maps perfectly for several years.

Now, I get an Empty Map - No Roads nothing!

I'm using the BING provider.

Any ideas?  Help!!

Jonathan
Top achievements
Rank 1
Iron
Veteran
 answered on 03 Jan 2018
15 answers
2.0K+ views
Hi,

Is it possible to retrieve the collection of items that is bound to the radgrid after I apply filter and sorting to rad grid. through MVVM pattern?

Regards,
Howell
Vladimir Stoyanov
Telerik team
 answered on 03 Jan 2018
3 answers
252 views

Hi,

How can I use the ExportToImage extension with define the size (Width and Height) of the image. I do not wish to change the size of my framework element (RadCartesianChart ) in so that the image generated will be bigger in size.

This is the line of code to export to image:

                Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(CartesianChart, Path.GetFullPath(fileName), new PngBitmapEncoder());

Thanks in advanced.

Regards,

CS

Vladimir Stoyanov
Telerik team
 answered on 03 Jan 2018
0 answers
45 views

When call Layout  with  SugiyamaSettings ,I wish to display the shapes from right to left ,root node dock at the right side

 

SugiyamaSettings settings = new SugiyamaSettings()
            {
                VerticalDistance = 10d,
                HorizontalDistance = 5d,
                IgnoreInvisible = true,
                ComponentsGridWidth = transDiagram.ActualWidth,
                Orientation = Telerik.Windows.Diagrams.Core.Orientation.Vertical,

            };
            transDiagram.Layout(layoutType, settings);

how to do?

rui
Top achievements
Rank 1
 asked on 03 Jan 2018
1 answer
125 views
Is there a sample code available where I can convert a grid that contains several charts and print them to PDF in landscape format?  Thanks.
Stefan
Telerik team
 answered on 03 Jan 2018
2 answers
119 views

when I copy multi lines and paste into column filtering textbox, 
grid just filter the first line and omit the other lines.

for example, I wanna filter the following lines:

"Ali
Vahid"

grid just filter Ali.

there is any way to filter multi lines?
Thanks.

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Jan 2018
2 answers
450 views
Hello Guys, im new with Telerik and i missed a little with a SuspendMousePromotionUntilTouchUp.


What exactly do SuspendMousePromotionUntilTouchUp?

I really appreciate with some simple example of usage please.
Vladimir Stoyanov
Telerik team
 answered on 02 Jan 2018
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?