Down Memory Lane - How this idea sparked
4 Comments Published by John Eric Sobrepena on Jan 18, 2010Four months back I started this blog and my open-source project - IdeaSparx CoolControls. I am a fan of ASP.NET 2.0 GridView. In my opinion it is simple yet flexible, plain yet lightweight, unsophisticated yet powerful. GridView control is well designed that it is easy to customize and extend. Not only that, it is also possible to extend GridView so that it can nearly match any popular and commercially available third-party controls out there. The only thing, of course, is that it requires a lot of work. But the huge amount of "sweat" i put into this is all worth it. I have this monumental dream which I planned out in my head that someday, somewhere, somehow (haha, now i am being a bit melodramatic..) the ASP.NET community will have an open-source alternative over the commercially available grid controls. Therefore, I named this dream project - IdeaSparx CoolControls.
All About IdeaSparx CoolControls
One of its controls is CoolGridView which extends ASP.NET 2.0 GridView. At the end of 2009, CoolGridView was able to render GridView with fixed header, footer or pager and scrollable content. Now think about these features - resizable columns, rearrange columns, present hierarchical data, selective area reloading through AJAX, feature-rich Visual Studio designer support, sorting using multiple columns, data grouping, data binding tools for complex data structures, enhanced data editing and delivery of data-pages through streaming. I think these features are very much possible! Don't you think its cool? (hence, the name CoolGridView, by the way :) my next installment - having a CoolGridView with resizable columns is already on the way.
Thinking Ahead : To Infinity and beyond..
This year I have decided to jump a little higher and put a little more "sweat" into the project. And surely I will be blogging more about it. But I cannot run the next mile alone.. I need your help. Your inputs are very valuable (not to mention, it boosts my confidence from zero to maybe, 10). Whenever I log on and see a few comments which meant somebody out there finds this dream of mine workable, doable.. possible, I literally dash to my work desk and start pounding on my keyboard and try to do my best to keep you all in the loop of things.
I am glad to tell everyone that because of the recent string of feedback I received in the past couple of months, we were able to make CoolGridView more stable . We were able to make sure that the features worked perfectly on different browsers - Internet Explorer 8/7/6, Firefox 3.5/3.0, Safari and Chrome. This was made possible because you have all used the control and provided feedback. It's Teamwork, i guess so I thank you. I am indeed very grateful.
I hope that you would all stand by me in making this distant dream of mine a reality. This year let's create a CoolGridView control that is easy to use and packed with lots of useful features.
"To infinity and beyond..."
Labels: AJAX Control Toolkit, ASP.NET, CoolGridView, Fixed footer, Fixed header, GridView, Internet Explorer 6, Scrollable, Scrolling, UpdatePanel
CoolGridView Quick Fixes Related to IE 6, Scrolling and UpdatePanel
3 Comments Published by John Eric Sobrepena on Dec 28, 2009
I recently posted a quick fix for CoolGridView control. Below is a list of fixes.
For those who are using the CoolGridView control inside AJAX control toolkit's UpdatePanel control, make sure you have the following javascript code at the bottom portion of your ASPX page.
You can place this code in your master page if you wish. Please look at the sample web application included in the ZIP file.
- It now works correctly in Internet Explorer 6.0 and 7.0.
- Fixed the alignment of the fixed headers and footers when there are other HTML element or server controls before the CoolGridView in a page.
- Control's scroll bars are properly rendered in the browser or in a modal window after a postback, or after a callback using AJAX control toolkit UpdatePanel.
For those who are using the CoolGridView control inside AJAX control toolkit's UpdatePanel control, make sure you have the following javascript code at the bottom portion of your ASPX page.
//This javascript code is required if you are using a CoolGridView inside an update panel.
function AjaxEndRequestHandler(sender, args) {
var p = sender._updatePanelClientIDs;
if (p != null)
for (var j = 0; j < p.length; j++) {
var scripts = $get(p[j]).getElementsByTagName("script");
// .text is necessary for IE.
for (var i = 0; i < scripts.length; i++) {
try {
eval(scripts[i].innerHTML || scripts[i].text);
} catch (e2) { }
}
}
}
try {
Sys.WebForms.PageRequestManager.getInstance() .add_endRequest(AjaxEndRequestHandler);
}
catch (e) { }
You can place this code in your master page if you wish. Please look at the sample web application included in the ZIP file.
Labels: AJAX Control Toolkit, ASP.NET, CoolGridView, Fixed footer, Fixed header, GridView, IE 6, Scrollable, Scrolling, UpdatePanel




