Hi
Does OpenMaps provider have option that you type name of city in textbox and then you get pointed to that city.
Something like search. I saw in you examples that bing have that option .
what about openMaps ??
thanks

Hi,
I have the following definition of the control:
< :RadDocking PanesSource="{Binding panes}"...
Panes have of items which order is different than in the UI. I need to get the first pane in order to mark it in code as selected. How can I do it?
Hi Telerik,
I’m using RadGridView and RadDataPager. Items bound to RadDataPager Source. RadGridView’s ItemsSource is the PagedSource of RadDataPager. I’m using dynamic page size concept. For this I have styled the DataPagerPresenter. The RadComboBox is used inside the style for selecting the Page Size. A converter is used to set the ItemsSource of the RadComboBox.
The problem I’m facing here is, while initializing the RadDataPager the converter gets fired and the initial Page size (10) is set as ItemsSource. After the items are fetched from the service, The items are set to Source of the RadDataPager. Now, the converter is not getting fired to update the page size itemssource as it is having 1000 records. I want to display 10, 20, 30, 40, 50 as ItemsSource of RadComboBox.
How to update the ItemsSource of RadComboBox when items are set?
<ControlTemplate x:Key="DataPagerPresenterTemplate" TargetType="dataPager:DataPagerPresenter">
...
...
...
<tk:RadComboBox x:Name="pageSizeOptionComboBox" Grid.Column="1"
ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource pageSizeCountConverter}}"
SelectedValue="{Binding PageSize, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
/>
...
...
...
</ControlTemplate>
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
DataPagerPresenter presenter = value as DataPagerPresenter;
var totalCount = presenter.PageCount * presenter.PageSize;
int i = 1;
List<int>
result = new List<int>();
for (int j = 0; j
< totalCount && result.Count < 5; j++)
{
if (i % 10 == 0)
{
result.Add(i);
}
i++;
}
return result;
}
Hi..
Any ideas why I'm getting this error?
Help?
Severity Code Description Project File Line Suppression State
Error Unknown build error, 'Could not load type 'Telerik.Windows.Controls.TemplateVisualStateAttribute' from assembly 'Telerik.Windows.Controls, Version=2017.2.614.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. Line 1
Here's the code.. Where's the error
THANKS IN ADVANCE
<telerik:RadScheduler Name="radSchedule" telerik:StyleManager.Theme="{StaticResource MyThemeInstance}" AppointmentTemplate="{StaticResource AppointmentTemplateFLOM}"
TimeRulerHostStyle="{StaticResource TimeRulerHostStyleFLOM}"
TimeSlotTemplateSelector="{StaticResource TimeSlotTemplateSelector}" ViewMode="Week"
TimelineHeaderFormat="{}{0:M-d-yyyy}"
AppointmentEditing="radSchedule_AppointmentEditing"
SelectedViewStartDateChanged="radSchedule_SelectedViewStartDateChanged" AllDayAreaHeight="0" AllowDrop="False" FontSize="14" IsEnabled="True" AppointmentAdding="radSchedule_AppointmentAdding" AppointmentDeleting="radSchedule_AppointmentDeleting" AppointmentCreating="radSchedule_AppointmentCreating" IsReadOnly="False">
<telerikScheduler:RadScheduler.WeekViewDefinition>
<telerikScheduler:WeekViewDefinition DayStartTime="0:00:00" VisibleDays="7" DayEndTime="23:00:00" TimeSlotLength="0:15:0" LargeChangeInterval="7d" />
</telerikScheduler:RadScheduler.WeekViewDefinition>
<telerikScheduler:RadScheduler.DayViewDefinition>
<telerikScheduler:DayViewDefinition DayStartTime="0:00:00" DayEndTime="23:00:00" TimeSlotLength="0:15:0" />
<!--HEIGHT OF APPT -->
</telerikScheduler:RadScheduler.DayViewDefinition>
</telerik:RadScheduler>
</telerik:RadBusyIndicator>
Hi,
We have drag and drop functionality from one gridview to another and its working fine in development system. But when we install application in windows touch screen tablet then not able to perform drag and drop functionality. I am not able to even drag from one gridview. Its does not giving any error or exception.
Tablet and development machine has same OS - Windows 10.
Please provide the solution for same.
Regards,
Ajay

