not null with guid validation error

7 posts, 0 answers
  1. allyk
    allyk avatar
    13 posts
    Member since:
    Feb 2007

    Posted 15 Apr 2010 Link to this post

    Hi,
    If radcombobox bind to not null guid field, Although, I validated with required from metadata, when clicked to the save button in dataform it gives input string not in a correct format error. How can I handle this situation?

    Thanks
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Apr 2010 Link to this post

    Hello,

    Could you please, open a new support ticket and send us a simple application that demonstrates the problem? We will reply with a solution ASAP.

    Regards,
    Valeri Hristov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. tungnt185
    tungnt185 avatar
    40 posts
    Member since:
    Aug 2009

    Posted 28 Apr 2010 Link to this post

    Hi Valeri,
    I've a same problem with binding RadComboBox with a not null field type guid and is a table key.
    I'm using WCF RIA Service and validate require in metadata of this field.
    When binding it to the combo's SelectedValue as:

    SelectedValue="{Binding FieldID, NotifyOnValidationError=True,   
    ValidatesOnExceptions=TrueMode=TwoWay}" 
    It throw an exception like this:
    Message: Can't convert type null to type System.Guid.  
    StackTrace: at MS.Internal.Data.DynamicValueConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture) at System.Windows.Data.BindingExpression.UpdateValue() 

    I don't know how to resolve this. Please show me a workaround. Thanks
  5. tungnt185
    tungnt185 avatar
    40 posts
    Member since:
    Aug 2009

    Posted 05 May 2010 Link to this post

    Have anybody already face problems same to me?
  6. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 12 May 2010 Link to this post

    Hi Taufik Hidayat,

    Sorry for the late response.

    Will Guid.Empty do the job for a default value? It is static property of Guid class and this way your property won't have null as default value.

    If you have any other questions about our controls please feel free to contact us again.

    Best wishes,
    Konstantina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. tungnt185
    tungnt185 avatar
    40 posts
    Member since:
    Aug 2009

    Posted 20 May 2010 Link to this post

    Hi Constantina

    I've just try as you said but my error still remain.
    When InitObject I assign it with a guid.empty but RadComboBox still throw this exception
    I don't know how to resolve this now.

    Please help me. Thanks
  8. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 25 May 2010 Link to this post

    Hi Taufik Hidayat,

    Could you please open a support ticket and send us a sample project in which this issue can be observed? In that way we will be able to assist you in the best manner.

    Looking forward to your reply.

    Sincerely yours,
    Konstantina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
DevCraft banner