Telerik Forums
UI for WPF Forum
2 answers
169 views
Is there a limit to the number of FilterDescriptors that can be added to the FilterCollection? I seem to be receiveing a StackOverflowException in System.Core.dll if i try to add a significant number.

I need to limit the records in my Grid based upon specific ID numbers, so I am trying to add a filter desciptor for each ID to have it show only those records. My Grid has about 53,000 records, and in one example, I have 17,151 records that I need to display. How can I handle this? It works if i don't have a large number of results (i'm unsure of what the record limit before i get the error is)

I am just declaring a filter descriptor like this:
Dim filterDescriptor As New FilterDescriptor("ID", FilterOperator.IsEqualTo, id)
And then adding it to the collection
Nick Anderson
Top achievements
Rank 1
 answered on 09 Jan 2012
2 answers
134 views
Hello,

Is it possible to filter only the null values of a specific Column in GridView?

Thanks
Fanis
Top achievements
Rank 1
 answered on 09 Jan 2012
5 answers
486 views
hello Telerik,
I'm trying to define a style for a single row... I wish to have a radbusyindicator surrounding each row (i've got an even that takes some time then update a field on the current row)

what sphould I put for template as gridviewrow? should I dfine each column and how?
thanks
Paolo
Vanya Pavlova
Telerik team
 answered on 09 Jan 2012
1 answer
230 views
Hi all,

I'm working on RadScheduleView to resemble a Month Calendar, and the only option is to use Month View Definition.
In my applicaiton, users only have Appointments on working days (Mon to Fri) and the screen space of Sat/Sun empty slots on Month View will be wasted.

Question (1):
I read my posts in this Forum and found out hiding Saturday and Sunday in Month view is not supported by RadScheduleView.
Then I try to find a work-around solution to set Styles of TimeRulerMonthViewItem and TimeRulerMonthViewGroupItem . This is what I have done, setting Visibility property binding to a convert to return Collapsed for Sat and Sun:
<telerik:OrientedTimeRulerItemStyleSelector x:Key="TimeRulerItemStyleSelector"
                                                MonthViewGroupStyle="{StaticResource timeRulerMonthViewGroupItemStyle}">        
        <telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle>
            <Style TargetType="local:TimeRulerMonthViewItem">
                <Setter Property="Background" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}" />
                <Setter Property="Visibility" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateCollapsedConverter}}" />                
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="local:TimeRulerMonthViewItem">
                            <Border Background="{TemplateBinding Background}" 
                                    BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=currentDateCalendarDateColorConverter}}" 
                                    BorderThickness="2" >
                                <Grid Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}">
                                    <telerik:RadButton Padding="0" VerticalAlignment="Top" Height="22" Command="local:RadScheduleViewCommands.SetDayViewMode" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}"
                                                       Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=plainCalendarDateColorConverter}}"
                                                       Style="{StaticResource ResourceKey=GoToDayButtonStyle}">                                        
                                        <ContentPresenter Margin="{TemplateBinding Padding}" />                                        
                                    </telerik:RadButton>
                                    <telerik:RadToggleButton Visibility="{Binding ExpandButtonVisibility}" IsChecked="{Binding IsExpanded, Mode=TwoWay}" HorizontalAlignment="Right" VerticalAlignment="Bottom"
                                                             Content="More..." FontSize="9" />
                                </Grid>
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle>        
    </telerik:OrientedTimeRulerItemStyleSelector>

And I set the Border visibility property as well with the same binding and converter. The outcome of the ScheduleView is showing empty slots but Sat/Sun are still there and Appointments for Sat/Sun on empty slots.
Is there any thought on how to actually hide and making the slot collapsed?

Question 2:
Is there any way to set the width and height of the slot in Month View?
I had customized Appointment template which shows at least three lines of information for an Appointment. And I don't want the user to always click Expand button to see all the details. Is there any way to always show "Expanded" slot in Month View?

Many many thanks!

Frankie
Dani
Telerik team
 answered on 09 Jan 2012
1 answer
94 views
I would like to be able to change the background color of the Column Headers of a GridView when the Grid has any items (rows) and stop it when there no items (rows). I would really like to make it flash a new background color but I will settle for just being able to change the background color of the GridView Column Headers when it has items (rows). Is this possible? If so can you provide an example?

I am currently using version 2011.2.712.35.

Thanks,

Billy Jacobs
Vanya Pavlova
Telerik team
 answered on 09 Jan 2012
2 answers
116 views
I have recently been attempting to plot a series of data points on a Cartesian ChartView where each of the data points has a DateTime component.  The series of data points is spaced pretty regularly at one-minute intervals.  However, there are some gaps where there are no data points, and I didn't want the ChartView to leave gaps in these cases, so this meant that I needed a categorical axis for the horizontal axis; a DateTimeCategoricalAxis seemed to be a good choice for this.  The good news is that after several failed attempts at getting the data points to show up where I expected them, I got it to work by setting the DateTimeComponent property of the DateTimeCategoricalAxis to "Ticks".  However, this is the ONLY way that I've gotten it to work.  And something about this seemed a bit non-intuitive...

