Hello,
I'm using RadWindow to show dialog with information. After the dialog opening my software loads data from database, while the process is in progress I would like to show a user all the dialogs, all controls and BusyIndicator. However, I didn't find a correct event to handle. The way I found which should works is to use Activated event, but it didn't helped me. Data loads firstly, and then dialog appears for a user.
The code I use:
View:
<
telerik:RadWindow
...
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
...
>
<
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:EventBinding
Command
=
"{Binding OnActivatedCommand}"
EventName
=
"Activated"
/>
</
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:RadBusyIndicator
BusyContent
=
"Loading..."
IsBusy
=
"{Binding IsBusy}"
IsIndeterminate
=
"True"
>
...
<
telerik:RadWindow
/>
ViewModel
public
class
ViewModel: ReactiveObject
{
public
ViewModel()
{
OnActivatedCommand = ReactiveCommand.Create(() =>
{
IsBusy =
true
;
Thread.Sleep(5000);
//Loading data simulation
IsBusy =
false
;
});
}
private
bool
_isBusy;
public
bool
IsBusy
{
get
{
return
_isBusy; }
set
{
this
.RaiseAndSetIfChanged(
ref
_isBusy, value); }
}
public
ReactiveCommand OnActivatedCommand {
get
;
private
set
; }
}
I would like to take the row error indicator icon and display it in a different control (not a gridview). Is this possible?
Hi,
I've created my own Filtering Control how can i change default filter control to my control?
Hello,
I have a radgridview that populates with data from a database. I also have three empty columns for entering in information. The problem I am having is that whenever I enter in information into the columns and click out of the cell, the information disappears and the gridview doesn't update accordingly. I think I have my code set up right, so I'm unsure of what my issue could be. Here is my code for my xaml:
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:DeductionInfoBSAP" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="DeductionInfoBSAP.MainWindow" mc:Ignorable="d" Title="MainWindow" Height="482" Width="764.5" Loaded="Window_Loaded"> <Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2016;component/Themes/System.Windows.xaml"/> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2016;component/Themes/Telerik.Windows.Controls.xaml"/> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2016;component/Themes/Telerik.Windows.Controls.Input.xaml"/> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2016;component/Themes/Telerik.Windows.Controls.GridView.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Window.Resources> <Grid> <Grid.Resources> <local:ViewModel x:Key="ViewModel"/> </Grid.Resources> <telerik:RadGridView x:Name="gridView" Margin="0,0,0,-454" ScrollViewer.HorizontalScrollBarVisibility="Visible" IsReadOnly="False" AlternationCount="-1" IsManipulationEnabled="True" SelectionChanged="gridView_SelectionChanged" CellEditEnded="gridView_CellEditEnded" CurrentCellChanged="gridView_CurrentCellChanged" /> </Grid></Window>
Here is my code for the gridView_CellEditEnded event which attempts to commit any edits made to those cells:
bool handle = true;
private void gridView_CellEditEnded(object sender, GridViewCellEditEndedEventArgs e)
{
if(e.EditAction == GridViewEditAction.Commit && handle)
{
handle = false;
gridView.Items.EditItem(this.gridView.CurrentItem);
gridView.Items.CommitEdit();
handle = true;
}
}
If anyone is able to help me understand what I'm doing wrong, it would be greatly appreciated. I've read every forum and thread I could on this and could not fix my issue.
I have an application that is extremely close to your ChartView Live data demo. The only real difference is that my data is being fed by the query results of a service and my chart exists in a user control, not the main window. The results are provided back to me in a KeyValue pair list, which I then loop through and parse to get the actual values I need. This in turn is added to a private collection. The chart's collection is a public collection, which is supposed to call and get the private collection. I say supposed to, because at the moment that piece does not work. I can run the code and everything work just fine with no errors, but the moment I bind the data source in the chart's XAML file, I start getting the collection modified error. If I remove the binding, everything runs perfect. I'm currently using UI for WPF R2 2017 SP1.
Is there an actual live data demo where the data is being fed by the results of a query on a timer interval that I can refer to? Everything I have seen thus far are embedded random number generators, which are not realistic in my situation. Thanks.
Hi Team,
I have a requirement to display flow with Arrow line from one coordinate to another in Rad Map. Currently, i am using ArcGisMapProvider in Topographic mode. I am not sure how to achieve this.
As this needs to be done urgently Any help will be appreciated.
Thanks in Advance.
I have a custom shape – following along with http://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/create-custom-shape
I do not see connection manipulation adorners for this item when I include it on a diagram.
I have tried to set the IsConnectorsManipulationEnabled property to true in the constructor of the custom shape.
I also tried using RadDiagramShape instead of Telerik.Windows.Controls.Diagrams.RadDiagramShapeBase as the base, but that didn't work either.
I tried to adda built in shape, and I can see the Connection Manipulation Adorner for that shape when it is selected, but not the custom shape
Any thoughts on how I can get those to appear for this example?
My scenario is that I'm binding to a string value and I don't want empty strings. By default the value is null, but if I change it to something and then go back and clear it the value is now an empty string. The OOB TextBox exhibits the same behavior.
I've implemented an IValueConverter that through Convert and ConvertBack eliminates any possibility of an empty string; however, I'm still left wondering if there's a better approach. Please enlighten me if there is.
Is it possible to have different styles inside the same cell at same time?
Something like that :
| 1234 <> 5678 |
I need to join different values in a cell but some of them may have different visual information like bold ...
Thanks,
Marcelo