Telerik Forums
UI for WPF Forum
1 answer
210 views

What is the current Telerik copyright text that is required to be included in a WPF app that makes use of Telerik controls?

I found this old ticket:
What would constitute a valid copyright message? in UI for WPF | Telerik Forums
https://www.telerik.com/forums/redistribution-of-ui-for-wpf#4874526

and this article does not make clear what is required.

Redistributing Telerik Assemblies | Telerik UI for WPF

Dilyan Traykov
Telerik team
 answered on 31 Oct 2022
0 answers
125 views

In our application, we are facing an issue while exporting the grid(RadGridView) into the workbook using ExportToWorkBook. for your reference, 

It throws the below exception,

Can please help us to resolve this issue?

Barani
Top achievements
Rank 1
Iron
Iron
 asked on 31 Oct 2022
1 answer
244 views

Is it possible to reduce the Telerik RadComboBox in RadGridView (GridViewComboBoxColumn) Height?

We have an issue in our project, we cannot reduce the RadGridView RowHeight. 

For your reference, in the below screenshot, Column3 is Telerik RadComboBox in RadGridView (GridViewComboBoxColumn).

After adding the Column3 (Telerik RadComboBox in RadGridView (GridViewComboBoxColumn)), RowHeight becomes larger.

> Can you please suggest how to reduce RadComboBox height in RadGridView (GridViewComboBoxColumn)?

Thanks in advance.

 

Barani
Top achievements
Rank 1
Iron
Iron
 updated question on 31 Oct 2022
0 answers
106 views
We are using the latest Telerik.Windows.Document.dll (2022) and following is the logic I.e, used

string content ="<ol><li>1.hello</li><li>2.Hi</li></ol>;

Raddocument doc = HtmlFormatProvider.Import(content);
TxtFormatProvider txt = new TxtFormatProvider() ;
string output = txt.export(doc);

Output we are getting as:

.hello

.Hi

 

Basically the formating is totally gone. 

Note: We are using Telerik for WPF here .

Any issues reported like this in the latest Telerik dll, as we couldn't find much in the documentation? 
Prabhanath Nair
Top achievements
Rank 1
 updated question on 29 Oct 2022
0 answers
227 views

Hello,

I'm creating my columns dynamically, and when I click on a column header to sort it, it hides the rows instead of sorting them.

When I click again rows are still hidden (the sorting is descending), then when I click again, the sorting is None and the columns reappear.

Here is what I've tried already.

DataType

I've read on this forum that it happens when the DataType of the columns is not set, but I have my custom class of columns inheriting from GridViewDataColumn and I set the DataType to be the type of the value contained in the cell, so I think I'm fine on this side.

IComparable

I made all of my types implement IComparable, but it didn't help.

SortMemberPath

I tried setting SortMemberPath on my columns, doesn't help either. My rows are inheriting from DynamicObject, and I can see that the method TryGetMember(GetMemberBinder binder, out object result) (which I override) is indeed called when the grid starts sorting. So it seems to work well with DynamicObject, I'm not sure that having a DynamicObject could be an issue, but still, it might be worth mentioning.

OnSorting

I tried subscribing to OnSorting on the RadGridView and do my own logic in here, but when reassigning the rows by doing args.DataControl.ItemsSource = myRows.ToList(), it resolves my Linq query and throws an ArgumentException: "At least one object must implement IComparable", which I don't understand because I made sure all of my types implement IComparable.

So I tried blindly implementing IComparable on the classes representing my rows and cells as well, as a shot in the dark, but their implementation didn't get called so I don't know which objects the query really operates on.

IsCustomSortingEnabled

Also, I made sure that I'm setting IsCustomSortingEnabled on all of my columns when I create them.

ColumnSortDescriptor

I started creating my own ColumnSortDescriptor and overriding CreateSortKeyExpression, but I feel like using a simple linq query in OnSorting should be enough for my case, so I'm not sure it will help.

The End(?)

As you can see, I tried many things in very different ways and I'm running out of ideas now.

What can I do to sort my dynamic columns? Thanks!

P.S: I will try to make a simple demo project out of this, but I hope you'll be able to provide me with a simple answer in the meantime. Fingers crossed :)

Eldoir
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 28 Oct 2022
1 answer
333 views

I have a RadGridView bound to an Obersvable Collection of an object with ID and Name. After closing the window, I save the selected IDs in an list. When the user reopens the form to select more items, I want to show all the items but disable the rows based on the IDs that were previously selected (those on the IDs list).

How can I achieve that?

 

I think that the best solution is a behavior and not a style, but I don't know how to do it.

Martin Ivanov
Telerik team
 answered on 28 Oct 2022
1 answer
166 views

Hello,

I have a xaml with RadGridView which contains 4 columns. One of the columns has DataMemberBinding to a Double number/property and a cell template with a NumericUpDown control which is binded to the same Double property.

When I click the RadNumericUpDown arrow to change the value and the control remains Focusded and click immediatly the CellHeader for sorting, sometimes the value of some rows are changed to be the value of other rows. This is happens when I click the header many times with RowVirtualization=False.

If I click the arrow of the RadnumericUpDown and then I click another control to remove the focus and then I can click the header many times and the issue can't be reproduced. The update source trigger is PropertyChanged.

Sometimes during sorting the value is changed and then restored to the correct one.

Please I would like to know if you can fix it or give me some workaround. This is a very simple requirement (sorting). 

Martin Ivanov
Telerik team
 answered on 28 Oct 2022
1 answer
121 views

Hello,

I asked this question for the radrichtextbox:

https://www.telerik.com/forums/radrichtextbox-get-selected-revisions#5508333

And the answer was very helpful! Unfortunately I am finding that I need to do this operation in a bit more of a granular fashion. For example, if the tracked change is an insert (for example 'This is brand new text'), is there a way that I can highlight a subset of the inserted text (for example 'brand') and mark it as deleted?

Or, if this is impossible, is there a way to find all text that has been marked as 'strikethrough' and remove it?

Vladislav
Telerik team
 answered on 28 Oct 2022
1 answer
182 views
Is there any best practice using WPF Syntex Editor for Lua scriptting Syntax?
Stenly
Telerik team
 answered on 27 Oct 2022
0 answers
253 views

Binding and using this control feels quite terrible at its current state. 

My case: I want to display "HH:mm" .. as Maskk = "##:##" 

Value binding happily accepts string "10:00"

but while editing the value the propertychanged event can return "1000" which isn't compatible with the converter i've made. 

Text binding ONLY works in Mode=OneWayToSource in combination with Value binding Mode=OneWay 

Text="{Binding ToTime, Mode=OneWayToSource}"
Value="{Binding ToTime, Mode=OneWay}"

HOWEVER - when binding like this, the control doesnt clear the text when bound value changes to NULL 

eg: ToTime was "10:00" changes to NULL

The control keeps displaying "10:00"

Changing UpdateSourceTrigger from PropertyChanged to LostFocus makes the control completely faulty.. it simply stops displaying. 

ARGH

Why on earth is there two binding fields - where both are so faulty ? 

I wish there was only ONE : the Text field. 

This field should emit the masked value, whenever the UpdateSourceTrigger dictates. 

This Text field should accept "1000" as well as "10:00" but ALWAYS return "10:00" in the propertychanged event.

I'm considdering using a completely different control from another vendor instead of this mess :( 

Martin
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 27 Oct 2022
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?