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

[Solved] Radcombobox SelectedIndex Issue

1 Answer 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
anirudha
Top achievements
Rank 1
anirudha asked on 28 Jan 2009, 10:38 AM

Hi,
I am trying to insert new record for selcting All the items in RadComboox  as below.

Test.ServiceReference1.

spGetViewLevelsResult Item1 = new Test.ServiceReference1.spGetViewLevelsResult();

 

Item1.fldViewLevelId = 0;

Item1.fldViewLevelName =

"----------ALL-----------";

 

e.Result.Add(Item1);

drdLevel.ItemsSource = e.Result;

drdLevel.SelectedIndex = e.Result.Count - 1;

But "drdLevel.SelectedIndex = e.Result.Count - 1;" exeuting this line again the selectedIndexChage event is getting fired multiple times.

Please help to resolve the problem.
Thanks,
Anirudha 

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 28 Jan 2009, 04:58 PM
Hello anirudha,

Could you please double check that you are not setting the SelectionChanged handler multiple times? I tested with a simple application that resembles the scenario you described and the event was fired only when needed. If you are able to isolate the problem in a simple application, please, send it to us and we will respond with a solution or a workaround for the problem.

Regards,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
anirudha
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or