Telerik Forums
UI for WPF Forum
1 answer
196 views

Hi
   I have a small program that i've written to test a web site.  The program automatically logs into the website, changes the date, selects radiobuttons and refreshes the screen.  The problem is that I've encountered an autocomplete  RadComboBox  that I can identify, set focus and change the value.  However, it cannot get the event to fire once the "value" has been changed.
I have tried to fire an event with invokemember / setattribute - onchange, mouseup, mousedown, ontextchange, click, onclick, select item, submit etc to to no avail.

How do I get this RadComboBox to recognize a change programatically?

 

<code>

vb.net 2010
.....

For Each element As HtmlElement In m_document.GetElementsByTagName("input") 'input

If element.Name = RadComboBox Then

     Debug.Print("RadComboBoxt found")

     element.Focus()

      element.InvokeMember("click")

      element.SetAttribute("value", "00138SUPP")

    .........

</code>

 

Thanks!!!!!

Stefan Nenchev
Telerik team
 answered on 16 Feb 2017
1 answer
202 views

Hello,

I am using RadDateTimePicker (Version 2016.1.328.45) in my WPF application. The requirement is such that I need to select all text inside the DateTimePicker when the user clicks inside it. For this purpose, I am using the GotFocus event, inside which I am getting the TextBox inside the DateTimePicker by the method FindChildByType<TextBox>() and then calling SelectAll() on this TextBox.

 

This doesn't work. Any suggestions or workarounds on how to achieve this?

Thanks.

Stefan Nenchev
Telerik team
 answered on 16 Feb 2017
1 answer
104 views

I have a simple RadCartesianChart set up with binding. What I'm seeing is what appears to be yaxis labels, but these labels aren't related to the data itself. I have no idea where these extraneous numbers are coming from.

This is the xaml:

                    <telerik:RadCartesianChart x:Name="WeibullChart3" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <telerik:RadCartesianChart.HorizontalAxis>
                            <telerik:DateTimeContinuousAxis LabelFitMode="Rotate" LabelFormat="yyyy/MM/dd" LabelInterval="2"/>
                        </telerik:RadCartesianChart.HorizontalAxis>
                        <telerik:RadCartesianChart.VerticalAxis>
                            <telerik:LinearAxis ToolTip="Duane Curve" LabelFitMode="Rotate" VerticalContentAlignment="Top" HorizontalContentAlignment="Left" />
                        </telerik:RadCartesianChart.VerticalAxis>
                        <!--<telerik:RadCartesianChart.Grid>
                            <telerik:CartesianChartGrid StripLinesVisibility="None" MajorLinesVisibility="XY" BorderThickness="1,0,1,1">
                                <telerik:CartesianChartGrid.YStripeBrushes>
                                    <SolidColorBrush Color="Black" />
                                    <SolidColorBrush Color="Black" />
                                </telerik:CartesianChartGrid.YStripeBrushes>
                                <telerik:CartesianChartGrid.XStripeBrushes>
                                    <SolidColorBrush Color="Black" />
                                    <SolidColorBrush Color="Black" />
                                </telerik:CartesianChartGrid.XStripeBrushes>
                            </telerik:CartesianChartGrid>
                        </telerik:RadCartesianChart.Grid>-->
                        <telerik:RadCartesianChart.Grid>
                            <telerik:CartesianChartGrid MajorLinesVisibility="XY"/>
                        </telerik:RadCartesianChart.Grid>
                        <telerik:LineSeries x:Name="Duane1" CategoryBinding="XVal" ValueBinding="YVal" ItemsSource="{Binding Document.WeibullDuanePlot}">
                        <telerik:LineSeries.PointTemplate>
                                <DataTemplate>
                                    <Ellipse Width="2" Height="2" Fill="Black" Opacity="0" />
                                </DataTemplate>
                        </telerik:LineSeries.PointTemplate>
                        </telerik:LineSeries>
                        <telerik:LineSeries x:Name="Duane2" CategoryBinding="XVal" ValueBinding="YVal" ItemsSource="{Binding Document.WeibullAggregatePlot}">
                           <telerik:LineSeries.PointTemplate>
                                <DataTemplate>
                                    <Ellipse Width="2" Height="2" Fill="Black" Opacity="0" />
                                </DataTemplate>
                           </telerik:LineSeries.PointTemplate>
                        </telerik:LineSeries>
                        <telerik:RadCartesianChart.Behaviors>
                            <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Both"/>
                            <chartView:ChartTooltipBehavior />
                        </telerik:RadCartesianChart.Behaviors>
                    </telerik:RadCartesianChart>
                    <telerik:RadLegend Items="{Binding LegendItems, ElementName=WeibullChart3}" Height="30">
                        <telerik:RadLegend.ItemsPanel>
                            <ItemsPanelTemplate>
                                <telerik:RadWrapPanel Orientation="Horizontal" ItemWidth="120" HorizontalAlignment="Center"/>
                            </ItemsPanelTemplate>
                        </telerik:RadLegend.ItemsPanel>
                    </telerik:RadLegend>
                </StackPanel>
            </telerik:RadTabItem>

 

