Telerik Forums
UI for WPF Forum
5 answers
167 views

Hi,

We recently updated to the latest release 2020.2.617 and we now have an issue that was not present in 2018.3.911.

Our GridView is bound to a list of objects inheriting from DynamicObject. If the user sorts the list using the mouse and then presses our refresh button the sorting disappears. Our refresh button just binds a completely new list containing the exact same data as before.

In 2018.3.911 the sorting is retained after a refresh.

Any assistance would be greatly appreciated.

Regards
Anthony

Dilyan Traykov
Telerik team
 answered on 29 Jul 2020
4 answers
163 views
Hello, 

In debug mode, the RadGridView within the application gets it's information from a SQLCE Database just fine. But once I set it to release mode, The itemsource does have items inside, but the RadGridView shows nothing.

public partial class MainWindow : Window
{
 
    public MainWindow()
    {
        InitializeComponent();
        //radGridView1.ItemsSource = getData();
        radGridView1.IsFilteringAllowed = true;
    }
 
    public DataTable getData()
    {
        // Creating a datatable to bind to the radgrid
        DataTable tableItem = new DataTable();
 
 
        //Readonly Fields, not for inlinje editing
        DataColumn code = new DataColumn("Code", typeof(string));
        code.ReadOnly = true;
        DataColumn product = new DataColumn("Product", typeof(string));
        product.ReadOnly = true;
 
 
        // Adding fields
        tableItem.Columns.Add(new DataColumn("Username", typeof(string)));
        tableItem.Columns.Add(product);
        tableItem.Columns.Add(new DataColumn("Company", typeof(string)));
        tableItem.Columns.Add(new DataColumn("Model", typeof(string)));
        tableItem.Columns.Add(new DataColumn("Serial", typeof(string)));
        tableItem.Columns.Add(new DataColumn("Status", typeof(string)));
        tableItem.Columns.Add(new DataColumn("Date", typeof(string)));
        tableItem.Columns.Add(code);
 
        // Connection string for the local Database, and grab all the data from it to store into the grid
        string conString = Properties.Settings.Default.ExternalInventoryDBConnectionString;
        string queryString = "Select * from externalInventory";
 
        using (SqlCeConnection con = new SqlCeConnection(conString))
        {
            try
            {
                con.Open();
                SqlCeCommand cmd = new SqlCeCommand(queryString, con);
                // create data adapter
 
                SqlCeDataAdapter da = new SqlCeDataAdapter(cmd);
                da.Fill(tableItem);
            }
            finally
            {
                con.Close();
            }
        }
        return tableItem;
    }
}

Thank you for reading my problem,
Joe Nguyen
Dilyan Traykov
Telerik team
 answered on 29 Jul 2020
5 answers
106 views
Basically, a RadTreeViewItem goes to edit mode, then I click on any other button, label, textbox (outside the tree of course) and the edit mode is not cancelled. Is there a property to allow this or an alternative solution? Let me know.

Here's a video to illustrate my point:


Thanks!
Vladimir Stoyanov
Telerik team
 answered on 29 Jul 2020
3 answers
447 views

Good day.

I am using a WatermarkTextBox inside a Grid. The WatermarkTextBox width depends on the Grid's width. I am using HorizontalAlignment="Stretch"

What is happening is when i input long text in my WatermarkTextBox, the textbox is growing. I don't want this to happen. 

I can't set a fixed width for the WatermarkTextBox since I need it to adjust based on the Grid's width. I just want the textbox Not to grow when I input long text.

How can I achieve this?

Thank you.

gerardo
Top achievements
Rank 1
Veteran
 answered on 29 Jul 2020
1 answer
246 views

Hello, 

i'm want to change mouse over event to disable in RadPanelBar. I tried several thinks on that topic, but nothing works. I tried this:

https://docs.telerik.com/devtools/wpf/styling-and-appearance/styling-apperance-editing-control-templates?_ga=2.187479073.827374626.1595174688-1718886426.1590775437

When i found component for changing (first i tried to RadButton). I'm change mouse over value property (setter) and nothing change. First i cannot found in Telerik.Windows.Controls.xaml , but i found it in Telerik.Windows.Controls.ConversationalUI.xaml . Pls do you have it some guide how to change it properly ? 

 

Thanks for your time and i'm glad to see your answer. 

Vladimir Stoyanov
Telerik team
 answered on 28 Jul 2020
2 answers
330 views

Hi

We have a RadTabbedWindow with tabs as itemsource. Is it possible to have a status bar at the bottom? 

And whenI put in the statusbar-markup I get the error message "System.InvalidOperationException: 'Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead.'"

Just for laughs I have tried to add status bar to the user controls for the tabs as well, but it cant go there

 

<telerik:RadTabbedWindow 

       ...
        ItemsSource="{Binding WindowTabs}"                          
        SelectedItem="{Binding SelectedWindowTab, Mode=TwoWay}">

    <telerik:RadTabbedWindow.Resources>
      ...
    </telerik:RadTabbedWindow.Resources>

    <telerik:RadTabbedWindow.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding TabHeader}"  Foreground="Black"/>
        </DataTemplate>
    </telerik:RadTabbedWindow.ItemTemplate>
 
    <StatusBar Name="sbar"  VerticalAlignment="Bottom" >
        <StatusBarItem>
            <TextBlock>Im a status bar!</TextBlock>
        </StatusBarItem>
    </StatusBar>
</telerik:RadTabbedWindow>

Robert
Top achievements
Rank 1
Veteran
 answered on 28 Jul 2020
3 answers
141 views

I have a chart showing only 3012 scatter area series. Each series is just a filled narrow bar that represents a frequency range, so there are only 2 data points for each series.

When I enable labels, it takes 38+ seconds to draw the chart. When I disable labels (ScatterAreaSeries.ShowLabels = false), it is less than 2 seconds.

Any ideas what is going on? I do have an isolated sample.

(I am running on 64-bit Win 10 with 2017.3.1018.45 (NoXaml)).

Thanks.

-John.

 

 

 

Vladimir Stoyanov
Telerik team
 answered on 28 Jul 2020
1 answer
879 views

Hi,

I am seeing that the wpf TreeView do not scroll automatically to show the expanded nodes, when I expand a node in the tree view(I have to scroll manually after expanding), So I want to achieve the behaviour in the gif that I attached. This was the default behaviour for my legacy winforms tree, but the wpf telerik:RadTreeView does not have that behaviour. How can I achieve that behaviour with wpf telerik:TreeView.

Dilyan Traykov
Telerik team
 answered on 28 Jul 2020
1 answer
151 views

Hello,

I have copied the Example 1 XAML code from

https://docs.telerik.com/devtools/wpf/controls/raddiagram/features/routing

but the result is not the one shown in Figure 1 of the same link, but the one in the attached image. What is the difference? I have tried changing the DiagramConstants.RoutingGridSize constant, but it does not solve the issue.

Someone can help me?

Thank you!

Petar Mladenov
Telerik team
 answered on 28 Jul 2020
1 answer
157 views

All connections in my project should be orthogonal. I have two type of connection in my project.

  1. Routed connections.
  2. Connections with manually set connection points (“manual connections”).

I use: AStarRouter and WallOptimization = true.

 

Problem: When I move a shape with „manual connections", this connection is not orthogonal.
Question: Is there a way to keep connections orthogonal and keep connection points?

Petar Mladenov
Telerik team
 answered on 27 Jul 2020
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?