Telerik Forums
UI for WPF Forum
1 answer
633 views

Hello,

i implemented a feature "auto fit columns" which just set every column to with = auto:

foreach (var column in ItemGrid.Columns)
{
	column.Width = GridViewLength.Auto;
}

After this i will save the ActualWidth of all Columns. This works for all rendered columns, but not for the virtualized (they are always 20 pixels).

I tried a lot workarounds, but nothing works or causes UI glitches (Disable and Enable virtualization):

ItemGrid.EnableColumnVirtualization = false;                            

foreach (var column in ItemGrid.Columns)
{
	column.Width = GridViewLength.Auto;
	ItemGrid.ScrollIntoView(null, column);
	ItemGrid.UpdateLayout();
	column.Width = column.ActualWidth;
	column.IsSelected = true;
	column.Focus();
	column.Width = column.ActualWidth;
}

ItemGrid.UpdateLayout();

SaveLayout();

ItemGrid.EnableColumnVirtualization = true;

I think I need something like the "GridColumnSizer" from Syncfunsion (https://help.syncfusion.com/wpf/datagrid/autosize-columns#customizing-built-in-column-auto-sizing-logic) to calculate the width.

Do you have any ideas how to solve this problem?

regards, Marco

Dilyan Traykov
Telerik team
 answered on 27 Oct 2021
1 answer
1.3K+ views

I want to make GridView Editable. But when Cell is blank, i can't enter anything. (If there's data in cell, no problem)

       

I have set IsReadonly=false.

 

btw, i want to change the textbox style in cell when editing data, like the gray borderbrush in pic, where to set the style?

Stenly
Telerik team
 answered on 27 Oct 2021
2 answers
250 views
Hello,

Is it possible to generate the code completion or Overload List automatically? This means not to do it manually. The available examples show how to use and implement them manually.

Thank you for your feedback
Petar Mladenov
Telerik team
 answered on 25 Oct 2021
1 answer
134 views

Hi,

I'm trying to build a screen with a RadGridView with a Save and Cancel button outside of the RadGridView itself.
The purpose would be to save the entire Grid at once to our DB and a cancel would put everything back to the "original" state.
Including, any items that might have been deleted.

Does anybody have a good working example of this kind of setup?
I've seen the document on how to handle the external buttons. https://docs.telerik.com/devtools/wpf/controls/radgridview/how-to/cancel-edit-on-lost-focus
But this still works on a row level. I'm looking for an example that takes the entire grid.

One note, we are working in an MVVM architecture!

Kind Regards
Tim

Dilyan Traykov
Telerik team
 answered on 25 Oct 2021
1 answer
282 views
-
Martin Ivanov
Telerik team
 answered on 25 Oct 2021
1 answer
205 views

not very nice Picture if you use RadMultiColumnBox and switch to another App

 

based on my App:

If you Drop Down the MultiColumnBox the "Grid" Part are always stay on Top of EACH Other Window!!!

I think the users would be very unhappy with this picture.

 

Any solutions?

Regards Peter

 

Stenly
Telerik team
 answered on 22 Oct 2021
1 answer
158 views

Hi,

I would like to create a Scatter plot that shows both dot and line in the same series (shown in attached image). I am using ScatterPointSeries in C-sharp code but there is no strockThickness property.

Thanks,

Chao-An

Martin Ivanov
Telerik team
 answered on 22 Oct 2021
0 answers
160 views

I've rebuilt the telerik dlls with my app's name as directed here: https://docs.telerik.com/devtools/wpf/licensing/protecting-telerik-assembly

I successfully get the telerik dialog stating "This version of Telerik UI for WPF is licensed only for use by..."

However this is just an annoying pop-up, how can I shut my app down gracefully when it's detected the app names don't match?

Ed
Top achievements
Rank 1
 asked on 21 Oct 2021
1 answer
306 views

This issue concern the RadDiagram control.

I would like to know how I can delete connections that are not related to their element. When I delete an element, their connections are not deleted.

Example:

I have an element called A and an element called B.

I connect A to B with a connection.

When I delete B, the connection is not deleted.



Is there a raddiagram parameter that allows me to delete connections when I delete an element?



The solution I currently use is the overriding command.

Martin Ivanov
Telerik team
 answered on 21 Oct 2021
1 answer
221 views
Hello,
We have certain columns in our grid that have the option of being displayed as the same as the raw data or using a converter it can be displayed with the values multiplied by 100, when using aggregates on the column however they still return the same result as when they were the raw values, is there a way to do this nicely? Using a converter on the binding for the aggregate result in the RadGridView control template has the desired effect but affects all columns which we don't want.
Dilyan Traykov
Telerik team
 answered on 21 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?