Telerik Forums
UI for WPF Forum
3 answers
105 views
Hi !

I've got a simple project with a ScheduleView in the MainWindow. The constructor code is as follows:

public MainWindow()
        {
            InitializeComponent();

            m_scheduleView.AppointmentsSource = new List<Appointment>();

            // Init the schedule view
            m_scheduleView.ViewDefinitions.Add(
                new WeekViewDefinition()
                {
                    FirstDayOfWeek = DayOfWeek.Sunday,
                    VisibleDays = 7,
                    TimerulerMajorTickStringFormat = "{0:H:mm}"
                } );
            m_scheduleView.ViewDefinitions.Add(
                new MonthViewDefinition()
                {
                    FirstDayOfWeek = DayOfWeek.Sunday
                } );

            // Make the beginning of the schedule read-only.
            var excludedRange = new ObservableCollection<Slot>();
            excludedRange.Add( new Slot( DateTime.MinValue, new DateTime( 2011, 10, 22 ) ) { IsReadOnly = true } );
            m_scheduleView.SpecialSlotsSource = excludedRange;

            m_scheduleView.ScrollIntoView( new Slot( new DateTime( 2011, 10, 23 ), new DateTime( 2011, 10, 24 ) ) );
        }


What I'm trying to do here is make the schedule read-only up to a certain date, then scroll the following day into view.
However, the last line, where I attempt to scroll a date into view, doesn't work.

Am I missing something or was this broken in SP1 ?

Thanks,
Sebastien
Idan
Top achievements
Rank 1
 answered on 31 Oct 2011
5 answers
294 views
I have an application that has a vertical splitpanel that has two horizontal splitpanels. In the horizontal splitpanels I have RadDocking controls hat hold a viewer control that can show camera images. When docking or undockung a pane it gets reloaded, and the camera images blanks for a moment because the connection needs to be setup again. It would be nice if there is a solution for this, so if anyone has ideas please respond.

To solve this I tried setting PaneGroup.IsContentPreserved to true. This caused a nasty side effect: some of my content controls of the RadDocking did not receive resize events anymore, and they got loaded with an ActualSize of 0. So my application came up with some empty RadDocking controls while others were working correctly. After quite some time I discovered that Solution for this is to leave IsContentPreserved to false.
Miroslav Nedyalkov
Telerik team
 answered on 31 Oct 2011
16 answers
117 views
Just install 2011 Q2 and when I drag a column head the ghost image is 2.5 inches down and 3 inches to the right.
Hristo
Telerik team
 answered on 31 Oct 2011
1 answer
119 views
I'm interested in reading from a local database, as my shapefiles are far far too large to read completely into memory. I need to both do a Read() on a SqlGeospatioalDataReader based on the current view and also respond to the DynamicLayer's ItemRequest event.

How should I go about doing both these things?
Andrey
Telerik team
 answered on 31 Oct 2011
2 answers
98 views
This is a strange one.  We've been using RadDocking/RadPanes for a while for the main window of our application.  There were lots of problems like the window not going behind the Task Bar, etc., so we upgraded to version 2011.2.0920.40.  Now something that used to work doesn't work. 

We put controls in the header portion of the some of the panes in the dock.  One of the controls is a drop-down menu custom control, which is meant to be sort of a toolbar control that is a drop-down menu.  So you click it, and it brings up a submenu, and the user picks something.  Worked like a champ in previous versions.  Now, with 2011.2.0920.40, I click the button, and the submenu appears, but as soon as I mouse over the menu, it disappears. I have attached a picture.  I made a movie of it disappearing as well, but your site won't let me upload a .swf file.

To try and diagnose why the menu is closing, I subscribed to the SubmenuClosed event of the menu.  When my handler gets hit, the call stack is not that interesting.  I think it's too late.  Here is most of it:

