B
bovine
Unregistered / Unconfirmed
GUEST, unregistred user!
UltraWebGrid:为什么igtbl_addNew("UlGrid",0)返回的值是NULL?igtbl_activate怎么用呢?而且触发该事件后(100分)<br />protected void Page_Load(object sender, EventArgs e)
{
DepartMentData departMentData;
departMentData = new DepartMentData();
UlGrid.DataSource = departMentData.Tables[DepartMentData.DEPARTMENT_TABLE];
UlGrid.DataBind();
Button1.Attributes.Add("OnClick", "return AddNew();"
}
protected void UlGrid_InitializeLayout(object sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e)
{
e.Layout.AllowAddNewDefault = AllowAddNew.Yes;
e.Layout.AllowDeleteDefault = AllowDelete.Yes;
e.Layout.AllowUpdateDefault = AllowUpdate.Yes;
e.Layout.AllowSortingDefault = AllowSorting.Yes;
e.Layout.HeaderClickActionDefault = HeaderClickAction.SortSingle;
e.Layout.CellClickActionDefault = CellClickAction.Edit;
e.Layout.AddNewBox.Hidden = true;
}
function AddNew()
{
igtbl_addNew("UlGrid",0);
}
{
DepartMentData departMentData;
departMentData = new DepartMentData();
UlGrid.DataSource = departMentData.Tables[DepartMentData.DEPARTMENT_TABLE];
UlGrid.DataBind();
Button1.Attributes.Add("OnClick", "return AddNew();"
}
protected void UlGrid_InitializeLayout(object sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e)
{
e.Layout.AllowAddNewDefault = AllowAddNew.Yes;
e.Layout.AllowDeleteDefault = AllowDelete.Yes;
e.Layout.AllowUpdateDefault = AllowUpdate.Yes;
e.Layout.AllowSortingDefault = AllowSorting.Yes;
e.Layout.HeaderClickActionDefault = HeaderClickAction.SortSingle;
e.Layout.CellClickActionDefault = CellClickAction.Edit;
e.Layout.AddNewBox.Hidden = true;
}
function AddNew()
{
igtbl_addNew("UlGrid",0);
}