Telerik Forums
UI for WPF Forum
1 answer
115 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
93 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
111 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
165 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
354 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
117 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
85 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
1 answer
101 views
Hi,

I've the same issue described in http://www.telerik.com/community/forums/wpf/gridview/rowdetails-and-text-wrapping.aspx
If I download the sample project attached ticketid-282071-horizontalvirtualizationandwidth.zip it behaves like it should behave but it uses a very old version of telerik. Putting the latest stable and internal telerik assemblies it behaves really strange. The first time when I load the app the text is wrapped, if I resize the window it loses the text wrap and the annoyng horizontal scrollbar appears. Is there any solution to wrap the text correctly in the RowDetailsTemplate. It's a very common scenario and it's seems to be broken in the latest versions.

Thanks for your answer.
Dimitrina
Telerik team
 answered on 28 Oct 2011
5 answers
290 views
Hello,

I need to create a gantt chart.  How do this?

Help please!
Valeri Hristov
Telerik team
 answered on 28 Oct 2011
1 answer
185 views

Hello Team,
 
We are in the process of converting to Telerik 2011 version from the old version. In the previous version our main screen was working fine. Now we are having an issue.

This is the situation.
We have a RadPane with a Item control in it. when we try to resize the RADPane, instead of adjusting the size of the adjcent pane, adjcent pane is getting overlapped on the RADPANE. Because of this overlapping, user is not able to see the scorll bar, which is available in the RADPANE. 

 

How do I solve this issue? I have attached the picture to show the problem.



Code:
  
        <radDock:RadDocking Grid.Row="1" x:Name="mainDockSite" Background="White" Close="mainDockSite_Close" PreviewClose="mainDockSite_PreviewClose">
  
            <radDock:RadSplitContainer radDock:DockingPanel.InitialSize="183,150" MaxWidth="600" Name="LeftContainer" InitialPosition="DockedLeft">
  
                <radDock:RadPaneGroup>
  
                    <radDock:RadPane Header="Navigator" CanUserClose="False" CanUserPin="False" Name="Navigator">
  
                        <DockPanel LastChildFill="True" HorizontalAlignment="Stretch">
  
                            <ItemsControl DockPanel.Dock="Top" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" Name="PanelBarRegion" cal:RegionManager.RegionName="PanelBarRegion" >
  
                                <ItemsControl.ItemsPanel>
  
                                    <ItemsPanelTemplate>
  
                                        <DockPanel HorizontalAlignment="Stretch" LastChildFill="True"/>
  
                                    </ItemsPanelTemplate>
  
                                </ItemsControl.ItemsPanel>
  
                            </ItemsControl>
  
                        </DockPanel>
  
                    </radDock:RadPane>                    
  
                </radDock:RadPaneGroup>
  
            </radDock:RadSplitContainer>
  
  
Konstantina
Telerik team
 answered on 28 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?