Colour picker in grid when add row throws cannot parse colour

2 posts, 0 answers
  1. Karl
    Karl avatar
    9 posts
    Member since:
    Oct 2012

    Posted 27 Aug 2015 Link to this post

    I have a colour code property on my model which has UIHint set to a colour picker partial view.

    Everything works as expected for existing values in my grid but not when I add a new row from the Grid.

    I have tried setting default values onto my model property and even put debug lines to write out when the Get property is called.

     However when the Add button is pressed from the Grid, the get property is NOT called and I get a Cannot parse colour "" error.

     How can a default be given to the colour picker?

     

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2288 posts

    Posted 28 Aug 2015 Link to this post

    Hello Karl,

    I covered the question in the support thread on the same topic. Let me know if the information was helpful.

    Regards,
    Dimiter Madjarov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top