Telerik Forums
UI for WPF Forum
1 answer
78 views
Hi,

i use a RadDataform bind to a MVVM. This view contains some strings and an ObservableCollection<UserRollen>.
This Collection is bound to a GridView. In each row I have a button which should show me a Popup with details of
this Item.

How do I get the selected gridviewrow and the item which is selected?

Thanks
Best Regards
Rene
Ivan Ivanov
Telerik team
 answered on 07 Jun 2013
1 answer
116 views
I am in the process of creating a user control based on the customization example of the RadMenu.  I have placed the RadMenu in an expander on the left side of the UserControl and have it stretched vertically within the expander.  This works great for the top of the RadMenu control but I haven't been able to change the submenu/child elements to stretch vertically as well.  They always pop out directly to the right of the parent item (understandably).  Is it possible to change this behavior?  

Thanks so much.

Rosen Vladimirov
Telerik team
 answered on 07 Jun 2013
3 answers
256 views
Hello! Yesterday I put in my wpf application, normally functioning, two radsplitcontainers under raddocking, and from this moment my application, during debug mode in vs2010, takes a lot of time for each operation, a simply onover on a radbutton takes 2-3 seconds to appear and the response to every action is very slow, meaning 5-6 seconds. Closing the window has no effect since all the application, even with this window closed, becomes very slow. The application is normally functioning until I open the window containing these elements.

If I compile my application and i Run the ".exe" no issue, all is working fine.

Anybody find the same problem? Is there any solution?

Here is my code of the splitcontainers with two radgriviews inside:

<telerik:RadDocking x:Name="radDockingst" HasDocumentHost="False" Background="Transparent">

<telerik:RadSplitContainer x:Name="radSplitContainerst" Orientation="Vertical">

<telerik:RadPaneGroup>

<telerik:RadPane Header="Pane Left 1" >

<telerik:RadGridView Height="auto" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible" telerikControls:StyleManager.Theme="Office_Blue" Margin="0,5,0,0" x:FieldModifier="public" x:Name="radGridRighe" FilteringMode="FilterRow" FontSize="11" RowHeight="18" CanUserSortGroups="True" CanUserSortColumns="True" CanUserSelect="True" AlternationCount="1" FontFamily="Tahoma" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" IsReadOnly="True" Grid.Row="0" IsManipulationEnabled="True" />

</telerik:RadPane>

</telerik:RadPaneGroup>

<telerik:RadPaneGroup Background="Transparent">

<telerik:RadPane Header="Pane Left 2" Background="Transparent">

<Grid x:FieldModifier="public" Name="GridStandard">

<Grid.RowDefinitions>

<RowDefinition Height="0"/>

<RowDefinition Height="0"/>

</Grid.RowDefinitions>
</Grid>

 

</telerik:RadPane>

</telerik:RadPaneGroup>

</telerik:RadSplitContainer>

</telerik:RadDocking>

Please help me, I can't nomore test my application in debug due to slow performance.
CQT
Top achievements
Rank 1
 answered on 07 Jun 2013
1 answer
96 views
I have a RadGridView bound to a collection containing rows like the following:
public class RowViewModel : INotifyPropertyChanged
{
    public RowViewModel(Deal deal)
    {
        Deal = deal;
    }
 
    public Deal Deal { get; private set; }
 
    public event PropertyChangedEventHandler PropertyChanged;
 
    public void UpdateBookingStatus()
    {
        Deal.IsBooked = true;
        Deal.BookingTime = DateTime.UtcNow;
 
        OnPropertyChanged("Deal");
    }
 
    protected virtual void OnPropertyChanged(string propertyName)
    {
        var handler = PropertyChanged;
        if (handler != null)
            handler(this, new PropertyChangedEventArgs(propertyName));
    }
}
 
public class Deal
{
    public string Id { get; private set; }
    public DateTime ReceivedTime { get; private set; }
    public DateTime? BookingTime { get; set; }
    public bool IsBooked { get; set; }
 
    public Deal(string id, DateTime receivedTime)
    {
        Id = id;
        ReceivedTime = receivedTime;
    }
}

My grid has 4 columns bound to each of the Deal properties, with bindings such as 'Deal.Id', 'Deal.ReceivedTime', etc.

All displays correctly, but when I call the UpdateBookingStatus method, which updates a couple of Deal properties and then fires a PropertyChanged event on the Deal itself, the Deal.BookingTime and Deal.IsBooked column values are not always refreshed in the grid.  If I scroll the relevant rows out of view and then back into view, the values are updated correctly.

