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!!!!!
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.
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";
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?
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?
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
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?
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
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.