Telerik Forums
UI for Silverlight Forum
1 answer
64 views

Hi, I am using <telerik:RadGridView> in my Silverlight application and I have one of the column in this GridView which shows only the time as below

<telerik:GridViewDataColumn Header="Time (PST)" DataMemberBinding="{Binding time, Mode=OneWay}" DataFormatString="{} {0:HH:mm:ss}" IsReadOnly="True" UniqueName = "UpdateTime"/>

When I open the clock while filtering on this time column, the clock is not properly aligned with the Filter control. Please see the image attached.

Also, I want to change the default style of this clock i.e. background color, border thickness.

Could anyone please help me on these tasks i.e. alignment of clock and changing default style of clock.

Sia
Telerik team
 answered on 06 Feb 2018
4 answers
82 views
Hi,

I would like to build my own member selector using an editable combobox and an autocompletion behaviour.

Is this possible?
Dilyan Traykov
Telerik team
 answered on 24 Jun 2016
5 answers
103 views
Hi,

Can you tell me how to hide the Match Case Button?

Thanks
Rich
Steve
Top achievements
Rank 1
 answered on 01 Jun 2016
1 answer
50 views
I'm trying to use the DataFilter to filter data on my ScheduleView.  I have a custom class called StaffResource that inherits from Resource, in which I have several properties such as Staff Name, Office, etc.  I only want some of these properties to show up in the Member Dropdown of the DataFilter, so I mark them with Data Annotations.  My issue is that I can't get into the base Resource class to mark those 3 properties so they don't show up in the DataFilter.  Right now the datafilter shows DisplayName, ResourceName, and ResourceType in the dropdown, which I don't want.  How would I get those to not show up?
Scott
Top achievements
Rank 1
 answered on 10 Mar 2015
3 answers
63 views
I have RadTreeview and DataFilter By the RadDataFilter how we can do this 
I am attaching one File about it...please help me urgent....
Dimitrina
Telerik team
 answered on 22 Aug 2014
8 answers
30 views
Based on some of the entries regarding the RadDataFilter; several users have asked for the functionality to be able to Filter or Categorize the list of Members in the drop-down.  If the member's is a list of a several hundred entries, it becomes difficult to find what you're looking for.  Also based on the entries in the forum I don't see any indication that telerik is working to provide this functionality.  I am one of the users that needs this, as the members list is just too long.

I have actually tried to implement my own version by adding a RadComboBox on top of the Filter, and have actually been able get the combo box bound to data.  This idea is to pick a value from the top comboBox and the members comboBox would be filtered to only show the related memebers.  However, during the EditorCreated event, the element that is passed in is a StringFilterEditor.  This has no parent and no visual parent either.  In your basic control you have a stack panel with a comboBox (the members), another comboBox (the operators), and the editor.

I have found no way to find my control, or your controls for that matter, during the EditorCreated event, even though I know my control has been added.  Why is it impossible to find the other controls?  I've even named them, and at some point, the name gets removed.

How do I find the other controls?  See my attachment for what I've been able to accomplish.  I'm 90% there, and could finish this if I could only find the other controls.

:-(
Dimitrina
Telerik team
 answered on 19 Aug 2014
3 answers
41 views
My datafilter displays the IsNull and IsNotNull operator for anything defined as a type = string.   My users would like these to show up under the operator drop down when they selected a value that is defined as a int32.   

I found this in telerik documentation and it looks like these should appear for any filter type:

When choosing the Operator, you have to make sure that the respective MemberType supports this operator. For example, you cannot use the Contains operator if your MemberType is Int32 because the data engine will crash. Here is a table of filter operators and the types that support them.
Filter Operators and Types Supporting Them


Operators                                                                                                                                                                      Types


IsEqualTo, IsNotEqualTo                                                                                                                                               All filterable types

StartsWith, EndsWith, Contains, DoesNotContain, IsContainedIn, IsNotContainedIn, IsEmpty, IsNotEmpty    String

IsLessThan, IsLessThanOrEqualTo, IsGreaterThan, IsGreaterThanOrEqualTo                                                     Numeric types, DateTime, TimeSpan, all types
                                                                                                                                                                                         that overload these .Net operators

IsNull, IsNotNull                                                                                                                                                                All filterable types
 
 I noticed that in the telerik demos for datafilter the IsNull and IsNotNull operators only show for strings.   Is it possible to add these to the operator dropdown for anything defined as a numeric value?

Thanks,

Lori
Dimitrina
Telerik team
 answered on 18 Jul 2014
2 answers
683 views
Hello!

I'm trying to enable filtering on a column which is bound to a property of a object whose structure is something like this:

Portfolios:
   - PortfolioInformationExtended:
      - String
   - PortfolioInformationExtended:
      - String
   - PortfolioInformationExtended:
      - String

PortfolioInformationExtended is a sub-class of PortfolioInformation.

I have tried to be diligent in my reading of the documentation and have implemented IComparable<PortfolioInfoExtended>, IEquatable<PortfolioInfoExtended>, IComparable<String>, IEquatable<String> in the PortfolioInfoExtended-class as per instructions here on the forum and in the documentation. 

I have successfully gotten the column to group (when I drag the header) but when I try to filter it I get the error message:
"No coercion operator is defined between types 'System.Collections.ObjectModel.ObservableCollection`1[MarketValueWeb.RateServiceReference.PortfolioInfo]' and MIQ.SilverlightExstenstion.Nordkap.PortfolioInfoExtended'.

The DataType property of this column is set to PortfolioInformation, and since the grouping works the operators seem to be working.

I am a bit confused by this and is wondering if I have missed some obvious step, or if everything seem to be in order. Any suggestions on how to proceed?

Thanks in advance!








Dimitrina
Telerik team
 answered on 07 Jul 2014
3 answers
87 views
We are using the DataFilter in unbound mode to define an expression which is exported as XML into a database for another program. We allow the expression to be reloaded (interpreted from XML to a CompositeFilterDescriptorCollection) so that it can be edited.

This works fine, however we are trying to allow 'IsNull' for all types. To do this we are using decimal? instead of decimal etc.

This works when creating and exporting to XML but when loading again we get an exception (full text at end) when calling this.radDataFilter.FilterDescriptors.AddRange(collection).

In debug mode the 2 collections (when saving, and when loading) look identical to me. I have attached a screenshot of the object, with the field names blanked out just in case :). Note that I've tried supplying a dummy decimal as shown, and also OperatorValueFilterDescriptorBase.UnsetValue.

