Telerik Forums
UI for WPF Forum
2 answers
130 views
Hi,

Can we implement the spellChecker on Radbutton using Command binding? this there a sample implementation for this?

Regards,
Howell
Andrew
Telerik team
 answered on 01 Feb 2012
1 answer
151 views
Hi, I embedded a RadRibbonView  in a RadRibbonWindow. I expected the Application Icon to look as in Img.1 




But I get it as below - icon before the tabs.



Can someone please suggest me what I should be doing to achieve the Round Shaped Application icon as in IMG 1 ?

Thanks,
Nav

Petar Mladenov
Telerik team
 answered on 01 Feb 2012
2 answers
185 views
I want to use RadGridView to display missing relations in a database using the Entity framework. I have defined several columns with path bindings to subtables. (eg. Table1.ID) When the datagrid is loading such a column with a 1 to 1 relation the entity framework throws an exception if the related row does not exist in the database, but the RadGridView does not display this error. (I tried several binding settings and manually added an ExceptionValidationRule and set the ValidateOnTargedUpdated = true, but the errors don't show up in the datagrid) The ultimate solution would be if I could display an error message like "Related row in Table XXX and ID 123 not found" in the tooltip of the grid cell.

The only way the error gets displayed is to write a validator which e.g. checks for null values and then to enter the cell edit mode. Then the error gets displayed. But I never got the entity framework exception to display in the datagrid.

Another approach is to write a DataTemplate for every column which triggers the Validation.HasError event. Using this method the errors get displayed when the column is bound, but this does also not work for entity framework exceptions and needs a lot of xaml code. What is the best solution to get a good error message without to write a lot of xaml code?
Yordanka
Telerik team
 answered on 01 Feb 2012
1 answer
177 views
Hi,

I use a RadDataPager bound to a Linq2Sql table.
This works fine, but since I have a lot of data it takes about 2 seconds to change a page.

Here my Problem starts.
I want to indicate the loading by showing a busy indicator.

This works (without any coding) when I use async dataloading on the RadGridView.
But then a sort / filter breaks the application.
I found some other topic here that this is "normal".

I also tried to handle PageIndexChangeing and DataLoaded setting IsBusy on the Grid.
But it doesn't work (UI is not updated while loading).

So is there a way to achieve what I want since Async Loading is not an Option on the Grid.

Thanks
Manfred
Yordanka
Telerik team
 answered on 01 Feb 2012
2 answers
193 views
I would like to bind a data trigger in a style trigger based on a row number. I need to suppress a value in a cell but only for the first row.

I'm not sure what property to bind to to get the row index or something similar.

Any help would be greatly appreciated.

Thanks,

John
John
Top achievements
Rank 1
 answered on 01 Feb 2012
4 answers
321 views
Hi,

when I set my RadWindow WindowState property to Maximized, at startup, my RadWindow appear over my taskbar. Is it possible to have the same behavior as the standard Window class.

Thank's
Boyan
Telerik team
 answered on 01 Feb 2012
0 answers
87 views

I am not able to get the rows having all the columns. Only the columns which are visible using scrollbar are coming as cells of that row.

I have used below given code.

var
rows = gridView.ChildrenOfType<GridViewRow>();

 

 

 

foreach (var row in rows)

 

{

 

 

foreach (var cell in row.Cells)

 

{

 

 

foreach (var selectedItem in gridView.SelectedItems)

 

 

 

{

 

 

 

var row = (gridView.ItemContainerGenerator.ContainerFromIndex(1) as GridViewRow);

 

 

 

 foreach (var cell in row.Cells)


Please suggest me how to get full row having all the columns from selected items.
I have enabled column & row virtulization.

 

Richa
Top achievements
Rank 1
 asked on 01 Feb 2012
0 answers
133 views

I have a custom GridView inherited from ‘RadGridView’ which is binded to generic list.

Some of the rows in the gridview is becoming readonly(Edited values are getting restored to older value when curser moved to next position) while editing(not all rows).

Please help

Custom grid view

------------

public enum EquipmentList

    {

        Unknown,

        StowList,

        DischargeList,

        RestowList,

        HandList,

        StowedList,

        ProcessList

    }

   

    public class EquipmentsGridView : RadGridView

    {

        public EquipmentList ListType { get; set; }

        private ObservableCollection<EquipmentInformation> _source;

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "By design")]

        public IList<EquipmentInformation> Source

        {

            get

            {

                return _source;

            }

            set

            {

                if (_source != null)

                {

                    _source.CollectionChanged -= new System.Collections.Specialized.NotifyCollectionChangedEventHandler(_source_CollectionChanged);

                }

                base.ItemsSource = _source = new ObservableCollection<EquipmentInformation>(value);

                _source.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(_source_CollectionChanged);

                ResetNumbers();

                ApplyBehavior();

            }

        }

        public bool IsEdited { get; set; }

        public EquipmentsGridView()

        {

            base.CellValidating += GridView_CellValidating;

            base.SelectionChanged += new EventHandler<SelectionChangeEventArgs>(EquipmentsGridView_SelectionChanged);

        }

        void EquipmentsGridView_SelectionChanged(object sender, SelectionChangeEventArgs e)

        {

            if (this.Items.IsAddingNew || this.Items.IsEditingItem)

            {

                this.CommitEdit();

            }

        }

        private void ApplyBehavior()

        {

            foreach (var column in base.Columns)

            {

                if (column is GridViewBoundColumnBase)

                {

                    column.ShowDistinctFilters = false;                

                }

            }

        }

        void EquipmentsGridView_CellValidated(object sender, GridViewCellValidatedEventArgs e)

        {

            if (e.Cell.ParentRow.Item != null)

            {

                if (((EquipmentInformation)e.Cell.ParentRow.Item).IsCanceled)

                {

                    e.Cell.Foreground = Brushes.White;

                    e.Cell.Background = Brushes.Red;

                    e.Cell.FontStyle = FontStyles.Oblique;

                }

                else

                {

                    e.Cell.Foreground = Brushes.Black;

                    e.Cell.Background = Brushes.White;

                    e.Cell.FontStyle = FontStyles.Normal;

                }

            }

        }

        void _source_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)

        {

            if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add ||

                e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Remove ||

                e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Reset)

            {

                ResetNumbers();

                IsEdited = true;

            }

        }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Justification = "Editing need to be in lowercase")]

        private void GridView_CellValidating(object sender, Telerik.Windows.Controls.GridViewCellValidatingEventArgs e)

        {

            if (e.OldValue != e.NewValue)

            {

                ((System.Windows.Controls.TextBox)(e.EditingElement)).Text = e.NewValue.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture);

                IsEdited = true;

            }

        }

    }

Geo
Top achievements
Rank 1
 asked on 01 Feb 2012
1 answer
196 views
Hello,

Is there a way to remove the title bar on the RadRibbonView, or hide it?  Or at least some way to not have '- My Application' in the title bar text?

Thank you
Petar Mladenov
Telerik team
 answered on 01 Feb 2012
1 answer
90 views
I have a Usercontrol that I use as my cell's DataTemplate (actually I stick it directly into my controltemplate, but shouldn't make a difference)

I have a DependencyProperty that is bound to the Value of the cell, and the changed-listener looks like this

public static void TextChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            double dub;
            if (e.OldValue != null && e.NewValue != null && (e.NewValue is double || (e.NewValue is string && double.TryParse(e.NewValue.ToString(), out dub))))
            {  
                var control = o as ValueCellPresenter;
 
                if (control.IsLoaded)
                {
                    ((Storyboard)control.Resources["CellFlash"]).Begin();
                }
 
            }
             
        }

however, this animation fires when I am scrolling, because of UI virtualization.

I use this animation to flash the cell when the value changes.  Is there a better way to do this to avoid getting the animation fired when UI virtualization is in effect?  When I turn the virtualization off the problem goes away.
Vlad
Telerik team
 answered on 01 Feb 2012
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
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?