Telerik Forums
UI for WPF Forum
3 answers
252 views

I have a custom class that I'm adding to a VisualizationLayer. I'm using the following template to display it:

<DataTemplate x:Key="PolygonTemplate">
    <telerik:MapPolygonView Points="{Binding Points}" ShapeFill="{Binding ShapeFill}" />
</DataTemplate>

 

Works great. But I don't know how to get the ZIndex working. I tried adding my own ZIndex (that calls PropertyChanged), inheriting from ExtendedDataProvider, putting Canvas.ZIndex in the template but the z-order of the item never changes. If I use a normal PolygonData with the default template, the z-order updates.

Martin Ivanov
Telerik team
 answered on 24 Jan 2019
5 answers
88 views

Hello,

when I selected the RadPane on the right,the pinbutton has missed.When I selected another control ,the pinbutton display.

How to change the pinbutton to solve the problem?

Regards,

Guo

guo
Top achievements
Rank 1
 answered on 24 Jan 2019
3 answers
265 views

In the recent project, I want to control the scrollViewer on the diagram and set the offset of the scrollViewer. I looked at the API and found that the offset property is not public. What should I do?

Any help would be appreciated.


Dinko | Tech Support Engineer
Telerik team
 answered on 23 Jan 2019
3 answers
161 views

Hi,

I noticed that some commands get executed/ changes saved when selecting a different tool.

For instance:

1. Seleting the tool to insert text
2. Selecting forms

The text is placed inside the image. This is pretty annoying if the user accidently clicked on it. Is there a way to persist this changes only when a user has clicked a custom button?

 

Best regards

Vladimir Stoyanov
Telerik team
 answered on 22 Jan 2019
3 answers
649 views

Hello,

We have a RadGridView that has 150,000 rows (and so is using the default UI virtualization) as well as default column filters available on each column. When we check one of the "distinct values" checkboxes on the Name column, the resulting grid displays only entries for the selected name as expected -- however, it doesn't display all the results that were in the 150,000 rows. It's hard to tell how it is deciding where to cut off the results, but since each row has a time stamp we can see that it takes the top rows up until a certain point and then stops. So for one case, 69 rows were displayed when there were 624 rows in total for that selected name.

I've searched around quite a bit but couldn't find this exact scenario addressed -- do you have ideas/suggestions for this problem?

Thanks,

Chris

Martin Ivanov
Telerik team
 answered on 22 Jan 2019
0 answers
74 views
We're using the RadScheduleView control in a calendar application. The application synchronizes the events shown in the RadScheduleView with the events from a given Calendar server.

The problem that we're facing is that the user could be editing an event while the synchronization updates the collection of appointments in the RadScheduleView. In this particular case we can't update the collection using BeginEdit/Commit because we'd lose the edit transcation that the user is currently using in the EditEvent window.

Alternatively, we could update the collection by removing the old appointment and adding the new one, but this causes reordering of the appointments that occur at the same time and loss of selection (e.g if the selected item is the one that we remove and then add).



What is the best way to update the collection of appointments while the window if open, either because the user is creating or editing an event, without loss of selection and/or reordering of the events that occur at the same time?
Emil
Top achievements
Rank 1
 asked on 22 Jan 2019
3 answers
146 views

Hi,

I used a scheduleview with custom appointment and style.

I modified appointments in my viewmodel programmatically when I received message from Azure service bus. The problem is that the UI isn't updated. I have to scroll down and up to see changes in UI.

I tried this solution : https://www.telerik.com/forums/changing-appointment-start-end-not-reflected-on-ui but it didn't work.

Thanks for your advice

Véronique

 

Here's my code :

public class TimeSlot : Appointment
{

....

        public void UpdateTimeSlot(TimeSlot source)
        {
            CopyFrom(source);

            _truckId = source.TruckId;
            TimeMarker = TimeSlotMarkerCollection.GetTimeSlotMarker(source.CurrentStatus);

            OnPropertyChanged();
        }

}

 

In my viewmodel :

public class DispatchBoardViewModel : ObservableObject
 {

        private void _listenerMessageService_MessageReceived(object sender, EventArgs e)
        {
            var dispatchList= ((MessageEventArgs)e)?.Message;
            dispatchList?.TimeSlots.ForEach(d =>
            {
                var displayedTimeSlot = TimeSlots.FirstOrDefault(ts =>[where_clause])
            );
            displayedTimeSlot?.UpdateTimeSlot(timeSlot);
            });

}

Martin Ivanov
Telerik team
 answered on 21 Jan 2019
6 answers
449 views

Hi,

Is there any way to change how the tabs are styled so that it's more obvious which tab is selected? What I'm looking for is for the active tab to 'hug' the tab content below it. Chrome and Visual Studio do something similar.

Please see the attached screenshots.

