Telerik Forums
UI for WPF Forum
1 answer
143 views
Good afternoon,

We started getting this exception on one of our forms, after upgrading Telerik control for WPF to a new version.
The exception occurs for a DataGridHyperlinkColumn of the DataGrid in the RadTabControl.
Can anyone help us with this?

Stack trace:

bei MS.Internal.Media.VisualTreeUtils.AsVisual(DependencyObject element, Visual& visual, Visual3D& visual3D) bei Telerik.Windows.Controls.TabControl.RadTabControlBase.ScrollViewer_MouseWheel(Object sender, MouseWheelEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TabControl\RadTabControlBase.cs:Zeile 707. bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) bei System.Windows.Input.InputManager.ProcessStagingArea() bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) bei Akzente.Gigant.Administration.Program.Main() in C:\projects\akzente\src\trunk\trunk\Akzente.Gigant.Administration\Akzente.Gigant.Administration\Program.cs:Zeile 61.
Tina Stancheva
Telerik team
 answered on 22 Aug 2012
1 answer
128 views
I've not been able to locate any information regarding this request, so the question is asked here!

I want to change the automatic layout of the tiles from Left to Right, Top to Bottom  to Top to bottom , Left to Right.

i.e. change from 

1,2,3,4,5,6,7,8,9,10,
11,12,13,14,15,16,17,18,19,20,
21,22,23

to this
1, 6, 11, 16,21
2,7,12,17,22
3,8,13,18,23
4,9,14,19,
5,10,15,20,

where the numbers represent ordered tiles.

Is this  possible??

Regards,

/SiD
Tina Stancheva
Telerik team
 answered on 22 Aug 2012
5 answers
462 views
Hello All,

I am trying to display an icon in the RadTabControl, right aligned, at the tab strip level.  I have done this with the RibbonBar using the TabStripAdditionalContent property, but in this particular view, I do not have a RibbonBar.  I was wondering if there is a similiar property I can use to achieve this, or using a style / template.

Any help is appreciated.

Thanks in advance
Tina Stancheva
Telerik team
 answered on 22 Aug 2012
3 answers
203 views
Hi,

I'm using VS2008 and Telerik V2012.1.326.35 and a special scenario occured when I'm trying to close a RadWindow.

In m'y application, I have a flag to detect any user data changes and when the user try to close the RadWindow, if the flag = true, I display a dialog to ask the user if he want to loose his changes or not. If he answer YES, no problem, the RadWindow close without any problem but if he answer NO, the previewclosed event are trigger a second time. The problem occur only when he click on my close button. If he use the upper right X button of the RadWindow, the normal behaviour are respected.

XAML CLOSE BUTTON:
---------------------------------
                <telerik:RadButton Margin="0 0 5 0" x:Name="btnClose" Click="btnQuit_Click" IsCancel="True">
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="5 0 0 0" Source="Resources/Quit_32x32.png" Height="24" Width="24" />
                        <TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource Quit}" />
                    </StackPanel>
                </telerik:RadButton>
CODE BEHIND
---------------------
        private void btnQuit_Click(object sender, RoutedEventArgs e)
        {
   try
   {               
    Close();
   }
   catch (Exception exc)
   {
    ClientUtilities.DisplayContextEventError(mTracingTool, exc, "BILDT019", "btnQuit_Click");
   }
        }

        private void Me_PreviewClosed(object sender, WindowPreviewClosedEventArgs e)
        {
   try
   {
                if (IsChangesInProgress && ClientUtilities.ConfirmDialog(this, LocGeneral.GetControlText("Confirmation"), LocGeneral.GetYesNo("CancelChanges")) != true)
                {
                    e.Cancel = true;
                }
                else
                {
                    DoAction(this, new ActionEventArgs(ActionEvent.Close));

                    // Apply persistence if required.
                    if (mUsePersistence)
                    {
                        string errMsg;
                        PersistenceStorage.Persist(PersistenceStorage.PersistenceAction.Save, this, "BillingModule.BillingDetails" + "." + this.IsReadOnly.ToString(), out errMsg);
                        mIsAlreadyLoaded = false;
                    }
                }
   }
   catch (Exception exc)
   {
    ClientUtilities.DisplayContextEventError(mTracingTool, exc, "BILDT019", "Me_PreviewClosed");
   }
        }


Georgi
Telerik team
 answered on 22 Aug 2012
1 answer
172 views
I receive this message when binding to a graphsource for each connection in the graphsource:
System.Windows.Data Error: 40 : BindingExpression path error: 'Content' property not found on 'object' ''SeqLink' (HashCode=58169988)'. BindingExpression:Path=Content; DataItem='SeqLink' (HashCode=58169988); target element is 'ContentPresenter' (Name=''); target property is 'Content' (type 'Object')

Commenting out all binding in the Style for connections in xaml does not help.

