RowValidating question...

4 posts, 1 answers
  1. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 15 Apr 2010 Link to this post

    Hi,

    I have just 2 columns, a RadComboBoxColumn and a quantity
    when I click on Add a new row, I select a value in the combobox and then

    I get into the RowValidating to check if the selected value already exist in the grid so I can advise the user that he can't select
    this item since it is already in the grid but the problem is that there's nothing yet in the grid but getting in the RowValidating seems that what I selected in the combobox is already added to the grid so it gives me the error that the item already exist but he huh this is the first one I'm adding.

    So if RowValidating isn't the right place to perform this validation.  Where should I go ?

    Silverlight 3
    Telerik : 2010.1.319.1030

    Thank you
  2. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 15 Apr 2010 Link to this post

    There's also a behaviour I don't understand.

    If I hit tab after adding a new item to get to the next column Qty it adds a row bellow the row I'm adding  is it not suppose to add it only when I change row ?  I mean I'm adding a new row,  the row shouldn't be added before I finished adding all my columns and then I change row and then I get into RowValidating ?

  3. DevCraft banner
  4. Answer
    Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 19 Apr 2010 Link to this post

    Hello Marc Roussel,

    Could you please send me a sample project which I can debug on my side, since the described behavior indeed sounds very strange? Thank you in advance.

    All the best,
    Nedyalko Nikolov
    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.
  5. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 19 Apr 2010 Link to this post

    A support ticket was placed since I can't attach a zip here.
Back to Top