Telerik Forums
UI for WPF Forum
0 answers
317 views

Hi,

I am binding my observablecollection to CollectionViewSource which has SortDescriptions. On initial load everything loads fine and sorting can be done. 

I have a reset button on which i am trying to refresh the changes in the grid with re fetching observablecollection and binding to ItemSource. Once i do the rebind the sorting doesnot work. 

Below is my collectionviewsource,

<CollectionViewSource
                x:Key="BuildLineSource"
                IsLiveSortingRequested="True"
                Source="{Binding BuildLineCollection,
                                 UpdateSourceTrigger=PropertyChanged}">
                <CollectionViewSource.GroupDescriptions>
                    <PropertyGroupDescription PropertyName="BuildLineCategory.Category" />
                </CollectionViewSource.GroupDescriptions>
                <CollectionViewSource.LiveSortingProperties>
                    <system:String>ExecutePriority</system:String>
                </CollectionViewSource.LiveSortingProperties>
                <CollectionViewSource.SortDescriptions>
                    <componentModel:SortDescription PropertyName="ExecutePriority" />
                </CollectionViewSource.SortDescriptions>
            </CollectionViewSource>

 

Below is the code i am calling on Constructor and also on Reset click,

private void GetBuildLines()
        {
            BuildLineCollection?.Clear();
            BuildLineCollection = _buildLineData.GetBuildLines();           
            ((INotifyPropertyChanged)BuildLineCollection).PropertyChanged +=
                (x, y) => BuildLineUpdated();
        }
Vinay
Top achievements
Rank 1
 asked on 19 Jan 2018
2 answers
595 views

Hi,

Is there a way to turn off the opacity in the new Fluent theme?

Stefan
Top achievements
Rank 1
 answered on 19 Jan 2018
0 answers
41 views
Hi, 
I have a wpf  radgridview with many groups .
I want to sort rows inside each group. the sorting is ok . But I found thet the group having the biggest element moves up 
I want to sort inside groups without moving groups 
please the picture 
thanks a lot
BEN SAID
Top achievements
Rank 1
 asked on 18 Jan 2018
4 answers
580 views

Hello Télérik,

 

I'm using a RadDesktopAlert in my software.

The declaration :

private void CreateNotification(string header, string content, int dureeEnMillisecondes, int tailleEnPx)
        {
            var alert = new RadDesktopAlert();
            alert.Header = header;
            alert.Content = content;
            alert.Opacity = 0.7;
            alert.ShowDuration = dureeEnMillisecondes;
            alert.Height = tailleEnPx;
            alert.ShowCloseButton = false;
 
            //Point pointDeDepart = new Point(0, 20);
            RadDesktopAlertManager manager = new RadDesktopAlertManager(AlertScreenPosition.BottomRight);//pointDeDepart);
              
            manager.ShowAlert(alert);
        }

- Me, and my clients, using 2 or more screens to work. 

- For the moment, i'm using AlertScreenPosition.BottomRight and the notification was displayed in the bottom-right of the main screen (where is the windows task bar), even if the screen software is on a other screen.

 

I want to know if is it possible to display the notification on the current screen (where is the software, or where is the mouse) ?

 

Thank you very much, I hope be understadable.

Leonid
Top achievements
Rank 2
 answered on 18 Jan 2018
3 answers
257 views
Hi,

I want to display list of all open windows in "Windows" RadMenu  at dynamically  and if I close any window then it should be removed from the "Windows" menu.
And I also want, menu should be check which window is top most.

Any help will be much more appreciated.

Regards,
Bharat Mendapara
Kalin
Telerik team
 answered on 18 Jan 2018
1 answer
160 views

I would like to change the light blue header color of the RadWindow.Confirm. (See attached)

I have asked this question before and got a satisfactory answer, however that answer no longer works. I get a build error that RadWindow is does not exist in the namespace http://schemas.telerik.com/2008/xaml/presentation

Maybe something changed since I asked this question in 2015.

My current project is using the NoXaml binaries.

 

 

 

 

 

 

Paul
Top achievements
Rank 1
 answered on 17 Jan 2018
3 answers
372 views
Hi Telerik,
I need your quick suggestion on the below requirement for our reputed Client (Transportation domain).
We are using the RaddesktopAlert and have an immediate requirement to have some buttons  on RaddesktopAlert to perform some functionalities. I came across that RaddesktopAlert for Winforms supports this but don't have any idea how to achieve the same on RaddesktopAlert for WPF.
Any help on this one will be grateful :)
Martin Ivanov
Telerik team
 answered on 17 Jan 2018
1 answer
571 views

I'm using the combobox in this example inside a grid as a celledittemplate:
<telerik:GridViewDataColumn Header="َArticle Description" Width="100"><telerik:GridViewDataColumn.CellTemplate><DataTemplate><TextBlock Text="{Binding DataContext.AccDocumentItem.Description1, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"/></DataTemplate></telerik:GridViewDataColumn.CellTemplate><telerik:GridViewDataColumn.CellEditTemplate><DataTemplate><telerik:RadComboBox IsEditable="True" DisplayMemberPath="SLStandardDescriptionTitle"ItemsSource="{Binding DataContext.AccDocumentItem.SelectedSL.SLStandardDescriptions, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"Text="{Binding DataContext.AccDocumentItem.Description1,Mode=TwoWay,RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"><i:Interaction.Triggers><i:EventTrigger EventName="DropDownOpened"><i:InvokeCommandAction Command="{Binding DataContext.SLStandardDescriptionsDropDownOpenedCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}" CommandParameter="DLType2"/></i:EventTrigger></i:Interaction.Triggers></telerik:RadComboBox></DataTemplate></telerik:GridViewDataColumn.CellEditTemplate> </telerik:GridViewDataColumn>

