开发者

asp.net gridview AjaxControlToolkit

Can I use AjaxControlToolkit to che开发者_如何学运维ck whether ASP.NET GridView is Empty or Not?


An empty GridView control still renders its EmptyDataTemplate (or its EmptyDataText), so you can't just check if its associated <table> element is empty.

You might want to specify a custom EmptyDataTemplate that renders an element with a well-known id, then use $get() on the client-side to check if that element exists.

You can also create an extender on the GridView that passes its Rows.Count property to the client side using an ExtenderControlProperty.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