FineUI 官方论坛
标题:
单击可编辑GRID行出错
[打印本页]
作者:
yygy
时间:
2014-7-29 23:09
标题:
单击可编辑GRID行出错
<f:Grid ID="Grid1" Title="单击行" ShowBorder="true" ShowHeader="false" AllowCellEditing="true"
runat="server" Width="230px" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowClick">
<Columns>
<f:BoundField ColumnID="A1" ExpandUnusedSpace="true" DataField="识别" HeaderText="选择" />
</Columns>
</f:Grid>
---------------------------
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
for (int i = 0; i < 5; i++)
{
G1_AddRow(i.ToString().Trim());
}
}
}
protected void G1_AddRow(string s1)
{
Newtonsoft.Json.Linq.JObject defaultObj = new Newtonsoft.Json.Linq.JObject();
defaultObj.Add("A1", s1);//识别
FineUI.PageContext.RegisterStartupScript(Grid1.GetAddNewRecordReference(defaultObj, false));
}
protected void Grid1_RowClick(object sender, FineUI.GridRowClickEventArgs e)
{
FineUI.Alert.Show("测试单击");
}
复制代码
作者:
yygy
时间:
2014-7-30 10:25
V4.05运行正常,但升级到V4.1就出现错误
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4