EXT GridPanel button 按钮 事件 方法 DirectMethod
Posted on 2022-06-28 15:45 yiyishuitian 阅读(18) 评论(0) 编辑 收藏 举报C# 代码
//首页 Ext.Net.Button btnFirst = new Ext.Net.Button(); btnFirst.Icon = Icon.ControlStartBlue; btnFirst.ID = "btnFirst"; btnFirst.Listeners.Click.Handler = "Ext.net.Mask.show({ msg : '数据加载中...' });App.direct.btnFirst_Click();"; toolbar.Items.Add(btnFirst);
[DirectMethod]
public void btnFirst_Click()
{
X.GetCmp<NumberField>("txtPageIndex").SetValue(1);
Paging(1, pageSize);
X.Mask.Hide();
//X.Msg.Alert("信息提示", "btnFirst_Click").Show();
}