Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it Possible to call Radcomboselected index changed method in private method..?
Posted

1 solution

Not quite sure what you mean - setting the SelectedIndex property would normally cause the underlying event to execute anyway:
C#
exampleComboBox.SelectedIndex = 1;
...
(elsewhere)
...
private void radComboBox1_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
  if (e.Position == 1)
    ...
}


Other than this, you can call the event directly, after initializing the right eventargs:
C#
Telerik.WinControls.UI.Data.PositionChangedEventArgs param = new Telerik.WinControls.UI.Data.PositionChangedEventArgs(1);
radComboBox1_SelectedIndexChanged(exampleComboBox, param);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900