Telerik Forums
UI for WPF Forum
1 answer
247 views

I put a RadComboBox in GridViewDataColumn, but the selections in combobox don't display When i edit the cell.

But if i use RadComboBox separatly, it works.

Here is my code:

<telerik:GridViewDataColumn Header="AlertLocation" DataMemberBinding="{Binding AlertLocationName}">
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <telerik:RadComboBox ItemsSource="{Binding AlertLocations}" DisplayMemberPath="Name" SelectedValuePath="Name" SelectedValue="{Binding AlertLocationName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

Martin Ivanov
Telerik team
 answered on 04 Nov 2021
3 answers
123 views
In my pivot grid, I would like to display my configured formats item by item.


for example suppose I have already defined the format $ for item1, £ for item2 and m² for item3, I want to display this

Feat1
     Item1 $12 $13 $15 $19

     Item2 £22 £23 £25 £29

     Item3 32m² 33m² 35m² 39m²

instead of displaying them all in one global format as (currently possible)

     Item1 $12 $13 $15 $19

     Item2 22 $ 23 $ 25 $ 29

     Item3 32 $ 33 $ 35 $ 39

how could this be handled?

Thank you very much
Dilyan Traykov
Telerik team
 answered on 04 Nov 2021
16 answers
978 views
Guys,

I'm having issue with my RichTextBox and some funky UI stuff, Its cutting off my Characters (see Link at the bottom of this post) And also the Cursor in this instance appears to be BEFORE the H, but is actually at the end of the H...

<telerik:RadRichTextBox FontFamily="Arial" FontSize="9" DocumentInheritsDefaultStyleSettings="True" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" />

http://www.flickr.com/photos/57960866@N06/5707505816/in/photostream
Any help would be appreciated.
Dimitar
Telerik team
 answered on 04 Nov 2021
1 answer
342 views

Hi,

When developing my WPF application using the RadNotifyIcon, I often catch myself stopping Visual Studio rather than selecting the close application menu option. This results in the tray icon not being removed. When you then restart a debugging session the old icon prevents a new icon from being created as I have a fixed appId. However, as soon as you hover over it, the icon disappears.

Everything is happening per design and in release mode where you have to close the application, everything works fine. This is just some development time frustration.

Is there a way to check on startup if the icon exists (previous remnant) and if so first clear it before creating the new icon? Alternatively, is there a "fool-proof" way to detect ungraceful application close (e.g. stop debugging in VS) to first clear the icon? 

Dilyan Traykov
Telerik team
 answered on 03 Nov 2021
1 answer
142 views

Hi!

I need a wider SearchPanel Textbox. Changing the Width of SearchPanel didn't change the width of the TexBox within.

I tried to access it this way in Code behind but the result is always null:

https://www.telerik.com/forums/select-searchasyoutype-on-startup

 

Could anyone help me to achieve this?

Thank you!

Stenly
Telerik team
 answered on 02 Nov 2021
0 answers
112 views

Hello,

we have an application running in Silverlight an WPF (we ported it from Silverlight to WPF some time ago, and it can run in both frameworks).

In Silverlight we had no memory problems, everything ist cleared an disposed by us (looping the visual/logical tree,..).

In WPf we have some weird meomry leaks and I´m not able to track them down further.

Some of them root just to Telerik controls and I see not why...

I attached some JustTrace screenshots...

 

 

 

 

 

 

Dominic
Top achievements
Rank 1
 asked on 02 Nov 2021
1 answer
367 views

How to change ComboBoxStyle in GridViewComboBoxColumn of RadGridView when i Edit the cell.

<telerik:GridViewComboBoxColumn Header="Location" DataMemberBinding="{Binding AlertLocationId}"
UniqueName="AlertLocation" SelectedValueMemberPath="Id" DisplayMemberPath="Name"
Style="{DynamicResource GridViewColumnStyle}"/>

Martin Ivanov
Telerik team
 answered on 02 Nov 2021
1 answer
223 views