It would seem to me that the default behavior when plotting data points (in which each references a DateTime which includes a time component) against an axis called a "DateTimeCategoricalAxis" would be that BOTH the date and time components would be considered and that the date AND time TOGETHER would be treated as a distinct value.  But this isn't the way it works by default.  Instead, it seems that the default behavior on this axis is for the Date component of the DateTime value to be used for grouping values, and the time portion is effectively ignored.  I understand that some assumption has to be made, but this doesn't seem to be the conservative assumption.  In light of this behavior, this axis might be more fittingly named a DateCategoricalAxis?  In the example above, I thought that specifying "Minute" for the DateTimeComponent would group things by minute -- effectively giving me no more than one data point per category, but instead, I got multiple data points spread across 60 minutes, because my data spanned multiple hours (and multiple days).  Request:  Would you please consider changing the default behavior of the DateTimeCategoricalAxis to group by "Ticks", so that the Date AND Time components of a DateTime are considered?


I also tried out some of the other options for the DateTimeComponent of this axis.  Before using them, I thought I understood what they would probably do.  For example, I figured that using the Hour option would cause all data points which fell within the same hour of time (within the context of all larger units of time) to be grouped together (same X coordinate).  But after testing them I see I was wrong.  Instead of considering the unit of time in the context of larger units of time, the options consider a particular component of a datetime in isolation.  For example, there are only 24 hours in a day, so using the "Hour" option of the DateTimeComponent will only cause up to 24 categories to be created, and all data points will be plotted in one of those categories.  In all honesty, I can see the usefulness of such a feature, and now that I've used it it makes sense to me.  But I honestly think that it would be equally useful -- if not more so -- to support grouping of data points [on a DateTimeCategoricalAxis] by a contextualized date time component -- perhaps via a new boolean property that indicates that the DateTimeComponent property value is contextualized [to all larger units of time].  Request:  Could you please support some kind of contextualized date time component (as explained above)?

So, there are my observations/thoughts/suggestions/requests as it pertains to the DateTimeCategoricalAxis.  Ultimately, I'm glad that setting the DateTimeComponent to "Ticks" gives me what I was after, but I'd also be glad to hear that you might consider the things I've mentioned here.

Paul
Paul
Top achievements
Rank 1
 answered on 06 Jan 2012
3 answers
1.0K+ views
Hi...
Can u tell me way where i can change the Date format of the control in XAML. I m following MVVM pattern. Is dere any inbuilt property by which we can directly change d date format...???
Plz reply ASAP.
Thanx n regards
Shehnaz Khan.
Ivo
Telerik team
 answered on 06 Jan 2012
3 answers
162 views
Hi,

I have been working on a project that uses RadMap with Bing provider for few months and everything seemed fine but recently I am seeing a delay of 13 seconds.The delay will not occur if I remove the code of provider assignment.

BingMapProvider provider = new BingMapProvider(MapMode.Road, false, "key");
radMap1.ZoomLevel = 12;
radMap1.Provider = provider;//delay will not occur if I remove this line
radMap1.Center = new Location(24.487987518310547, 54.483178253173828);

<telerik:RadMap Name="radMap1"  ZoomLevel="12" HorizontalAlignment="Stretch" Margin="0"  VerticalAlignment="Stretch"
            MouseDragMode="None" MouseClickMode="None"  MapMouseClick="radMap_MapMouseClick" MouseLeftButtonDown="radMap1_MouseLeftButtonDown" MouseLeftButtonUp="radMap1_MouseLeftButtonUp" MouseMove="radMap1_MouseMove"></telerik:RadMap>

Thanks

Madani
Evgenia
Telerik team
 answered on 06 Jan 2012
1 answer
99 views
Hi, 

I am using telerik rad gridview to display customers. My customer object have another class as a property. 

So the object looks like: 

public class Product
{
public int ProductID {get; set;}
public decimal Amount {get; set;}
public string ProductName {get; set;}
}
 
public class Customer
{
public int CustomerID {get; set;}
public Product CurrentProduct {get; set;}
public string FirstName {get; set;}
public string LastName {get; set;}
}
 
Now I binding a list of customers to the grid and displaying Product Info too. But how do I do an aggregate function? Normally I would put Amount as the source field for the function.
Dimitrina
Telerik team
 answered on 06 Jan 2012
1 answer
112 views
When trying to recreate the demo using my own data model, I'm getting an error when I try to use the ObjectContext in xaml.

How do you get around the issue of the visual studio designer trying to instantiate an object context at design time?
Rossen Hristov
Telerik team
 answered on 06 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?