Telerik Forums
UI for WPF Forum
5 answers
1.1K+ views
I have a strange problem and am looking into it for two days now.

I want to achieve that the radgridview's data is refreshed with the latest data from the database with no noticable delay in UI. So I definately don't want to do a rebind.
The grid's ItemsSource binds to an OberservableCollection(Of poco).
The thing I do is send this ObservableCollection to the dbContext (Telerik DataAccess EntitiesModel class):

dbContext.Refresh(Telerik.OpenAccess.RefreshMode.OverwriteChangesFromStore, toPoco)
After this refresh I fire the PropertyChanged event of the property holding the ObservableCollection.

Here's what happens:
Gridview's UI isn't updated. When I scroll the grid so a gridrow that has been changed is out of view and scroll the changed row back into view, the gridrow does show the right (changed!) data from SQL server.

It looks like the grid isn't getting a signal that the collection has been changed so it doen't update it's UI.

What could i do to refresh the gridview the right way?

Alexander
Dilyan Traykov
Telerik team
 answered on 09 Mar 2017
0 answers
131 views

Hi, 

I need to be able to bind the SelectedItems property of the RadGridView to a ObservableCollection property of my ViewModel. So I use the "MySelectedItemsBindingBehavior" class I found on your sample project called BindingSelectedItemsFromViewModel_WPF (found on github).

 

I would like to know why in this class, there is a static Attached boolean property.

In fact, if I load the same UserControl twice, only the first one is able to bind correctly its ObservableCollection to the SelectedItems of the RadGridView.

Is there a reason why you added this static boolean?

 

Thanks in advance

Sylvain
Top achievements
Rank 1
 asked on 09 Mar 2017
1 answer
80 views

Is it possible to set a Reccurrence Rule so that an appointment could happen every hour for days, but only between like 10am-4pm?   I can easily create an hourly pattern that lasts for days, but don't know how to make it only happen between a certain range in a day.

 

Thanks!

Martin
Telerik team
 answered on 09 Mar 2017
1 answer
148 views

Hi,

I have a column which DataType is TimeSpan, TimeSpans are displayed in military time format("hhmm"), however when user types 2000, filter interprets it as 2000 days 0 hours 0 minutes 0 seconds(2000.00:00:00). Filter checkBoxes also display values in the format specified. How can I make filter parse 2000 as 0.20:00:00?

Is there an easy way to do this?

Dilyan Traykov
Telerik team
 answered on 09 Mar 2017
7 answers
3.3K+ views
Hi

I need to add a WPF User control to the tab content programmatically.

Have you got any examples of this ?

Kind Regards

David
Dilyan Traykov
Telerik team
 answered on 09 Mar 2017
1 answer
87 views
Hello. Could you tell how to save the page settings after closing? For example, we change the background color, but after reopening the page the changes are gone
Martin Ivanov
Telerik team
 answered on 09 Mar 2017
2 answers
185 views
Hello. I am working on improving controls to meet 508 accessible requirements. My current focus is on using keyboard navigation and a screen reader in the filter control. However, I cannot seem to find any resources for the control template specifically for ContentControl’s PART_Filter1ContentControl and PART_Filter2ContentControl. I need the control template in order to add in automation properties for the screen reader.

I also found that while you can navigate through the calendar control with a keyboard, nothing is read using a screen reader. Additionally, when the filtering control or the calendar control pop up there is no way to navigate into these menus without using your mouse.

Looking for guidance on these issues.
Thank you.
Vicky
Top achievements
Rank 1
 answered on 08 Mar 2017
1 answer
158 views

I want to change the style of selected cell of RadGridView in my WPF form. I found the following style from RadGridView documentation and I used it.

<Style TargetType="{x:Type telerik:GridViewEditorPresenter}"><Setter Property="Template" Value="{StaticResource GridViewEditorPresenterTemplate}"/><Setter Property="Padding" Value="5"/></Style>

However, I got the warning error "Resource GridViewEditorPresenterTemplate is not found."

Do I need to include some assemblies in my xaml file?

Also, in Excel, if I use mouse to select a range of cells, there is a solid black border for all the selected ranges, can we do the same for RadGridView selected cells?

Thanks.

 

Stefan
Telerik team
 answered on 08 Mar 2017
1 answer
263 views

Hi, I am trying to change Enter key bevavior to act like Tab key. I found your documentation and blog post but these are all for the case when grid is in edit mode. My grid looks like this:

01.<telerik:RadGridView Name="Grid"
02.                             Grid.Row="1"
03.                             AutoGenerateColumns="False"
04.                             ItemsSource="{Binding Orders}"
05.                             ShowGroupPanel="False"
06.                             RowIndicatorVisibility="Collapsed"
07.                             BorderBrush="Black"
08.                             Margin="5">
09.            <telerik:RadGridView.Columns>
10.                <telerik:GridViewDataColumn Header="Price" Width="150">
11.                    <telerik:GridViewDataColumn.CellTemplate>
12.                        <DataTemplate>
13.                            <telerik:RadNumericUpDown Value="{Binding Price, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" SmallChange="0.1" LargeChange="1"/>
14.                        </DataTemplate>
15.                    </telerik:GridViewDataColumn.CellTemplate>
16.                </telerik:GridViewDataColumn>
17. 
18.                <telerik:GridViewDataColumn Header="Volume" Width="*">
19.                    <telerik:GridViewDataColumn.CellTemplate>
20.                        <DataTemplate>
21.                            <telerik:RadNumericUpDown Value="{Binding Volume, Mode=TwoWay, StringFormat=N2, UpdateSourceTrigger=LostFocus}" SmallChange="0.1" LargeChange="1"/>
22.                        </DataTemplate>
23.                    </telerik:GridViewDataColumn.CellTemplate>
24.                </telerik:GridViewDataColumn>
25.            </telerik:RadGridView.Columns>
26.        </telerik:RadGridView>

 

And my custom keyboard command provider looks like this:

01.public class CustomKeyboardCommandProvider : DefaultKeyboardCommandProvider
02.    {
03.        public CustomKeyboardCommandProvider(GridViewDataControl grid) : base(grid)
04.        {
05.        }
06. 
07.        public override IEnumerable<ICommand> ProvideCommandsForKey(Key key)
08.        {
09.            if (key == Key.Enter)
10.            {
11.                var tabCommands = base.ProvideCommandsForKey(Key.Tab).ToList();
12. 
13.                return tabCommands;
14.            }
15. 
16.            return base.ProvideCommandsForKey(key).ToList();
17.        }
18.    }

 

Is there a way how to do it for my case?

Thank you.

Karel

Dilyan Traykov
Telerik team
 answered on 08 Mar 2017
1 answer
199 views

I've just edited the First_Look example of the PdfViewer. If I generate a text export, by using:

            var provider = new PdfFormatProvider(str, FormatProviderSettings.ReadOnDemand);
            RadFixedDocument doc = provider.Import();
            textBlock.Text = new TextFormatProvider().Export(doc, new TextFormatProviderSettings());

I recognize, that the results are not as expected. Some special characters are not correctly translated. In figure 1 the special character â€˜ (\u2018) is displayed in the pdfview correctly whereas in the generated text the character was translated in \u0091 which is for private use. Also for non special characters there is also an unexpected behavior visible. In figure 2 it is visible that the 'fl' is missing in the word 'beeinflussen'. The string is translated in "beein\u001fussen". This means that the two characters 'fl' is replaced by the single character \u001f. This \u001f means 'Unit Seperator' which makes in this context not much sense for me.

Thank you

Deyan
Telerik team
 answered on 08 Mar 2017
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?