internal class SeqLink:ILink<SeqStep>
    {
        public string ConnectionSide { get; internal set; }
 
        object ILink.Source
        {
            get { return Source; }
            set { Source = (SeqStep) value; }
        }
 
        public SeqStep Target { get; set; }
 
        //Uncomment either of these to remove the runtime binding error in debug window. However, the appearance is unchanged, AFAICT.
 
        //public string Content
        //{
        //    get { return String.Empty; }
        //    set { throw new NotImplementedException("Set content was called");}
        //}
 
        //public FrameworkElement Content
        //{
        //    get { return new Button() {Height = 30,Width = 30,Content = "SampleText"}; }
        //    set { throw new NotImplementedException("Set was called"); }
        //}
 
        public SeqStep Source { get; set; }
 
        object ILink.Target
        {
            get { return Target; }
            set { Target = (SeqStep) value; }
        }
    }

Have I done something wrong, is this a bug or is there something that I should be exposing through this property that would achieve some functionality that I fail to grasp? 
Alex Fidanov
Telerik team
 answered on 22 Aug 2012
1 answer
59 views
When I am scrolling through a large amount of data, there is a item that appears over the top of the grid that appears to show data from the first column in the grid.

What is this UI Element called?

Do you have any samples on how to style it.
Vlad
Telerik team
 answered on 22 Aug 2012
3 answers
734 views
Hello,
I'm currently evaluating the RadGridView (2012_1_326) and am encountering a problem setting the DisplayIndex.  The documentation (http://www.telerik.com/help/wpf/gridview-columns-reordering-columns.html) illustrates a simple scenario setting the DisplayIndex property in xaml.  When I implement this same example, i get a runtime ArgumentOutOfRangeException {"DisplayIndex out of range! Column2\r\nParameter name: displayIndex"}. 

My intent is to eventually bind this property to a custom object containing display settings which will be used to persist the user's preferences.

Your help is appreciated
Erik
Top achievements
Rank 1
 answered on 21 Aug 2012
3 answers
109 views
Hi,

I've been working hard, with the help of telerik support, trying to extend the features of RadDocument. Please find my latest code sample download link here.

It took me quite some time to learn and make these features so this should help speed things up for you.

I have mainly be building up a library of custom annotation features, but there are also other additions.

Here are my methods:
  • GetSelectedAnnotationsRangeStarts()
  • GetPreviousAnnotationRangeStart()
  • GetNextAnnotationRangeStart()
  • GetNextAnnotationRangeStartAtPosition()
  • GetSameLineNextAnnotationRangeStart()
  • GetPreviousSameLineAnnotationRangeStart()
  • IsCaretAtLineEnd()
  • IsCaretAtLineStart()
  • DeletedNonSelectedSpanTextAtCaret()
  • DeleteOnlySelectedAnnotations()
  • GetNextAnnotationMarker()
  • GetPreviousAnnotationMarker()
  • GetLastSelectedAnnotationMarker()
  • GetPreviousAnnotationMarkerEndAndStartRanges()
  • DeleteReadOnlyRanges()
  • ToggleHighlightReadOnlyRangesOn()
  • ToggleHighlightReadOnlyRangesOff()
  • MakeReadOnlyRangesEditable()
  • DeleteCurrentParagraph()
  • IsCaretOnFirstLineInParagraph()
  • IsPositionOnFirstLineInParagraph()

 

Feel free to let me know if you find any errors or more efficient ways to achieve the above.
Please upload your code if you extend the features of this code sample. Every little helps.

Rob

Robert
Top achievements
Rank 1
 answered on 21 Aug 2012
4 answers
167 views
Greetings,

   I have used rad datagrid and it is working fine. But I have basically 1 problems that I felt very hard to implement.

1.  Using Custom Layout like in the blog
http://blogs.telerik.com/blogs/posts/09-02-03/how_to_use_custom_row_layouts_in_radgridview_for_wpf.aspx
but to start with I have strange error like
The property 'ColumnName' was not found in type 'GridViewCell'.
so I could not start to edit the example in the blog.  Can we edit the Values of rows that is inside the Custom row layout and also save it to the database also? Can the Custom layout hold other edit templetes like Combobox or masked text box in columns like Sex where there are only two option like male or female or in Phone number. Saving the edit on database also should be on focus. Because
dataContext.SubmitChanges();
was working fine on other project but under exactly same condition it is not working now.

If you want to go through my project here is a link of it.
http://www.quickfilepost.com/download.do?get=2637bc0276d4b31e8d85d32823873e75
Vic
Top achievements
Rank 1
Iron
 answered on 21 Aug 2012
4 answers
149 views
Hi,

I'm using the RadMap to display KML data exported from Google Earth.  I've found that pushpins appear really large by default (about 64x64) and that it is the top left corner of the image that points to the location, and not the pin.  This looks ok when zoomed in, but it doesn't appear to point to the right location at all after you zoom out a little.

I'm loading in the elements using KmlReader.Read(Stream) and adding them to an InformationLayer.  Is this a known problem with either Google Earth or RadMap?

Thanks,

Kyle
Kyle
Top achievements
Rank 1
 answered on 21 Aug 2012
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?