Telerik Forums
UI for WPF Forum
1 answer
124 views
Not sure where to file this bug report, but when changing the ItemsSource property of the grid we sometimes get

{System.NullReferenceException: Object reference not set to an instance of an object. 
   at Telerik.Windows.Controls.UI.DistinctFilterControl.PopulateDistinctValues() 
   at Telerik.Windows.Controls.UI.DistinctFilterControl.<DistinctFilterControl_Loaded>b__0()} 

we have IsFilteringAllowed set to False if that helps.




Many thanks,

Will Holley
Hristo Deshev
Telerik team
 answered on 10 Jul 2008
6 answers
243 views
The current SortingRequested event only fires when the field being sorted implenents IComparable (seemly making the custom sort behaviour irrelevant?). In order to work around this (we want to sort at the database) I tried subclassing GridViewDataColumn so I could override CanSort() to remove this constraint. However, CanSort is not a virtual method so this doesn't work.

Do you have any suggestions to work around this behaviour? Adding a dummy IComparable implmentation to all of our entities is not really a good solution for us.

Many thanks,

Will Holley
Will
Top achievements
Rank 1
 answered on 09 Jul 2008
5 answers
158 views
Hi Guys - congratulations on Beta 2 - it's a big step forward and seems to fix most of the issues we encountered in the first release!

Just a couple of issues that have come up for us with the new release:

 1. Is it possible to turn off the filtering feature?
 2. The autofit column algorithm does not include the header text (we would expect it to)
 3. When adding field descriptions dynamically and refreshing the data, we get:

{System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.UI.DistinctFilterControl.PopulateDistinctValues()
   at Telerik.Windows.Controls.UI.DistinctFilterControl.<DistinctFilterControl_Loaded>b__0()}

Any help with these would be much appreciated,

Will Holley
Hristo Deshev
Telerik team
 answered on 08 Jul 2008
4 answers
307 views
It would be useful to be able to bind commands to LeftMouseClick (using RadGridView.InputBindings). For example,

<UI:RadGridView.InputBindings> 
     <MouseBinding Command="{x:Static Entity:EntityCommands.EditCommand}" MouseAction="LeftDoubleClick"/> 
</UI:RadGridView.InputBindings> 


However, it appears that this is not supported, even when the fields are set to readonly.

If I change the above snippet to use MiddleClick, the command is fired.

Is this a bug or intended behaviour?

Many thanks,
 
Will Holley
Will
Top achievements
Rank 1
 answered on 07 Jul 2008
3 answers
112 views
Hi Telerik Team.

Thanks for the filtering functionality in Beta 2

2 questions

1: is it possible to switch off filtering on a specific column. i haven't been able to find a property to set on the column only on the entire grid.?

2: use of the Simple theme which is provided in your examples. I believe the easiest way to set the Theme property on the grid must be Telerik:Theming.Theme="Simple"
but "Simple" is not part of the values to choose. I have added the Reference "Telerik.Windows.Controls.UI.Simple" to the project. but still its not able to set. what am i doing wrong.



Hristo Deshev
Telerik team
 answered on 07 Jul 2008
2 answers
168 views
Hi,

I have a problem with getting the child row that is selected.

I have a grid with in the first column of the child grid a checkbox to select/deselect.  When the check changed i handle the event.  But i get the parentrow in the selected row and not the child row

How can i get the selected child row?

Little info on how i fill the childcolumn
  radGridResubmit.TableDefinition.ChildTableDefinitions[0].AutoGenerateFieldDescriptors = false;  
 
                    Telerik.Windows.Controls.UI.GridViewDataColumn desc = new Telerik.Windows.Controls.UI.GridViewDataColumn();  
                    desc.HeaderText = "";  
                    desc.UniqueName = "IsSelectedForResubmit";  
                    desc.IsAutoGenerated = true;  
 
                    desc.CellStyle = new Style();  
                     
                    desc.CellStyle.Setters.Add(new Setter(TemplateProperty, FindResource("CheckBoxColumnTemplateAction")));  
                    radGridResubmit.TableDefinition.ChildTableDefinitions[0].FieldDescriptors.Add(desc);  
 
                     
                    desc = new GridViewDataColumn();  
                    desc.IsReadOnly = true;  
                    desc.HeaderText = "ActionName";  
                    desc.UniqueName = "ActionName";  
                    desc.IsAutoGenerated = true;  
                    radGridResubmit.TableDefinition.ChildTableDefinitions[0].FieldDescriptors.Add(desc);  
                    

Regards
NS
Top achievements
Rank 1
 answered on 07 Jul 2008
1 answer
97 views
Well done guys.

Is there any RadControls WPF Beta2 Documentation ?

BTW, can you give us a Roadmap for WPF & SL?

RibbonControl (WPF and SL)?

Greetings,
Michael
Nikolay
Telerik team
 answered on 07 Jul 2008
1 answer
360 views
Is there any way to increment as integers instead of two position decimal?
P.Petrelli
Top achievements
Rank 1
 answered on 05 Jul 2008
1 answer
102 views
It worries me that there is not going to be a feature complete beta of these controls - beta 1 and 2 are quite buggy for us and seem to be in some state of flux - . If features are still being added, can we expect the quality to improve?

For future releases, would you consider producing public nightly builds (similar to the way JetBrains do with Resharper) and also making debug symbols available to help with diagnosis of problems?

Kind regards,

Will Holley


Milan
Telerik team
 answered on 04 Jul 2008
3 answers
105 views
Hi,

How can i set the background of a row to a color based on the value of one of its columns?

I have written a convert that changes the statusid to a brush but i don't know how to apply it to the row

I tried this but that didn't work
 
 
 
<Grid.Resources> 
            <Style TargetType="{x:Type Telerik:GridViewRow}">  
                <Setter Property="Background">  
                    <Setter.Value> 
                        <SolidColorBrush Color="{Binding Path=StatusId, Converter={StaticResource ConvertDocumentColor}}"></SolidColorBrush> 
                    </Setter.Value> 
                </Setter> 
            </Style> 
        </Grid.Resources> 

Regards,

Bram
NS
Top achievements
Rank 1
 answered on 03 Jul 2008
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?