Telerik Forums
UI for WPF Forum
7 answers
288 views
Is it possible to change the logical operator button to two radio buttons?
Stefan
Telerik team
 answered on 08 Jan 2018
0 answers
227 views

Hello,

I'm trying to use busy indicator. What I've done is declaring it as static field for in my App class. I can call and change it from wherever I want, the thing is, I do not know how to call it correctly. My intuition told me to do something like this:

 

  private void ListaKlientow(object sender, MouseButtonEventArgs e) // My TreeView item clicked
        {
            App.BusyIndicator.IsBusy = true; //Set indicator to true
 
// Creating new RadTabItem and populating it with Data
                _nazwakarty = "Klienci - Lista";
                KlienciLista strona = new KlienciLista();
                AddItem(strona, _nazwakarty);
            
        }

 

And in new page constructor I'm calling App.BusyIndicator.IsBusy = false.

The problem is, that Indicator is awaiting Page to load and showing exaclty on the same time as page does. I want it to render and show before my page loads. Technicly and intuitively it should work as intended, but I guess there is some render-related issue here, so window doesn't want to show indicator before all stuff is rendered. The thing is, I want to keep indicator as simple as possible, without so much code and preferably without XAML styling and overriding anything. How can I do it in the way I want? Is it possible?

 

Thanks in advance

Mateusz
Top achievements
Rank 1
 asked on 05 Jan 2018
0 answers
471 views

Hello,

 

I'm developing application with ADO DB, using telerik. Currently my problem is to reload data of RadGridView after I commit changes to DB from another window.

My app structure is Window (main window) with Pages inside. In some places I'm calling window.ShowDialog() (<- dialog window), and those windows contains some editable data, which I commit to db. And after I commit those data I want to refresh my page, inside my main window. However, pages aren't static, so I can't simply call any refresh of their containters from my dialog window. Is there any way to set something like listening to page, which is triggered after dialog window is closed? Or is there any other way to refresh data on window closing?

Mateusz
Top achievements
Rank 1
 asked on 05 Jan 2018
2 answers
267 views

Hello,

I am trying to create a Diagram, using RadDiagram, and I want to apply some custom styles using StyleSelectors.

My main issue is that when I apply a ShapeStyle to a RadDiagram (even static) then the shapes disappear!The same happens with the connections.

Even the simplest examples from Customize the RadDiagramShape Style do not work! I use Telerik 2017.3.1018.45.NoXaml version and I have added the following dictionaries:

<ResourceDictionary Source="/Telerik.Windows.Themes.Summer;component/Themes/System.Windows.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Summer;component/Themes/Telerik.Windows.Controls.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Summer;component/Themes/Telerik.Windows.Controls.Diagrams.xaml" />

 

My MainWindow.Xaml

<Window x:Class="TestingDiagram.MainWindow"
        xmlns:local="clr-namespace:TestingDiagram"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.Resources>
            <Style TargetType="telerik:RadDiagramShape" x:Key="CustomShapeStyle">
                <Setter Property="Background" Value="LightGreen" />
                <Setter Property="FontWeight" Value="Bold" />
            </Style>
        </Grid.Resources>
        <telerik:RadDiagram x:Name="xDiagram" ShapeStyle="{StaticResource CustomShapeStyle}">
            <telerik:RadDiagramShape x:Name="shape1" Position="20,20" Content="Shape 1" />
            <telerik:RadDiagramShape x:Name="shape2" Position="220,20" Content="Shape 2" />
            <telerik:RadDiagramConnection Source="{Binding ElementName=shape1}"
                Target="{Binding ElementName=shape2}" />
        </telerik:RadDiagram>
    </Grid>
</Window>

Thanks in advance
Dimitris

KALLINA
Top achievements
Rank 1
 answered on 05 Jan 2018
1 answer
105 views

when drag an outer gridSplitter  the gridview  display incomplete

the step is

1.  drag the gridview's scrollbar to bottom

 2. drag up the red gridSplitter 

3. then the gridview display incomplete

my code is as follows

<Window x:Class="RadComboBoxStyling.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:example="clr-namespace:RadComboBoxStyling"
        Title="MainWindow"
         WindowState="Maximized">
    <Window.Resources>
        <example:AgencyViewModel x:Key="DataSource" />
    </Window.Resources>    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="3*" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <GridSplitter Height="2"
                      HorizontalAlignment="Stretch"
                      VerticalAlignment="Bottom"
                      Background="Red"
                      ShowsPreview="True" />
        <telerik:RadTabControl Grid.Row="1">
            <telerik:RadTabItem>
                <telerik:RadGridView  ItemsSource="{Binding Source={StaticResource DataSource}, Path=TestData}" />
            </telerik:RadTabItem>
        </telerik:RadTabControl>
    </Grid>
</Window>

class AgencyViewModel
    {
        public AgencyViewModel()
        {
            TestData = new DataTable();
            testData.Columns.Add(new DataColumn { ColumnName = "aa" });
            testData.Columns.Add(new DataColumn { ColumnName = "bb" });
            for (int i = 0; i < 10; i++)
            {
                testData.Rows.Add(new string[] { "testaa" + i, "testbb" + i });
            }
        }

        private DataTable testData;

        public DataTable TestData
        {
            get { return testData; }
            set { testData = value; }
        }
    }

rui
Top achievements
Rank 1
 answered on 05 Jan 2018
3 answers
196 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
735 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
980 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
140 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.2K+ 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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?