This is the C# code:

            (WeibullChart3.HorizontalAxis as DateTimeContinuousAxis).Maximum = maxX;
            (WeibullChart3.HorizontalAxis as DateTimeContinuousAxis).Minimum = minX;
            (WeibullChart3.HorizontalAxis as DateTimeContinuousAxis).Title = "Date";

            (WeibullChart3.VerticalAxis as LinearAxis).Maximum = maxY;
            (WeibullChart3.VerticalAxis as LinearAxis).Minimum = minY;
            //(WeibullChart3.VerticalAxis as LinearAxis).Title = type.ToString();

            Plot_Title3.Text = type.ToString() + " Duane curve";

Martin Ivanov
Telerik team
 answered on 16 Feb 2017
3 answers
232 views

I have simple xml bound to RadListBox using XmlDataProvider. Xml is simple and it looks like this:

<Views><br>  <View Caption="PARTIES" Path="/Views/PartyView.xaml" /><br>  <View Caption="CANDIDATES" Path="/Views/CandidateView.xaml" /><br>  <View Caption="CANDIDATE POSITIONS" Path="/Views/CandidatePositionView.xaml" /><br>  <View Caption="ELECTION" Path="/Views/ElectionView.xaml" /><br></Views>

Provider is set like this:

<XmlDataProvider x:Key="xdpViews" Source="/Menu/Views.xml" XPath="Views/View"/>

And RadListBox looks like this:

<telerik:RadListBox BorderThickness="0,0,2,0" x:Name="lbViews"<br>                            SelectionChanged="lbViews_SelectionChanged"<br>                            SelectedValuePath="@Path"    <br>                            DisplayMemberPath="@Caption"><br>            <telerik:RadListBox.ItemsSource><br>                <Binding Source="{StaticResource xdpViews}"/><br>            </telerik:RadListBox.ItemsSource><br>        </telerik:RadListBox>

 

While DisplayMemberPath works as intended and list box display captions, when I select item selected value is always null. Am I missing something or this is the bug in RadListBox control?

Stefan
Telerik team
 answered on 15 Feb 2017
5 answers
300 views

hi

I want a geoserver with file *.shp and files *.tiff.

Should i change sometning in *.tiff or *.shp,to display in radmap?

Is it posibble display both layer vector and raster together in radmap?

How can i configure my radmap for display this layer?

How to Connect radmap to wms server?

 

 

 

Petar Mladenov
Telerik team
 answered on 15 Feb 2017
1 answer
113 views

helllo i set up geoserver i created a few layers in epsg:4326

i can display in web browser.

What i have to do it, for display in radmap?

what option set in geoserver or radmap to display in radmap?

i use WmsTiledProvider, but i dont how set provider,what uri ?

 

please answer.thank you

Sebastian
Top achievements
Rank 1
 answered on 15 Feb 2017
1 answer
88 views
Hello,
I have an app where I am using the raddocking control and feeding it with panes using the docking factory.  When i pull one of the panes out of the docking control and put it on a second monitor the memory usage spikes 400 - 600 MB. then if i try to dock another pane into the one i pulled out it crashes with a memory exception. This occurs with only three panes open. Any thoughts about this error?
Nasko
Telerik team
 answered on 15 Feb 2017
4 answers
381 views

I've used the example explaining how to create a windows explorer-like treeview, where a collection of children can contain both directories and files but I think I need a bit of clarification.

I'm in an MVVM scenario and my model classes contain multiple collections representing the different kinds of children they can contain. For example I might have grocery store object with a collection of dairy products, another collection of meats, etc. Is it correct that my view model should merge the collections into a single observable collection of objects (or something less general if possible) and then rely on the DataType={x:Type ....} to chose the right data template?

If that is the case and I wanted to keep my collection sorted, I would have to implement a custom sorter to group the dairy and meats prior to sorting, correct? Also, this should all still work if the children themselves can be containers for multiple types?

Jason
Top achievements
Rank 1
 answered on 14 Feb 2017
4 answers
124 views

Hi,

 

i use c#/wpf RadGridView. I bound i Collection calls to my RadGridView. Here i have a RadGridViewDataColumn with a cell template checkbox.
My problem ist that i have perhaps 10 items in my collection with the same telephone-no. if i check one of these items i want to check the rest of
the items in my collection with the same no. too. Also if i uncheck one, i want to uncheck the rest to. How can i do this?

 

Thanks

Rene

Stefan Nenchev
Telerik team
 answered on 14 Feb 2017
1 answer
122 views

I have a grid view with the integer column sorted ascending by default.

At this time, for other event, I am updating this integer column and the values are getting modified in the UI correctly.

But at this case, the sorting is not getting applied correctly.

For example, By default my UI is like below

1

2

3

I have updated the row with value 2 with 5. Then my UI becomes

1

5

3

instead of 

1

3

5

 

Please let me know, how to achieve this.

Stefan Nenchev
Telerik team
 answered on 14 Feb 2017
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?