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

RowValidating question...

3 Answers 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marc Roussel
Top achievements
Rank 2
Marc Roussel asked on 15 Apr 2010, 03:12 PM
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

3 Answers, 1 is accepted

Sort by
0
Marc Roussel
Top achievements
Rank 2
answered on 15 Apr 2010, 03:36 PM
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 ?

0
Accepted
Nedyalko Nikolov
Telerik team
answered on 19 Apr 2010, 12:08 PM
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.
0
Marc Roussel
Top achievements
Rank 2
answered on 19 Apr 2010, 05:59 PM
A support ticket was placed since I can't attach a zip here.
Tags
GridView
Asked by
Marc Roussel
Top achievements
Rank 2
Answers by
Marc Roussel
Top achievements
Rank 2
Nedyalko Nikolov
Telerik team
Share this question
or