Width binding now triggers error?

2 posts, 0 answers
  1. Rob Ainscough
    Rob Ainscough avatar
    188 posts
    Member since:
    Jan 2010

    Posted 04 Jun 2014 Link to this post

    The following xaml is generating an error "Specified cast is not Valid" in Q1 2014.

    <telerik:GridViewDataColumn Header="Note" Width="{Binding NoteColumnWidth, TargetNullValue='219', FallbackValue='219', Mode=OneWay}" DataMemberBinding="{Binding CustomerNotesMember}" IsReadOnly="True"/>

    With Q1 2013 there was no error and everything executed correctly.

    Is this yet another "Breaking change" in Q1 2014?

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 05 Jun 2014 Link to this post

    Hi Rob,

    I tested the code snippet you pasted defining the NoteColumnWidth property like so:
    private double noteColumnWidth = 500;
    public double NoteColumnWidth
        get { return this.noteColumnWidth; }

    I am afraid I did not get any error. Please note I am testing with version 2014.1.331.1050 (2014 Q1 SP1).

    Have you defined the NoteColumnWidth as double? 

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top