Geeks With Blogs
Josh Tenenbaum Errant ramblings January 2011 Entries
Client Sorting on a GridView Part B
I forgot this: You can run this on $().ready(function() { SetHeaderSortLinks('aGrid', 'Get()'); }); In the global js include. function SetHeaderSortLinks(parent, functionToCall) { //Clear existing links $("#" + parent + " th").unbind("onclick"); $("#" + parent + " th").bind("click", function () { var sortOn = $(this)[0].sort; if (currentSortField == sortOn) currentSortAsc = !currentSortAsc; currentSortField = sortOn; eval(functionToCall); }); } I'll probably add some css to change the cursor on mouseover ......

Posted On Wednesday, January 19, 2011 7:42 PM

ASP.Net GridView, Client Binding, and Sorting
I read a blog post a few months back about client binding your Asp.Net GridView. It was Called Bind Gridview using Jquery. I took it to heart and now I'm using it, except it doesn't handle client sorting (paging is another story). Granted this has some room for improvement and my js isn't the best… Base Page method with the grid view: protected void SetHeaderAttribs(GridView grid) { for (int i = 0; i < grid.Columns.Count; i++) { TableCell cell = grid.HeaderRow.Cells[i]; DataControlField field ......

Posted On Wednesday, January 19, 2011 5:49 PM

Domain Hosting
After hosting my domains with Godaddy for a few years, I was tired of the extra charge for private registration. I found that Hover offers it free and a few months back, I switched one of my domains. Wow! Godaddy really made that hard: When I authorized the transfer, Godaddy immediately stopped resolving DNS lookups even before domain propagation completed—this resulted in any email or web requests failing because their server did not return those server ips. When I called them, they either were ......

Posted On Wednesday, January 19, 2011 5:16 PM

Copyright © Josh Tenenbaum | Powered by: