Telerik Forums
UI for WPF Forum
3 answers
707 views

Hi,

Is there an easy way (= without having to use a complex ControlTemplate like in Kalin Milanovs answer (https://www.telerik.com/forums/how-to-change-the-selected-row-style)) to change the backgound color of the selected row ?

I've tried using a Trigger:

    <Style x:Key="DefaultTelerikGridViewRowStyle" TargetType="telerik:GridViewRow">
        <Setter Property="Height" Value="20"/>
        <Style.Triggers>
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Height" Value="24"/>
                <Setter Property="BorderBrush" Value="Green" />
                <Setter Property="BorderThickness" Value="3" />
                <Setter Property="FontWeight"  Value="Bold" />
                <Setter Property="FontSize" Value="14"/>
                <Setter Property="Background" Value="Red"/>
                <Setter Property="Foreground" Value="Green"/>
            </Trigger>
        </Style.Triggers>
    </Style>

This works fine for every property in the Trigger, except for the Background color.  How come ?

Kind Regards

 

Vladimir Stoyanov
Telerik team
 answered on 10 Jan 2018
1 answer
128 views

Hi

I need to dynamically create and delete RadDateTimePicker object. However, I can not fully delete the RadDateTimePicker. This can cause a memory leak. Let me give the sample example to illustrate my problem.

for(int b=0;b<10000;b++){

  for(int a=0;a<100;a++){
    RadDateTimePicker radDateTimePicker = new RadDateTimePicker();
    radDateTimePicker.InputMode = InputMode.DatePicker;
    radDateTimePicker = null;
  }
  long memory = GC.GetTotalMemory(true);
  System.Diagnostics.Trace.WriteLine(xxx.ToString() + " - " + (memory / 1000).ToString() + "K");
}

I found that If I set the InputMode the memory will keep increasing (Memory leak).  Otherwise, the memory will not keep increasing. Could you please help to solve this problem. 

 

Thank you very much

Imer
Telerik team
 answered on 10 Jan 2018
3 answers
1.4K+ views

Hello,

I am currently evaluating the Telerik WPF controls for use in our application. So far it's looking good but I have a question about how to build the project on a build server.

I understand that each developer needs their own licence, and each developer needs to install the controls on their development machine.

Currently I have installed the controls on my machine and my project references the .dlls from the Telerik install directory in Program Files. What do I need to do to build my project on our build server? Right now the build would fail because the build server does not contain the Telerik .dlls.

- Do I need to install the controls on the build server (rather than just copying the .dlls)?
- Do I need an additional licence for the build server?

Thanks,

Chris

Chris
Top achievements
Rank 1
 answered on 10 Jan 2018
1 answer
1.0K+ views

WPF, Caliburn.micro, mvvm.

My ViewModel have a BindableCollection<String> that is loaded with from 1 to 1000 string values.

In my view, I have a listbox that is bound to the collection. The list box shows all the data, but in one colunm with a scroll bar.  What I want is the data in three columns and scroll bars if the data can't fit.

 

Can anyone point me in the right direction?

Dilyan Traykov
Telerik team
 answered on 10 Jan 2018
4 answers
316 views

Hello!

I have a question about sorting string columns in the RadGridView component.

Lets say I have the following rows;

  • V1
  • V2
  • W1
  • W2 

When using the built-in sorting these are sorted as; V1, W1, V2, W2.

But here in Sweden the characters 'V' and 'W' are treated as separate characters.

So I would like these to be sorted as; V1, V2, W1, W2.

 

Is there some kind of setting I can use to resolve this or do I need to implement some kind of custom sorting?

 

Kind regards,

Fredrik

 

Fredrik
Top achievements
Rank 1
 answered on 08 Jan 2018
7 answers
241 views
Is it possible to change the logical operator button to two radio buttons?
Stefan
Telerik team
 answered on 08 Jan 2018
0 answers
203 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
417 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
236 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
79 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
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?