Telerik Forums
UI for WPF Forum
2 answers
266 views
Hello.  I am trying to solve the problem of keeping our data fresh using the Telerik WPF RadGridView.  I know that Telerik loads an in-memory copy of the collection that it binds to, but is there a way to keep it fresh?  We have a grid that queries 45,000 records.  Currently we have it working with a plain old windows grid by laoding in a page size at a time of records.  Because it goes back to the database each time we click the page buttons or do a sort or filter, the data stays fresh.  On the other hand, I also have a Telerik grid that queries the same set of records, but since it does not go back to the database for page operations and sorting and filtering, it gets stale data.  I verified this by updating some of the database fields and observing the old values instead of new ones.  Our work environment demands that the data be as fresh as possible (not just for insertion and deletion of records but for updating of existing records).  We have kicked around several ideas such as a refresh button, having a timer that goes back to the database to load every 15 minutes, or doing a database pull each time that the user does a paging, sort, or filter operation.  However, I am having a hard time finding the event in the RadGridPager that will let me make this call in the view model.  Is it even exposed?  Keep in mind that we are using MVVM, so I can use code behind if needed, but I would like to avoid that if possible.  Thank you.
Mike
Top achievements
Rank 1
 answered on 16 Jun 2014
5 answers
515 views
Hi,

I'm trying to use the RadPropertyEditor for the first time. I have a simple business object with 5 Color properties. The RadPropertyEditor shows a standard TextBox (not a RadColorPicker) and if I try to update the color hexa the new value is not pushed back to my business object. I then try to use an EditorTemplate by intercepting the AutoGeneratingPropertyDefinitions event and set the Editor property. However I'm not able to figure out how my DataTemplate should like. The Rad WPF example use this:

...
<DataTemplate x:key=foregoundTemplate>
   <telerik:RadColorPicker SelectedColor={Binding Path=Foreground ...
...

This is not very extensible since the editor template needs to know the path of the property it's bind to. I don't want to make an editor for each of my 5 properties.

Do I missing something?

Thanks
Ivan Ivanov
Telerik team
 answered on 16 Jun 2014
1 answer
237 views
I have the ItemsSource of a VisualizationLayer bound to a collection of LineData.  I have the MapShapeFill of the VisualizationLayer bound and it is used by the VisualizationLayer when first rendering the collection of LineData.  If I change the property MapShapeFill is bound to, the VisualizationLayer picks up this change; however, the rendered LineData does not re-render (this is somewhat expected).  However, if I remove that VisualizationLayer and create a new VisualizationLayer and set its ItemsSource to the same collection of LineData, it still uses the old MapShapeFill (as was initially set on the original layer), which seems to suggest that the RadMap is holding on to the controls it creates for this collection of LineData even if the VisualizationLayer is removed. 

So, I have to create a new collection of LineData in order for the new MapShapeFill to be applied.

Is there anyway to get a VisualizationLayer to apply a new MapShapeFill to its ItemsSource (i.e. the collection of LineData) without generating a new ItemsSource?
Andrey
Telerik team
 answered on 16 Jun 2014
1 answer
124 views
Hi,

I have a Rad Map control onto which is displayed a group of 5 circles. These circles represent contour lines around a central point. Each contour lines is equally distanced from its neighbours. Radius values (that is, the distance from the central point to each contour line) are shown on the edge of each contour line.

I also have a Rad Slider for changing the zoom level of the map.

Every time the user changes the zoom level, layout of contour lines is refreshed and radius values are recalculated accordingly. You can see this behaviour in the attached file.

I would like to change the look of the ticks of my slider so that, next to each tick, the expected future radius value of the largest of the circles is displayed.
Each time the zoom level changes, all radius values (including the largest one) are calculated using the GeographicalBound property.

If I could "preview" the GeographicalBounds resulting of zooming directly to each level, it would be wonderful. Is there a way to know, in advance (that means, without actually changing the zoom level), what the map's GeographicalBounds will be for each zoom level?

Thanks,

Sebastien
Andrey
Telerik team
 answered on 16 Jun 2014
3 answers
317 views
Hello,

We'd like to make Multi-dimensional Swimlanes such as the attached image.
Let me know if you can realize the following.

- Both of horizontal lanes and vertical lanes contain nodes like the RadDiagramContainerShape.

I am looking forward to hearing from you.
Zarko
Telerik team
 answered on 16 Jun 2014
11 answers
423 views
I'm writing a multi-user application with WPF and I need the Rad Gridview to maintain fresh data as it may be changed by other users.  I'm using VB.NET and an ADO .NET entity for the business object.  How can this be done?
Nick
Telerik team
 answered on 16 Jun 2014
24 answers
170 views
Hi,

I'm looking for a control who can react like the address bar in IE 11. I mean having an autocomplettion and a kind of dropdown which can have grouping functionalities, expand or not  the existing groups, highlighting portion of text, etc...

I don't know if I can do it with this control or any other existing controls in Telerik...

Thank's
Alain
Rosen Vladimirov
Telerik team
 answered on 16 Jun 2014
1 answer
432 views
Hello there,

I want to add button click event to a button present in the Resource Dictionary (Generic.xaml) of a custom radShape 

<Style TargetType="{x:Type local:SideView}">
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Height" Value="50"/>
        <Setter Property="Width" Value="100"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:SideView}">
                    <Grid Background="{TemplateBinding Background}">

                        
                        <Rectangle Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" 
                                   Height="{TemplateBinding Height}"
                                   Width="{TemplateBinding Width}"/>
                        
                         <Button  HorizontalAlignment="Right" Height="20" Width="20" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}
                                                                                            ,Path=ButtonVisiblity,Mode=TwoWay}" 
                                  Click="Button_Click" Margin="5" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>    How can i do that???



Martin Ivanov
Telerik team
 answered on 16 Jun 2014
5 answers
206 views
Here I have a TabControl with TabItem content is GridView, I switch to the Tab that contain GridView the scroller Is okay but then after I switch to between other tabs and switch back to it again the GridView won't scroll, this behavior only happen when using touch with mouse scroll is fine it works, any suggestion.? 
Nick
Telerik team
 answered on 16 Jun 2014
4 answers
132 views
I am trying to achieve a layout as shown in the attached image. I want two cells to be stacked to save on horizontal real estate. I've looked at some examples, but all of them lose the row headers. I want the row headers to maintain sorting and filtering capabilities.

I'm hoping that this is possible with the RadGridView, because it is a pretty glaring deficiency if not. Any help is appreciated.
Nick
Telerik team
 answered on 16 Jun 2014
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?