Saturday, December 19, 2009

row count in UltraWebGrid from Java Script

protected void Page_Load(object sender, EventArgs e)
{

String Script = "javascript:function rowcount(gridname){var grid = igtbl_getGridById(gridname);var row =grid.Rows.length; if(row>0){var result =confirm('"+ GetGlobalResourceObject("Texts", "EmptyConfirmation") + "');return result;}else{return false;}}";
this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "InitVariable", Script, true);
uxEmptyTrash.Attributes.Add("onclick", "return rowcount('" + uxDocView.ClientID + "'+ '_uxBaseUltraWebGrid');");




}

5 Strategies for Getting More Work Done in Less Time

Summary.    You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...