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
Hello,
I am creating a parent-child grid. The child columns need to be excatly under the columns of the parent
as they visually share the same columns.
To support this feature, I need to have a column's width on the child resize as the user resises a parent column.
I tried using a bind on the child template as shown below
Width="{Binding ElementName=RadGridView1, Path=ActualWidth}"
however it does not seem to work.
Then I tried to manually set the width of the cells on that column (including the headerCell)
however the splitter line between the column does not resize and setting it manually does not seem to do the trick.
Any ideas ?
<telerik:RadGridView Height="286" Name="RadGridView1" Width="720"
AutoGenerateColumns="false"
IsFilteringAllowed="true"
FlowDirection="RightToLeft"
ShowGroupPanel="False"
Loaded="RadGridView1_Loaded">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn UniqueName="ID"
DataMemberBinding="{Binding Path=ID}"
Header="ID"
Width="Auto" />
</telerik:RadGridView.Columns>
<telerik:RadGridView.HierarchyChildTemplate>
<DataTemplate>
<StackPanel DataContext="{x:Null}">
<telerik:RadGridView x:Name="gridDetails"
CanUserReorderColumns="False"
CanUserFreezeColumns="False"
ShowGroupPanel="False"
ColumnsWidthMode="Auto"
AutoGenerateColumns="False"
ItemsSource="{Binding}"
Loaded="OnChildGridLoaded"
ShowColumnHeaders="True">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn UniqueName="ID"
DataMemberBinding="{Binding Path=ID}"
HeaderText="ID"
Width="{Binding ElementName=RadGridView1, Path=ActualWidth}"
/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</StackPanel>
</DataTemplate>
</telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>
Thanks,
Erez
Hi,
I have problem of setting specific format for exporting data to excel.
I wanted to use culture.NumberFormat.NumberGroupSeparator to set up no seperator and export it to excel.
But when setting modified culture to ExportToXlsx as a parameter, it doesnt affect anything.
I am doing something wrong?