UltraWebGrid:为什么igtbl_addNew("UlGrid",0)返回的值是NULL?igtbl_activate怎么用呢?而

  • 主题发起人 主题发起人 bovine
  • 开始时间 开始时间
B

bovine

Unregistered / Unconfirmed
GUEST, unregistred user!
UltraWebGrid:为什么igtbl_addNew(&quot;UlGrid&quot;,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(&quot;OnClick&quot;, &quot;return AddNew();&quot;);

}
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(&quot;UlGrid&quot;,0);

}
 
AddNew()触发该事件后Grid并没有新增一行!!
 
后退
顶部