This is a migrated thread and some comments may be shown as answers.

Width binding now triggers error?

1 Answer 12 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rob Ainscough
Top achievements
Rank 1
Rob Ainscough asked on 04 Jun 2014, 05:45 PM
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?

Rob

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 05 Jun 2014, 07:30 AM
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? 

Regards,
Didie
Telerik
 
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.
 
Tags
GridView
Asked by
Rob Ainscough
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or