Telerik Forums
UI for WPF Forum
1 answer
113 views

Hi,

I've created my own Filtering Control how can i change default filter control to my control?

 

Stefan
Telerik team
 answered on 17 Aug 2017
1 answer
331 views

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.

Dinko | Tech Support Engineer
Telerik team
 answered on 17 Aug 2017
1 answer
272 views

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.

Martin Ivanov
Telerik team
 answered on 16 Aug 2017
1 answer
308 views

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.

Dilyan Traykov
Telerik team
 answered on 16 Aug 2017
25 answers
756 views
Support Team,

We just started using your GanttView and we have a requirement to have multiple events or "GanttTasks" on a single line. It appears that whenever I add a GanttTask or child to a GanttTask, it always creates a new line item for the task. Is there anyway to represent multiple events or tasks on a single line?

Kind Regards,
Maurice
Polya
Telerik team
 answered on 16 Aug 2017
1 answer
252 views

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?

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Aug 2017
1 answer
379 views

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.

Stefan
Telerik team
 answered on 16 Aug 2017
1 answer
72 views

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

Dilyan Traykov
Telerik team
 answered on 16 Aug 2017
5 answers
2.0K+ views

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

Stefan
Telerik team
 answered on 16 Aug 2017
1 answer
353 views

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?

Dilyan Traykov
Telerik team
 answered on 16 Aug 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?