Is this expected?  Am I not supposed to be setting nested bindings on Columns?  Should the grid not listen for the OnPropertyChanged("Deal"event and update all columns using that property?

Thanks.
Marcus.
Rossen Hristov
Telerik team
 answered on 07 Jun 2013
1 answer
107 views
I have problem when i want to implicitly set Theme for my whole Application...

Every RadRibbonButton Style change ok, but the style of my TRadRibbonButton which is extended from RadRibbonButton doesn't accept newly set theme...

There must be something i have forgotten...could you help me...

Thank you
Dimitrina
Telerik team
 answered on 07 Jun 2013
2 answers
363 views
I have set a default filter on a boolean column in my RadGridView, so that it should only display rows where that column's values are true.  This works correctly, in that all the True rows are hidden.

However, because my backing collection only currently contains rows with a False value, the filter popup only shows the False checkbox option for selection, and doesn't show the True option that is actually checked.  See attached image.

This of course means that my default filter doesn't make any sense to the user until some rows with a True value arrive, which in this case could be hours.  They also can't clear the filter and then re-enable it for True values, as the True checkbox isn't there.

Given this is a boolean column, and there should always be True and False options, surely both options should always display as checkable options?  I understand this behaviour for columns that have infinite possible values, but not so much for finite values such as those in bool or enum columns.

Any suggestions for how I could tweak this for the desired behaviour?  I note that enum columns display all possible values in the Filter dropdown selectors (but not as checkable boxes) - even enabling this for bool columns would be useful.

Thanks in advance.

Marcus.
Marcus
Top achievements
Rank 1
 answered on 07 Jun 2013
3 answers
69 views
Hello,
I have an appointment for example from 2013.05.30. 9:00 to 2013.05.31. 16:00, and i have special slot for non working hours from 2013.05.30. 17:00 to 2013.05.31. 8:00.
I wouldn't like to divide the appointment into two parts, but I would like to cover it with a special slot.
How could I do that?
Yana
Telerik team
 answered on 07 Jun 2013
1 answer
130 views
Hai

      I need how to bind the data to a barcode(WPF) from entity context.

for example 
using(nothwindentites context = new nothwindentites ())
{
}

by using this context i want to bind the CustomerID to Barcode from CustomerTable.


thanks 

Ves
Telerik team
 answered on 07 Jun 2013
1 answer
53 views
Can someone tell me what this property represents?  I am using this through code but it would be nice to get the control representing this, also.

Can I add an array of values like [1, 15, 45] to represent I want this scheduled on the 1st, 15th and 45th minute of every hour?

A working example would rock my world. 
Thanks,
Joel.
Kalin
Telerik team
 answered on 07 Jun 2013
5 answers
303 views
I have a RadGridView containing 20+ columns, a couple of which are bound to Enum properties.  Both row and column virtualization is turned on.  When I scroll horizontally to bring the enum columns into view, I often get binding errors on the enum columns such as:

System.Windows.Data Error: 6 : 'StringFormat' converter failed to convert value 'Cleared' (type 'BookingStatus'); fallback value will be used, if available. BindingExpression:Path=Value; DataItem='GridViewCell' (Name=''); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String') FormatException:'System.FormatException: Format String can be only "G", "g", "X", "x", "F", "f", "D" or "d".
   at System.Enum.ToString(String format)
   at System.Enum.ToString(String format, IFormatProvider provider)
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at System.Windows.Data.BindingExpression.ConvertHelper(IValueConverter converter, Object value, Type targetType, Object parameter, CultureInfo culture)'

My cell template for the Enum columns is very simple, with no explicit StringFormat:

<DataTemplate x:Key="Cell.Enum" DataType="telerik:GridViewCell">
        <TextBlock Text="{Binding Value, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}}" />
</DataTemplate>

The values for the columns actually do end up displaying correctly, with the enum values such as 'Cleared' all ok.  

I suspect something is wrong with the virtualization - perhaps a column for another type is being reused for my Enum column as I scroll across, and that column's template is being applied to my enum column before all the column's settings are updated to the new column type?

Thanks in advance for your help, this is a fairly big issue for us as it's affecting scroll performance considerably.

I'm using version 2012.3.1017.40.
Rossen Hristov
Telerik team
 answered on 07 Jun 2013
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?