> Jmp.exe!WinHost::RecentFilesControl::onFilterMenuClosed(System::Object^ sender = 0x074afbf4, System::Windows::RoutedEventArgs^ e = 0x1319eb28) Line 1759 C++
  PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x7a bytes 
  PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source = {System.Windows.Controls.MenuItem}, System.Windows.RoutedEventArgs args = {System.Windows.RoutedEventArgs}, bool reRaised = false) + 0x1ae bytes 
  PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender = {System.Windows.Controls.MenuItem}, System.Windows.RoutedEventArgs args = {System.Windows.RoutedEventArgs}) + 0x79 bytes 
  PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs e) + 0x29 bytes 
  PresentationFramework.dll!System.Windows.Controls.MenuItem.OnSubmenuClosed(System.Windows.RoutedEventArgs e) + 0x5 bytes 
  PresentationFramework.dll!System.Windows.Controls.MenuItem.OnPopupClosed(object source, System.EventArgs e) + 0x41 bytes 
  PresentationFramework.dll!System.Windows.FrameworkElement.RaiseClrEvent(System.Windows.EventPrivateKey key, System.EventArgs args) + 0x4f bytes 
  PresentationFramework.dll!System.Windows.Controls.Primitives.Popup.OnClosed(System.EventArgs e) + 0x47 bytes 
  PresentationFramework.dll!System.Windows.Controls.Primitives.Popup.DestroyWindow() + 0x8d bytes 
  PresentationFramework.dll!System.Windows.Controls.Primitives.Popup.HideWindow.AnonymousMethod__1(object sender, System.EventArgs args) + 0x22 bytes 
  WindowsBase.dll!System.Windows.Threading.DispatcherTimer.FireTick(object unused) + 0x31 bytes 
  WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x53 bytes 
  WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate method, object args, int numArgs, System.Delegate catchHandler = null) + 0x42 bytes 
  WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() + 0x8d bytes 
  WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state) + 0x38 bytes 
  mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x51 bytes 
  mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6a bytes 
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0x7e bytes 
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2c bytes 
  WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0x68 bytes 
  WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() + 0x15e bytes 
  WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x63 bytes 
  WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd = 0x003108cc, int msg = 0x0000c1a2, System.IntPtr wParam = 0x00000000, System.IntPtr lParam = 0x00000000, ref bool handled = false) + 0xbe bytes 
  WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7d bytes 
  WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x53 bytes 
  WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate method, object args, int numArgs, System.Delegate catchHandler = null) + 0x42 bytes 
  WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0xb4 bytes 
  WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd = 0x003108cc, int msg = 0x0000c1a2, System.IntPtr wParam = 0x00000000, System.IntPtr lParam = 0x00000000) + 0x104 bytes 
  user32.dll!_InternalCallWinProc@20()  + 0x23 bytes 
  user32.dll!_UserCallWinProcCheckWow@32()  + 0xb7 bytes 
  user32.dll!_DispatchMessageWorker@8()  + 0xed bytes 
  user32.dll!_DispatchMessageW@4()  + 0xf bytes 

Any thoughts on what would be different that breaks this scenario?  What other info do you need from me?

Thanks,

Eric
Konstantina
Telerik team
 answered on 31 Oct 2011
1 answer
117 views
Does this work? It is not listed as a supported on the documentation, but a SQLiteDataReader is an IEnumerable, it seems. I guess I'll try it regardless. I'm attempting to create my own SpatiaLite dynamic source and I need to create RadMap compatible objects from the WKB returned.

Thanks,

Cody
Andrey
Telerik team
 answered on 31 Oct 2011
1 answer
169 views
I have started playing with this control.  I can not find documentation.  I did see that the windows phone version has behaviors to support Zooming. Is Zooming available in the WPF version? 

More questions to follow as I play more.... 
Evgenia
Telerik team
 answered on 31 Oct 2011
2 answers
369 views
I would like to override the original error template to do the following
- add an warning icon at the back of the control
- add the error content to the tooltip of the icon with converter to convert the error content from error code to error message for validation from Model that implemented IDataErrorInfo interface.

I tried to do it as follows but it doesn't work. Is there anything wrong or there is another solution in handling this case?

 

<ControlTemplate x:Key="GeneralErrorTemplate">  

<Grid>

<Border BorderBrush="#66FF0000" BorderThickness="3">

<AdornedElementPlaceholder x:Name="adorner" />

</Border>

<Image Source"/Images/error.png"

ToolTip="{Binding ElementName=adorner, Path=AdornedElement.(Validation.Errors).CurrentItem.ErrorContent, Converter={x:Static con:CodeConverter.Instance}}">
</Image>
</Grid>

</ControlTemplate>

<telerik:GridViewDataColumn Header="Value" DataMemberBinding="{Binding Value, Mode=TwoWay, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource GeneralErrorTemplate}">  

</telerik:GridViewDataColumn>

 

Sai
Top achievements
Rank 1
 answered on 31 Oct 2011
4 answers
122 views
Hi,
I added RadPane programatically,
     myPaneGroup.Items.Add(myRadPane);
Initially, it show up fine.
Then, I close the pane (click on x button) and trying to re-add the same pane.
It won't show up the second time.

I'm trying to avoid to create a new pane everytime as it's quite heavy, instead, reuse the pane I already created.

Could you please tell me what's going on?

Thanks.
Chris
Top achievements
Rank 1
 answered on 29 Oct 2011
2 answers
87 views
I have a RadComboBox with a list of strings as item. My RadComboBox has IsEditable property to True. I wanted to know how I could do that when the user enters a value in the input field of RadComboBox, it is added to the list of items if it is not already there?
Joël
Top achievements
Rank 2
 answered on 28 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?