I need to present a grid where one column is a combobox. The user can select one value from the list or enter a new value, the problem is that selected row is repeated in all rows. Can you please tell me what I'm doing wrong?
Your time much appreciated!

Dinko | Tech Support Engineer
Telerik team
 answered on 17 Jan 2018
3 answers
182 views

Hi every body...

In my application I have to make an InlineUIContainer (inserted within a table) as ReadOnly. To achieve this requirement I tried ReadOnlyRangeStart and ReadOnlyRangeEnd (as shown in the attached code). I also tried to InsertReadOnlyRange around the table using DocumentPosition (not shown in the attached code).  In both cases the following error is thrown:

"An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll"

Is not possible to make InlineUIContainer as ReadOnly? If so; is there any workaround?

Any Help Will Be Greatly Appreciated...

Note: the cause why I used TextBlocks instead of just adding new span to the paragraph; is that I have to make Text and image tightly grouped together; so that if they come across end of the page (and there is no enough space to them), then they move together to a new page. If there is a better solution to this requirement, it will be welcomed.

Private Function GetCenterManagerTable(ByVal mainDocument As RadDocument, ByVal FMMSContext As FMMS.BusinessObjects.Models.FMMSEntities) As Table
            Dim _table As New Table With {.Borders = New TableBorders(New Model.Border(1, BorderStyle.Single, Colors.Black)),
                                          .FlowDirection = GetFlowDirection(),
                                          .PreferredWidth = New TableWidthUnit(TableWidthUnitType.Fixed, mainDocument.SectionDefaultPageSize.Width - 115),
                                          .HorizontalAlignment = RadHorizontalAlignment.Center,
                                          .Tag = RequestTypes.WritingDraft}
            Dim _row As New TableRow
            Dim _cellReviewer As New TableCell With {.TextAlignment = RadTextAlignment.Center,
                                                     .Tag = RequestTypes.WritingDraft}
            Dim _cellManager As New TableCell With {.TextAlignment = RadTextAlignment.Center,
                                                    .Tag = Departments.CenterManager,
                                                    .PreferredWidth = New TableWidthUnit(TableWidthUnitType.Fixed, 350)}
            Dim _paragReviewer As New Paragraph With {.SpacingAfter = 0, .LineSpacingType = LineSpacingType.AtLeast, .LineSpacing = 0}
            Dim _paragManager As New Paragraph With {.SpacingAfter = 0, .LineSpacingType = LineSpacingType.AtLeast, .LineSpacing = 0}
 
            _table.Rows.Add(_row)
            _row.Cells.Add(_cellReviewer)
            _row.Cells.Add(_cellManager)
            _cellReviewer.Blocks.Add(_paragReviewer)
            _cellManager.Blocks.Add(_paragManager)
 
            'Manager
            Dim ManagerSignatureUIContainer As New InlineUIContainer With {.Width = 349, .Height = 200}
            Dim stckMain As New StackPanel With {.Height = 150}
            stckMain.Measure(New Size(350, 200))
            Dim txbName As New TextBlock With {.Text = ManagerData.Name, .FontFamily = PtHeadingFamily, .FontSize = 16, .TextWrapping = TextWrapping.Wrap, .HorizontalAlignment = HorizontalAlignment.Center}
            Dim imgManagerSignature As New Image With {.Name = "imgManagerSignature", .Width = 120, .Stretch = Stretch.Uniform}
            imgManagerSignature.Measure(New Size(120, 30))
            Dim txbSignatureDate As New TextBlock With {.Name = "txbSignatureDate", .FontFamily = New FontFamily("Times New Roman"), .FontSize = 8, .HorizontalAlignment = HorizontalAlignment.Center}
            Dim txbJob As New TextBlock With {.Text = ManagerData.Job, .FontFamily = PtHeadingFamily, .FontSize = 16, .TextWrapping = TextWrapping.Wrap, .HorizontalAlignment = HorizontalAlignment.Center}
            stckMain.Children.Add(txbName)
            stckMain.Children.Add(imgManagerSignature)
            stckMain.Children.Add(txbSignatureDate)
            stckMain.Children.Add(txbJob)
            ManagerSignatureUIContainer.UiElement = stckMain
 
            Dim rangeStart As New ReadOnlyRangeStart()
            Dim rangeEnd As New ReadOnlyRangeEnd()
            rangeEnd.PairWithStart(rangeStart)
 
            _paragManager.Inlines.Add(rangeStart)
            _paragManager.Inlines.Add(ManagerSignatureUIContainer)
            _paragManager.Inlines.Add(rangeEnd)
 
            Return _table
        End Function

①Dr Mostafa
Top achievements
Rank 1
 answered on 16 Jan 2018
3 answers
252 views

When using QueryableCollectionView, it takes an IEnumerable as source. Are there any further requirements on the type of the individual items?

My input data is an object-array, and in the code I'm currently investigating a DataTable is created and its DefaultView is used as input to the QueryableCollectionView. I was wondering if I could just skip the DataTable and just use a List<object[]> instead. Apparenty not, but I'm curious as to why?

Ivan Ivanov
Telerik team
 answered on 16 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?