Telerik Rad combo选择了索引更改 [英] Telerik Rad combo selected index change

查看:97
本文介绍了Telerik Rad combo选择了索引更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在私有方法中调用Radcomboselected index changed方法..?

Is it Possible to call Radcomboselected index changed method in private method..?

推荐答案

不太确定你的意思 - 设置SelectedIndex属性通常会导致无论如何要执行的基础事件:

Not quite sure what you mean - setting the SelectedIndex property would normally cause the underlying event to execute anyway:
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:

Telerik.WinControls.UI.Data.PositionChangedEventArgs param = new Telerik.WinControls.UI.Data.PositionChangedEventArgs(1);
radComboBox1_SelectedIndexChanged(exampleComboBox, param);


这篇关于Telerik Rad combo选择了索引更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