Grid view update event form javascript
Posted
by pranay
on Stack Overflow
See other posts from Stack Overflow
or by pranay
Published on 2010-04-16T12:57:38Z
Indexed on
2010/04/16
13:03 UTC
Read the original article
Hit count: 238
I have grid control
select <%--Select--%>
</ItemTemplate>
</asp:TemplateField>
</columns>
<pagersettings mode="NumericFirstLast" position="Top" pagebuttoncount="5" />
<pagerstyle backcolor="Pink" />
</cc:AppEngineGridView>
my code on row create
protected override void OnRowCreated(GridViewRowEventArgs e)
{
try
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.ID = this.ID + "_" + e.Row.RowIndex;
e.Row.Attributes.Add("onmouseover", "this.style.cursor='pointer';this.style.font.weight='bolder';");
e.Row.Attributes.Add("onclick", "DoNav('" + ((LinkButton)e.Row.FindControl("lbtn1")).ClientID + "');");
}
}
protected void grduser_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
grdview_RowClickCommand(sender, e);
}
Javascript :
function DoNav(id)
{
$("#"+id).click();
}
Now my question is when i click on the row it do post back but it didnt call rowupdate event
How can do this i.e using javascript to call row update command of the grid.
© Stack Overflow or respective owner