“Imagination is more important than knowledge. For while knowledge defines all we currently know and understand, imagination points to all we might yet discover and create.” - Albert Einstein


Down Memory Lane - How this idea sparked


Four 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: , , , , , , , , ,

 Subscribe to feed

CoolGridView Quick Fixes Related to IE 6, Scrolling and UpdatePanel

I recently posted a quick fix for CoolGridView control. Below is a list of fixes.

  1. It now works correctly in Internet Explorer 6.0 and 7.0.
  2. Fixed the alignment of the fixed headers and footers when there are other HTML element or server controls before the CoolGridView in a page.
  3. 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.
Download the updated CoolControls and sample web application project from here.

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: , , , , , , , , ,

 Subscribe to feed


John Eric Sobrepena

John Eric Sobrepena
Hi, I am an I.T. professional who loves technology. I am right now into Android development. I am also a subject matter expert on C#, ASP.NET, WPF and Silverlight. Photography is one of my many hobbies.
Bookmark and Share

Type your Email

Follow me on Twitter.
  • Glad to have you with us. The idea of creating and maintaining an open-source alternative over the commercially available grid controls is very brave. I hope you're going to achieve it. Good luck!

    Just to remember, a notice from my last comment, the control will be mostly useless in financial/accounting web apps without a feature of keeping scroll position after having postback or callback.
    I'm looking forward to see this in your control one day. - Anonymous RaVel | Friday, 22 January, 2010
  • Hi RaVel, thank you for your encouragement. Rest assured that your suggestion (maintain scroll position after postback or callback) will most likely be available in the next release together with the feature of users being able to resize columns. - Blogger John Eric Sobrepena | Friday, 22 January, 2010
  • Hi RaVel, You can check out the latest release. It now includes your suggestion to maintain scroll position after a postback or callback.

    CoolGridView New Release : Resizable Column Widths and Keeping Scroll Position - Blogger John Eric Sobrepena | Wednesday, 27 January, 2010
  • Hi John,

    I was wondering if this project was still going on. This is an awesome tool!!

    G - Anonymous Anonymous | Wednesday, 12 May, 2010
  • Good work! Thanks! Just a little problem with FF 3.0.16: the header don't scroll horizontal with the other rows.

    Thanks from Italy! - Anonymous Anonymous | Tuesday, 29 December, 2009
  • I made some minor change to fix the issue that you encountered on Firefox 3.0.16. You can download this release again: CoolGridView Quick Fix - Blogger John Eric Sobrepena | Tuesday, 29 December, 2009
  • Can we freeze the first column while scrolling horizontally?

    Any help is highly appreciated.... - Anonymous Anonymous | Tuesday, 12 November, 2013

Flickr Photostream



 Subscribe to feed


Powered by Blogger



© 2006 IdeaSparx | Blogger Templates by GeckoandFly.
No part of the content or the blog may be reproduced without prior written permission.