Telerik Forums
UI for WPF Forum
0 answers
64 views
If you go into windows and and set your display size to 125%, the grid object does not adjust the scrollbar to account for the larger items. This prevents you from scrolling to items that are at the bottom of the list.

(turns out we're using treelistview, not grid view...)
Eric
Top achievements
Rank 1
 asked on 22 Mar 2012
5 answers
2.5K+ views
The radgridview has an event for MouseDoubleClick, but is there a way you can catch a single click?
I need to hook on to the "click event" when the selected row in the grid is clicked(once)
Antonio Jesús
Top achievements
Rank 1
 answered on 21 Mar 2012
1 answer
134 views
When using the If function we were unable to have a results of differing types.  For example
IF(Expression, FieldOfTypeDecimal, 0) will not work

The ExpressionEditor does not understand numeric constants
IF(Expression, FieldOfTypeDecimal, 0M) will not work.

Is there a way to work around this?

Dimitrina
Telerik team
 answered on 21 Mar 2012
3 answers
99 views
I'm attempting to upgrade my project to Q1 2012.  In my project, I want to select the row in the grid when the row details visiblity is changed.  I accomplished this with the following code
 

 

 

private void grdCustomer_RowDetailsVisibilityChanged(object sender, GridViewRowDetailsEventArgs e)

 

{

e.Row.CommitEdit();

e.Row.IsSelected =

 

true;

 

}

This works with Q1 2011, but with Q1 2012, I get the following error

"'NavigatorIndicatorBackground' name cannot be found in the name scope of 'System.Windows.Controls.Border'."

Is there something I need to change to make this work with Q1 2012, or is there a bug?  At this point, I will have to stay with Q1 2011 unless I can make this work with 2012.

jholt
Top achievements
Rank 1
 answered on 21 Mar 2012
6 answers
376 views
Hi.

I try to create a custom aggregate function.

I get this exception.
"No generic method 'SimCandidateCount' on type 'GenerateFieldEmulator.SimCandidateCounter' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic."

Can you either spot what is wrong or tell me how to find out what the failing overload resolution information is?

xaml:

 

 

 

<telerik:GridViewColumn.AggregateFunctions>

 

 

 

 

<local:SimCount SourceField="SimPossible" SourceFieldType="{x:Type System:Boolean}" Caption="Candidate Modules : " />

 

 

 

 

</telerik:GridViewColumn.AggregateFunctions>


The SimCount class is here.

 

public

 

 

class SimCount : Telerik.Windows.Data.EnumerableSelectorAggregateFunction

 

 

 

 

 

{

 

 

    protected override string AggregateMethodName

 

    {

 

 

        get { return "SimCandidateCount"; }

 

    }

 

 

    protected override Type ExtensionMethodsType

 

    {

 

 

        get

 

 

 

 

 

        {

 

 

            return typeof(SimCandidateCounter);

 

        }

    }

 

}

 

 

public static class SimCandidateCounter

 

 

 

 

 

{

 

 

    public static int SimCandidateCount<TSource>(IEnumerable<TSource> source,Func<TSource,bool> selector )

 

    {

 

 

        return source.Select(selector).Count(b => b);

 

    }

}

Tormod
Top achievements
Rank 1
 answered on 21 Mar 2012
1 answer
112 views
Hello everyone

I have a RadGridView whose DataLoadMode is set to Asynchronous, and I'm experiencing some trouble with sorting.

In my case the grid is filled with approx 14,000 elements, that can be represented by trips made by clients. Each client has a number, and has made several trips. The columns are, among others, the client number, and the destination of the trip.

Here are the steps that reproduce my problem :
1. I first select only one client number in the standard filtering from the client number column. The display is refreshed and only the trips of the selected client are displayed (~ 4-5 elements)
2. Now I click on header of destination column, normally causing the alphabetical sorting with respect to destination. But instead of this behaviour, the grid refreshes and no elements are shown.

I have put some breakpoints, and found out that the display is not in cause, as the grid.Items is simply set with an emply collection when I click on the column header.

The surprising thing is that it always worked correctly before, when I was using synchronous data load mode.

Am I the only one experiencing trouble with this feature ?

Thank's in advance for your time

Kind regards,
Olivier
Vlad
Telerik team
 answered on 21 Mar 2012
3 answers
316 views
Hi,

I am creating a booking system and need to disable certain dates in the RadDatePicker if the products are not available on that day.
Is this possible with a RadDateTimePicker? I have read all the documentation and and the selectable range looks like it would work but I need disable multiple single days.


Thanks
Georgi
Telerik team
 answered on 21 Mar 2012
6 answers
85 views

Hi,

It seems a bug in the GridViewBoundColumnBase.CanFilter() of the 2012.1 release.

I'm binding my grid to a collection of ExpandoObjects, and I found that when I set grid.IsFilteringAllowed to true, the FilteringDropDown controls shows up on column headers, but they didn't go hidden when I set grid.IsFilteringAllowed to false.

By looking at the disassembled code, I found that GridViewBoundColumnBase.CanFilter() has been changed to this:

        public override bool CanFilter()
         {
             return (base.CanFilter() || (this.IsBoundToDynamicType() && (this.EffectiveFilteringType != null)));
         }

In my case base.CanFilter() is false and this.IsBoundToDynamicType() && (this.EffectiveFilteringType != null)) is always true, which means there's no way for me to simply toggle grid.IsFilteringAllowed to show/hide the filter control.