Is there a way around this? WE are using 2013 Q2 so let me know if an upgrade will fix this. We'd rather avoid that unless necessary. Thanks.

Exception Message: The binary operator Equal is not defined for the types 'System.Nullable`1[System.Decimal]' and 'System.Object'.
Stack Trace:
   at System.Linq.Expressions.Expression.GetEqualityComparisonOperator(ExpressionType binaryType, String opName, Expression left, Expression right, Boolean liftToNull)
   at System.Linq.Expressions.Expression.Equal(Expression left, Expression right)
   at Telerik.Windows.Data.Expressions.FilterOperatorExpressionBuilderBase.GenerateIsNull(Expression left)
   at Telerik.Windows.Data.Expressions.FilterOperatorExpressionBuilderBase.CreateExpression(Expression left, Expression right)
   at Telerik.Windows.Data.Expressions.OperatorValueFilterDescriptorExpressionBuilderBase.CreateBodyExpression()
   at Telerik.Windows.Data.FilterDescriptor.CreateFilterExpression(ParameterExpression parameterExpression)
   at Telerik.Windows.Data.FilterDescriptorBase.CreateFilterExpression(Expression instance)
   at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpression()
   at Telerik.Windows.Data.Expressions.FilterExpressionBuilder.CreateFilterExpression()
   at Telerik.Windows.Data.QueryableExtensions.Where(IQueryable source, CompositeFilterDescriptorCollection filterDescriptors)
   at Telerik.Windows.Data.QueryableCollectionView.CreateView()
   at Telerik.Windows.Data.QueryableCollectionView.get_QueryableView()
   at Telerik.Windows.Data.QueryableCollectionView.CreateInternalList()
   at Telerik.Windows.Data.QueryableCollectionView.EnsureInternalList()
   at Telerik.Windows.Data.QueryableCollectionView.get_InternalList()
   at Telerik.Windows.Data.QueryableCollectionView.get_InternalCount()
   at Telerik.Windows.Data.QueryableCollectionView.get_Count()
   at Telerik.Windows.Data.DataItemCollection.get_Count()
   at Telerik.Windows.Data.DataItemCollection.OnCollectionViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.Listener`2.ReceiveWeakEvent(Object sender, TArgs args)
   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
   at Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.QueryableCollectionView.RefreshOverride()
   at Telerik.Windows.Data.QueryableCollectionView.RefreshInternal()
   at Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer()
   at Telerik.Windows.Data.QueryableCollectionView.InvalidatePagingAndRefresh()
   at Telerik.Windows.Data.QueryableCollectionView.OnFilterDescriptorsChanged()
   at Telerik.Windows.Data.QueryableCollectionView.OnFilterDescriptorsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item)
   at Telerik.Windows.Data.FilterDescriptorCollection.InsertItem(Int32 index, IFilterDescriptor item)
   at System.Collections.ObjectModel.Collection`1.Insert(Int32 index, T item)
   at System.Collections.ObjectModel.Collection`1.System.Collections.IList.Insert(Int32 index, Object value)
   at Telerik.Windows.Data.CollectionHelper.Insert(IList target, IEnumerable newItems, Int32 startingIndex, IEqualityComparer itemComparer)
   at Telerik.Windows.Data.ObservableCollectionManager.HandleCollectionChanged(IList sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.ObservableCollectionManager.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item)
   at Telerik.Windows.Data.FilterDescriptorCollection.InsertItem(Int32 index, IFilterDescriptor item)
   at System.Collections.ObjectModel.Collection`1.Add(T item)
   at Telerik.Windows.Data.RadObservableCollection`1.AddRange(IEnumerable`1 items)
Nick
Top achievements
Rank 1
 answered on 25 Feb 2014
10 answers
458 views
For a string column I can select the IsContainedIn operator.
What does the user input look like in this case? Comma seperated values?
What do I get in the FilterItem.Value? the same comma seperated list?

I can guess how it can work, but did not find a description or example of this.

Thanks in advance for any answers or pointers.

Regards,

Mari
Saurabh
Top achievements
Rank 1
 answered on 24 Feb 2014
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?