Telerik Forums
UI for WPF Forum
2 answers
100 views

Hi,

 

I am using RadWindow.Alert and RadWindow.Confirm. I am getting a strange box around the text . I have attached the files.

 

Martin
Telerik team
 answered on 21 Sep 2016
2 answers
191 views

Hi,

I am quite new to Telerik and I am trying to set up automated tests for our WPF application. Whenever I try to use 'bar.User.TypeText("SomeText", 200)' to a framework element (found using 'FrameworkElement bar= foo.MainWindow.Find.ByAutomationId("New_Proj_Text_Box");') it sends a couple of letters to the TextBox, but then it cuts stops sending text.

 

I think that this may be something to do with the window loading as the TextBox is in a Modal window and when you open the modal window mmanually (rather than using the link via Telerik) SendText sends all the text to to the TextBox.

 

I have tried to introduce an "ensureClickable", changed the times for the "keyPressTime" and changing the clickFirst argument (trying both True and False). Unfortunately none of these seem to work.

 

I have placed my test below. Unfortunately there are no helpful errors in the logs.

 

Any help on this would be hugely appreciated.

 

Many thanks in advance,

 

David

 

 

using ArtOfTest.WebAii.Controls.Xaml.Wpf;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.TestTemplates;
using ArtOfTest.WebAii.Wpf;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTestProject2
{
    /// <summary>
    /// Summary description for TelerikNUnitTest1
    /// </summary>
    [TestClass]
    public class TelerikNUnitTest1 : BaseWpfTest
    {

        private TestContext testContextInstance;

        public WpfApplication foo { get; private set; }

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>

        [TestMethod]
        public void Open_Application()
        {
            
            Settings mySettings = new Settings();
            mySettings.ClientReadyTimeout = 60000;

            /// Use my Settings object to construct my Manager object
            Manager myManager = new Manager(mySettings);
            myManager.Start();

            // Launch the application instance from its location in file system
            WpfApplication fubar = myManager.LaunchNewApplication(@"C:\Users\e-ddcr\Documents\appLocation\Fubar.Startup.exe");

            /// Validate the title of the homepage
            ArtOfTest.Common.UnitTesting.Assert.IsTrue(fubar.MainWindow.Window.Caption.Equals("MainWindow"));
            //TestContext.WriteLine("Validated window");

            ///Click the new project button
            FrameworkElement newProjButton = fubar.MainWindow.Find.ByTextContent("New project...");
            newProjButton.User.Click();

            ///Send keys to the project name textbox
            FrameworkElement projNameTextBox = fubar.MainWindow.Find.ByAutomationId("New_Proj_Text_Box");
            projNameTextBox.EnsureClickable();
            projNameTextBox.User.Click();
            projNameTextBox.User.TypeText("PokeMoon", 100);
                 
        }

    }

}

Georgi
Telerik team
 answered on 21 Sep 2016
2 answers
124 views

Hello.

I discovered that styling empty table cells works while editing, but the formatting is lost when the RadDocument is converted to RTF format and back again.       
I have created Test() method to demonstrate a simple conversion that does not work.

in EditControl.xaml.cs

private void Test()
{
      var provider = new RtfFormatProvider();
          var rtfString = provider.Export(_radRichTextBox.Document);     
          _radRichTextBox.Document = provider.Import(rtfString);
}

in EditControl.xaml

<telerik:RadRichTextBox x:Name="_radRichTextBox" />

 

Attached is a 3 step process outlining how this is breaking for me. Thanks for the help.

Nathanial
Top achievements
Rank 1
 answered on 21 Sep 2016
3 answers
253 views

Hi,

i need to create PDF bookmarks programmatically and using RadDocument model api instead of RadDocumentEditor. 

My code looks like this:

// Create section with header, footer and two paragraphs.     
Section section = new Section();
 
// Create bookmark.
var titleSpan = new Span(title);
BookmarkRangeStart start = new BookmarkRangeStart(title);
BookmarkRangeEnd end = new BookmarkRangeEnd();
start.End = end;
end.Start = start;
 
Paragraph headingParagraph = new Paragraph() { StyleName = "Heading1" };
 
// Insert inlines.
headingParagraph.Inlines.Add(start);
headingParagraph.Inlines.Add(titleSpan);
headingParagraph.Inlines.Add(end);
 
section.Blocks.Add(headingParagraph);
 
this.radDocument.Sections.Add(section );

 

but when I open document in AdobeReader there aren't any bookmarks.

What's wrong with this code?

Thank you.

Tanya
Telerik team
 answered on 21 Sep 2016
6 answers
284 views

I'm trying to use RadGridView with VirtualQueryableCollectionView  to display data from database.

The data is very large and it's growing in real time, let's say there are more than 25 rows will be added into database every second. And I want to refresh RadGridView to show real time data.

 

How can I do that? Is there any example?

 

Thanks very much!

 

 

Stefan Nenchev
Telerik team
 answered on 21 Sep 2016
3 answers
263 views

Hi, 

   Iam new to RadPropertyGrid. I want to use Custom Editor which can be used from propertygrid as modal dialog similar to UITYPE editor inherited class in Winforms or  "ITypeEditor" in Xceed WPF related property Grid.

Is there any similar support from telerik side for similar requirement??

 

Regards,

Nagasree.

Dilyan Traykov
Telerik team
 answered on 21 Sep 2016
1 answer
147 views
How does one respond to the user (not a binding or background setting of the rating) setting a rating? I can't find any event that fires ONLY when the user selects a rating and I would have assumed this is a pretty standard requirement.
Petar Marchev
Telerik team
 answered on 21 Sep 2016
1 answer
109 views

i m developing a window application. In which i m using the map control of WPF control, i want to access the map which is deployed in my own map server(i m using openstreetmap) and my system is connected with that server via LAN. 

How can i add this Map in the map control.Please help

 

Thanks for advance.

Petar Mladenov
Telerik team
 answered on 21 Sep 2016
6 answers
182 views

I'm just update to 2016 R3 and apply Office2016 Theme,

when I run project it's all ok, but in design mode I don't see controls.

WE a passed from Office2013 theme to Office2016 them, I have to change something?

Stef
Telerik team
 answered on 20 Sep 2016
1 answer
223 views

Hello,

I have a scenario with RadGridView where I want to display the value of a continuously changing data point (eg DateTime.Now) in one of the columns. I want the UI to be refreshed with the latest value periodically (once every second for example).

My current solution is to periodically iterate through each item the ItemsSource and fire INotifyPropertyChanged event for the particular property that requires refresh. This works but there is a noticeable performance impact on the UI thread when the values are updated.

My question is, does RadGridView have any support for updating an entire column on a periodic timer, rather than me having to iterate through all the rows and notify manually? If not can such support be added in the future?

Stefan
Telerik team
 answered on 20 Sep 2016
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?