Jason

Jason
Top achievements
Rank 1
 answered on 21 Mar 2012
0 answers
74 views
hi there,

i want to export data from radGridView to excel in wpf  , how can i perform this functionality
plz give an example or demo with code because i am new to wpf

thanks
Regards

usman ilyas
Usman
Top achievements
Rank 1
 asked on 21 Mar 2012
3 answers
189 views

Hello,

I have a problem with the tileview control.

I have a tileview in my page with RadFluidContentControl to have different view depends on the size :

<telerik:RadTileView IsItemsAnimationEnabled="False">
    <telerik:RadTileViewItem>
        <telerik:RadFluidContentControl
            TransitionDuration="0"
            State="Large"
            SmallToNormalThreshold="400 400"
            NormalToSmallThreshold="400 400"
            NormalToLargeThreshold="600 600"
            LargeToNormalThreshold="600 600">
            <telerik:RadFluidContentControl.SmallContent>
                <StackPanel x:Name="SmallContent">
                    <TextBlock Text="Small"/>
                    <TextBlock Text="{Binding MyList.Count}"/>
                    <ListBox ItemsSource="{Binding MyList, Mode=TwoWay}"/>
                </StackPanel>
            </telerik:RadFluidContentControl.SmallContent>
            <telerik:RadFluidContentControl.Content>
                <StackPanel x:Name="Content">
                    <TextBlock Text="Normal"/>
                    <TextBlock Text="{Binding MyList.Count}"/>
                    <ListBox ItemsSource="{Binding MyList, Mode=TwoWay}"/>
                </StackPanel>
            </telerik:RadFluidContentControl.Content>
            <telerik:RadFluidContentControl.LargeContent>
                <StackPanel x:Name="LargeContent">
                    <TextBlock Text="Large"/>
                    <TextBlock Text="{Binding MyList.Count}"/>
                    <ListBox ItemsSource="{Binding MyList, Mode=TwoWay}"/>
                </StackPanel>
            </telerik:RadFluidContentControl.LargeContent>
        </telerik:RadFluidContentControl>
    </telerik:RadTileViewItem>
</telerik:RadTileView>
In this sample this is the same content for Small, Normal and Large Content. It displays the number of item in a list and the content of the list.

MyList is just a List of String with 2 elements.

When I ran the application, only the listbox in the normal content displayed the 2 elements. In the small and large content the list was empty.

But in all contents (small, normal and large) the textblock displayed the correct number of elements in my list (2).

Do I something wrong ?

Thanks in advance for your answer.

Regards,

Patrick

Zarko
Telerik team
 answered on 21 Mar 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?