Hi, I'm using a RadGridView with MySQL.Data and I need to save the cell value after I edit it.
How can I create a function that is called after I edit the cell?
This is my xaml code about RadGridView:
<telerik:RadGridView x:Name="MyName" NewRowPosition="None" ItemsSource="{Binding}" CanUserInsertRows="True" AddingNewDataItem="PricingGrid_AddingNewDataItem"
ColumnWidth="*"
AutoGenerateColumns="False"
RowIndicatorVisibility="Collapsed"
ShowGroupPanel="True"
AlternationCount="2"
CanUserFreezeColumns="False"
IsReadOnly="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Area}" Header="Area (m²)" DataFormatString="n2" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding Coe}" Header="Coe" DataFormatString="n2" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>

Hi i m Ashrul.
About my question here, actually i have read all documentations before. but i cant understand it very well. so i want to ask you about these question from my mind to clear and easy for understanding.
1. What Section have Blocks? what usefull of Blocks ? is Blocks like an array or Obsevable Collection ?
2. Why paragraph have inlines? what usefull of inlines ?
3. Is Span Just contain a Text ? and just for text?
please answer with in example. so i can understand all of it.
thanks in advanced.
Hello,
Let's start by explaining what I'm trying to achieve. I basically want to bind a single RadRichTextBox to multiple different DataProviders.
In my specific situation one RtfDataProvider and one TxtDataProvider. So that the same text can be bound to two different properties.
Where one property is just plain text and the other has the applied format (rtf).
I just went ahead and just tried it, and to my surprise this actually worked perfectly fine. However when I tried to apply the same technique to a custom RadGridView.RowDetailsTemplate this quit working and only the format of the last defined DataProvider gets applied.
One could think that this isn't really that big of an issue if you just define the RtfDataProver last, because then the RadRichTextBox would always have the correct styles applied.
This train of though would be correct when you can assume that both properties will always contain the same values, which unfortunately is not the case in my specific scenario.
Here is what happened, my model (and corresponding database table) used to only have the property for plain text.
We've recently decided to add an extra property (or column in the database) to save text formatting (rtf).
The great thing about binding both of the properties to the different DataProviders was that even if the rtf-property was empty/null then the RadRichTextBox would still show the plain text and apply default formatting to it.
When using this technique in the RowDetailsTemplate then the following situations occurred:
To explain my scenario better I'll add some code to helpfully make things easier to understand. (This isn't my actual code, just a simpler version to get help sketch an idea)
1. My basic model that represents the table in our database
public class MyTaskObject : INotifyPropertyChanged{ private long _taskId; public long TaskId { get { return _taskId; } set { SetProperty(ref _taskId, value); } } private string _title; public string Title { get { return _title; } set { SetProperty(ref _title, value); } } private string _text; public string Text { get { return _text; } set { SetProperty(ref _text, value); } } private string _rtfText; public string RtfText { get { return _rtfText; } set { SetProperty(ref _rtfText, value); } } #region Observable public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged([CallerMemberName] string propName = null) { var handler = PropertyChanged; if (handler != null) { handler(this, new PropertyChangedEventArgs(propName)); } } protected bool SetProperty<T>(ref T storage, T value, [CallerMemberName] string propertyName = null) { if (Equals(storage, value)) return false; storage = value; OnPropertyChanged(propertyName); return true; } #endregion }
2. The first scenario where binding the 2 properties to different DataProviders and a single RadRichTextBox works perfectly as desired.
2.1 This is the Xaml of the view: it's a simple user control that allows the user to search a the database for a specific "task", load it and edit before saving it.
So imagine there to be a buttons to look for "tasks" and commit or discard the changes.
There are also some textboxes to edit the edit the "Title" property for example, followed by the following:
<telerik:RtfDataProvider x:Name="TaskRtfProvider" Grid.Row="1" Grid.Column="0" RichTextBox="{Binding ElementName=TaskEditor}" SetupDocument="DataProviderBase_OnSetupDocument" Rtf="{Binding SelectedTask.RtfText, Mode=TwoWay, UpdateSourceTrigger=Explicit}" /><telerik:TxtDataProvider x:Name="TaskTxtProvider" Grid.Row="1" Grid.Column="0" RichTextBox="{Binding ElementName=TaskEditor}" SetupDocument="DataProviderBase_OnSetupDocument" Text="{Binding SelectedTask.Text, Mode=TwoWay, UpdateSourceTrigger=Explicit}" /><telerik:RadRichTextBox Grid.Row="1" Grid.Column="0" x:Name="TaskEditor" Margin="5,0" IsImageMiniToolBarEnabled="True" IsSpellCheckingEnabled="False" Padding="4,2" FontSize="11pt" FontFamily="Calibri" LayoutMode="Flow" DocumentInheritsDefaultStyleSettings="True"/>The UpdateSourceTrigger is Explicit because I use changed tracking and only wish to update the database when the user explicitly says to be clicking a button.
Because if I don't do it this way, and the user loads a task where the "RtfText" property is empty, then immediately after loading this will have a value defined by the default formatting of the RadRichTextBox.
In this first scenario these bindings actually work as they're supposed to.
2.2 The implementation of the SetupDocument-event, this is used to apply some basic formatting (mainly to remove excessive spacing between lines)
private void DataProviderBase_OnSetupDocument(object sender, SetupDocumentEventArgs e){ //var test = sender; if (e.Document == null) return; e.Document.ParagraphDefaultSpacingAfter = 0;}While debugging I've noticed that the second defined DataProvider (in this example the "TaskTxtProvider") does always trigger this event, only when the first DataProvider is null does this event get triggered twice.
Which is exactly what makes this scenario work because this way the RadRichTextBox shows the formatted text if there is any, and else applies the default formatting to the plain text.
This is of course the reason for defining the RtfDataProvider ("TaskRtfProvider") first.
3. The second scenario is where this stops working, and where I tried to place a RadRichTextBox into the rows of a RadGridView.
In this scenario the RadRichTextBox is purely used for displaying the data, not editing.

Hi,
I want to cancel the drag start of a node in treeView. I have seen this link for cancelling drag start. But I couldn't find a way to do it in MVVM. In ViewModel we dont have those DragInitializeEventArgs which I can set data to null to cancel the event.
Please let me know how can I achieve this.
Regards,
Tayyaba
<Window x:Class="TelerikWpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
Title="MainWindow" Height="350" Width="525">
<Grid>
<controls:RadGridView x:Name="gridView">
</controls:RadGridView>
</Grid>
</Window>
I set Items source in .cs via:
this.gridView.ItemsSource = this.DataTable;
DataTable is declared like this:
Columns =
{
new DataColumn("Name", typeof(string)),
new DataColumn("Name2", typeof(string)),
new DataColumn("Value", typeof(string)),
}
Without grouping, I see 5 items in the GridView. I'm able to sort, filter, change column order, edit: everything a developer would expect. However, if I drag a column up to the grouping pane (to group), the entire items panel is empty. Ungrouping returns the 5 items. Basically grouping is just seeming to not work at all. From the Live Visual tree, there are GridViewGroupRows, but they are empty...no content. Live Property explorer of the GridViewGroupRow shows there are supposed to be items (4) in it.
I'm using 4.7.1 .NET and C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2018\Binaries\WPF45\Telerik.Windows.Controls.GridView.dll (which claims 2018.1.220.45).