I was following the SDK example for Highlighting a Custom Column and got it all implemented.  For mine it is highlighting the correct text but it isn't keeping those rows that should stay in the search results.  My project differs from the example project since I have the Grid bound to a DataTable of various columns and types whereas the example is bound to a list of objects.

My code for the Custom Column is here.  The column is bound to a custom type listed below this code.

publicclassAttributeListColumn: GridViewBoundColumnBase { public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem) { StackPanel mainContainer = new StackPanel { Orientation = Orientation.Horizontal }; if (cell.DataContext != null) { string glyphResourceKey = ((cell.DataContext as System.Data.DataRow)[DataMemberBinding.Path.Path] as ListValueContainer)?.GlyphResourceKey; System.Windows.Shapes.Path path = new System.Windows.Shapes.Path { Margin = new Thickness(0, 0, 5, 0), Fill = System.Windows.Media.Brushes.Black, Width = 13, Height = 13, Data = glyphResourceKey == null ? null : Application.Current?.TryFindResource(glyphResourceKey) as System.Windows.Media.Geometry, Visibility = glyphResourceKey == null ? Visibility.Collapsed : Visibility.Visible }; mainContainer.Children.Add(path); } //Add HighlightTextBlock to keep the SearchPanel functionality HighlightTextBlock htb = new HighlightTextBlock(DataControl.SearchStateManager); htb.SetBinding(HighlightTextBlock.HighlightTextProperty, new Binding($"[{DataMemberBinding.Path.Path}].Id")); cell.SetBinding(GridViewCell.IsHighlightedProperty, new Binding("ContainsMatch") { Source = htb, Mode = BindingMode.TwoWay }); SetHighlightTextBlockTextProperty(dataItem, htb); mainContainer.Children.Add(htb); return mainContainer; } public void SetHighlightTextBlockTextProperty(object dataItem, TextBlock textBlock) { if (this.DataMemberBinding != null) { var content = this.GetCellContent(dataItem); if (content != null) { textBlock.SetValue(TextBlock.TextProperty, (content as ListValueContainer).Id); } } else { textBlock.ClearValue(TextBlock.TextProperty); } } }


[TypeConverter(typeof(ListValueConverter))]
    public class ListValueContainer : IComparable, IEquatable<ListValueContainer>, INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        protected string glyphResourceKey;
        protected List<string> values = new List<string>();

        public ListValueContainer()
        {
        }

        public ListValueContainer(string value, string glyphResourceKey = null)
        {
            values.Add(value);
            this.glyphResourceKey = glyphResourceKey;
        }

        public ListValueContainer(List<AttributeListLookup> lookupValues, string glyphResourceKey = null)
        {
            if (lookupValues != null)
            {
                lookupValues.ForEach(a => values.Add(a.Id));
            }
            this.glyphResourceKey = glyphResourceKey;
        }

        public string GlyphResourceKey
        {
            get
            {
                return glyphResourceKey;
            }
        }

        public List<string> Values
        {
            get
            {
                return values;
            }
        }

        public string Id
        {
            get
            {
                return string.Join(", ", values);
            }
        }

        public virtual void OnPropertyChanged(PropertyChangedEventArgs args)
        {
            PropertyChangedEventHandler handler = this.PropertyChanged;
            if (handler != null)
            {
                handler(this, args);
            }
        }
}

Like I said the correct text highlights as you type in the GridView search bar, but those cells aren't actually getting filtered.

 

The HighlightTextBlock.HighlightTextProperty is being bound correctly but I'm guessing the GridViewCell.IsHighlightedProperty is what says if the row should stay in the GridView as you are typing?

Martin Ivanov
Telerik team
 answered on 01 Nov 2021
1 answer
107 views

Is it possible to add charts to a document created via RadPdfProcessing, if so is there a sample anywhere?

 

THx

Dimitar
Telerik team
 answered on 01 Nov 2021
1 answer
138 views

Hello,

Is it possible to drag RadNavigationViewItems around in the RadNavigationView If so, how would this be implemented?

 

Thanks

 

Tony

Dinko | Tech Support Engineer
Telerik team
 answered on 29 Oct 2021
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?