Martin Ivanov
Telerik team
 answered on 21 Jan 2019
0 answers
156 views

     Hello,

I am using the RadGridView for displaying our list of data, but this data is getting bigger and bigger so to improve performance we added paging to our Api

(Data to the gridview is populated through the API not directly from the database).

My Concern is that we I apply paging on the API , I will lose the built in sorting and filtering in the grid as It will only sort the return data.

Is there a way to apply filtering and sorting as calls to the API and I will handle the request on my API.

 

any help would be appreciated.

moe
Top achievements
Rank 1
 asked on 21 Jan 2019
12 answers
1.8K+ views

Goodmorning everyone
I have a really difficult problem to solve for myself, as well as a series of questions to cover a series of doubts.
Accordingly:
app wpf for windows 10 developed with visual studio 2017
.Net Framework 4.5.2
important:
the anomaly I am about to describe does not occur in the development environment, but only with .exe compiled.(debug or release)

my app reads several bytes per second via UTP coming from a microprocessor.
For the reception I created a separate thread.
to view the data received in the xlm graphical interface I followed instructions inside the reception thread as, for example:
Dispatcher.BeginInvoke ((Action) (() => lblPercWorkPhaseInProcessDone.Content = percTotalDone.ToString () + "%"));

where lblPercWorkPhaseInProcessDone is a label.

at each microprocessor event, a table SQL is also stored where I store the historical events of the industrial plant.

therefore, always at each event (data received by the microprocessor in the separate thread) refresh (every about a second) the datagrid containing the events table, with the following instruction:

Dispatcher.BeginInvoke ((Action) (() => RadGridViewWorkPhaseInProgressOnDashBoard.ItemsSource = workPhaseInProgressService.GetByWorkPhaseForOrderId (workPhaseForOrderIdInProcess)));

where

GetByWorkPhaseForOrderId is a method of its class with entity framework:

public List <WorkPhaseInProgress> GetByWorkPhaseForOrderId (int id)
        {
            try {
                using (WIPDBContext db = new WIPDBContext ())
                {
                    var Attachment = db.WorkPhasesInProgress.Where (x => x.WorkPhaseForOrderId == id) .OrderByDescending (x => x.WorkPhaseInProgressId) .ToList ();
                    return Attachment;

                }
            }
            catch (Exception x)
            {
               
                throw x;
            }
        }

after about 5 or 6 hours of operation the program comes out generating an error in the windows log:
EventData

Application: WIP.exe Framework version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception information: System.OutOfMemoryException in WIP.Service.WorkPhaseInProgressService.GetByWorkPhaseForOrderId (Int32) in WIP.MainWindow. <RefreshGridWorkInProgress> b__188_0 () in System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate, System.Object, Int32 ) in System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object, System.Delegate, System.Object, Int32, System.Delegate) in System.Windows.Threading.DispatcherOperation.InvokeImpl () in System.Windows.Threading.DispatcherOperation .InvokeInSecurityContext (System.Object) in System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) in System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext, System .Threading.ContextCallback, System.Object, Boolean) in System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) in MS.Internal.CulturePreservingEx ecutionContext.Run (MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) in System.Windows.Threading.DispatcherOperation.Invoke () in System.Windows.Threading.Dispatcher.ProcessQueue () in System.Windows.Threading .Dispatcher.WndProcHook (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) in MS.Win32.HwndWrapper.WndProc (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) in MS.Win32.HwndSubclass.DispatcherCallbackOperation (System.Object) in System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate, System.Object, Int32) in System.Windows.Threading.ExceptionWrapper.TryCatchWhen (System.Object, System.Delegate, System.Object, Int32, System.Delegate) in System.Windows.Threading.Dispatcher.LegacyInvokeImpl (System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) in MS.Win32.HwndSubclass.SubclassWndProc (IntPtr, Int32, IntPtr, IntPtr) in MS.Win32.UnsafeNativeMethods.DispatchMessage (System.Windows.Interop.M SG ByRef) in System.Windows.Threading.Dispatcher.PushFrameImpl (System.Windows.Threading.DispatcherFrame) in System.Windows.Threading.Dispatcher.PushFrame (System.Windows.Threading.DispatcherFrame) in System.Windows.Application.RunDispatcher ( System.Object) in System.Windows.Application.RunInternal (System.Windows.Window) in System.Windows.Application.Run (System.Windows.Window) in System.Windows.Application.Run () in WIP.App.Main ()

 

 

the records in the table are about 10,000, for now, but will be destined to increase a lot.

my questions are:
It is correct to display my data from a separate thread with the method Dispatcher.BeginInvoke ?

why does not this happen in the development environment?

 

I hope I have explained the scenario well.

How can I solve?
thank you in advance

 

Gianfranco
Top achievements
Rank 1
 answered on 18 Jan 2019
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?