PowerGuard - Free Android Power Management Application
3 Comments Published by John Eric Sobrepena on Jun 30, 2012I have made a shift to Android development and therefore I am not doing any active development or update on IdeaSparx CoolGridView at this point in time. Having said that, I would like to announce one of my free Android application called PowerGuard.
PowerGuard defends the battery power of an Android device from power hungry WiFi and 2G/3G data connections. It regulates these WiFi and/or 2G/3G connections based on the need and configuration of a user. It extends battery life to lasts almost twice the amount of time than without it - given the same usage behavior. PowerGuard will always try to connect through WiFi and 2G/3G first. If it is unable to make a connection through WiFi, after some delay it will disable WiFi to conserve more battery power.
Screenshot
Features
★ Choose connection method whether to use WiFi only, 2G/3G only or both.
★ Turn on Wi-Fi/3G only when specific application is opened.
★ Option to ask subtly (using notification bar) if you need internet when an application is opened.
★ Turn on Wi-Fi/3G when device is unlocked. This only works if application monitoring is off.
★ Turn off Wi-Fi/3G when display goes off.
★ Schedule when Wi-Fi/3G should turn on or off every day.
★ Make periodic Wi-Fi/3G connection at specific duration when device's display is off giving the device more time to enter into sleep mode but still give a chance for your emails to synchronize.
★ Hit Emergency Connect in notification to enable Wi-Fi/3G connection for 30mins (configurable) then turns off automatically.
★ Disable Power Guard when certain battery power level is reached.
★ Shows battery level and temperature in notification area.*
★ Shows WiFi and 2G/3G connectivity status in notification area.*
★ Widget to enable or disable Service*
★ Widget to enable or disable Emergency connection to internet.*
★ Widget that displays battery level and temperature.*
*Note: Available in Pro version only
Try it out at Google Playstore. Thank you everyone for your support.
Labels: Android, battery, Battery Saver, free android application, free battery saver, power, Power Saver, productivity, tool
Build 20100207 fixes alignment of header's and table cell's width of CoolGridView
41 Comments Published by John Eric Sobrepena on Feb 7, 2010- COLGROUP and COL is back! These are generated for the header, table content and footer. This feature can align the header and table cell's width of CoolGridView.
- AllowResizeColumn property is added to CoolGridView. Set this property to true to enable user to resize the columnns manually, set it to false to disable. The default value of this property if true.
Labels: ASP.NET 2.0, CoolControls, CoolGridView, GridView
DefaultColumnWidth Property
You can now define the default column width of CoolGridView columns through the DefaultColumnWidth property. The value for this property can not be of type UnitType.Percentage. On older releases of CoolControls, if a HeaderStyle-Width is not defined for a data column, it defaults to 100px. This value is hard coded inside the control. Now you can specify your own default column width. I got a lot of requests to allow column and table widths to be specified in percentage. Allowing column or table widths to be in percentage and at the same time making sure that the column widths can still be resized by the properly is a great challenge. However, rest assured that I am not dropping this request and that the development of this functionality is still being considered.
SPAN inside Table Cell
There was a bug in CoolGridView when displayed in IE 6 and 7. It was reported by developers that it seems that the style "white-space:nowrap" does not behave properly when applied to TD and TH element when the "width" is also defined in the style. Consider the following code:
<table style="table-layout:fixed;width:90px" border="1"> <tr> <td style="white-space:nowrap; width:30px; overflow:hidden;">Test inside the cell.</td> <td style="white-space:nowrap; width:30px; overflow:hidden;">Test inside the cell.</td> <td style="white-space:nowrap; width:30px; overflow:hidden;">Test inside the cell.</td> </tr> </table>If you view the code above in IE 6 or 7, you will see that the text inside the cell wraps and breaks on white spaces even though the style was set not to wrap on white spaces. The fix for this is to put a SPAN that encloses the text inside the cell and put the style "white-space:nowrap" on the SPAN instead of the TD. The code below now works properly in IE 6 or 7. CoolGridView uses something similar to this but uses CSS instead.
<table style="table-layout:fixed;width:90px" border="1"> <tr> <td style="width:30px; overflow:hidden;"><span style="white-space:nowrap;">Test inside the cell.</span></td> <td style="width:30px; overflow:hidden;"><span style="white-space:nowrap;">Test inside the cell.</span></td> <td style="width:30px; overflow:hidden;"><span style="white-space:nowrap;">Test inside the cell.</span></td> </tr> </table>
"Gradient" Theme
There is a theme included in the sample project in this release that gives a 3D look on the table headers. In this theme, the white spaces inside the cell is not set to wrapped. When user resizes the column width and if text does not fit inside the cell, ellipsis will appear at the end of the text to indicate that there are portion of the text that is hidden.
To use this theme, you have to copy the "Gradient" folder into your "App_Themes" directory and copy the headerbg.gif file into your website in the location "\images\". Set EnableTheming to "True" for your ASPX page and set the Theme property to "Gradient".
COLGROUP and COL Elements Removed
Older releases of CoolGridView generates COLGROUP and COL html tags to control the column widths. However, the control does not render properly in the browser if the entire cells for a column is hidden using the style "display: none". Therefore, COLGROUP and COL were removed.
For more information of what are the other changes, you can read the release notes included in the latest build.
Have a great week everyone!
Labels: ASP.NET, COL, COLGROUP, CoolControls, CoolGridView, DefaultColumnWidth, GridView, IdeaSparks, IdeaSparx, Theme
CoolGridView New Release : Resizable Column Widths and Keeping Scroll Position
21 Comments Published by John Eric Sobrepena on Jan 25, 2010You can download the latest release at Codeplex.com. Here are the following changes in this release (Build 20100124). Please take note that item #1 and #2 and breaking changes. If you are going to replace your CoolGridView from old releases with this new one, please modify your code according to the instructions provided.
- CoolCore.js and CoolCore.cs were added to IdeaSparx.CoolControls.Web project.
- If you are using CoolGridView inside an UpdatePanel, the add-on script is not needed anymore. You should remove the JavaScript code (as shown here) from your ASPX page. This functionality is now fully integrated in the CoolGridView control.
//Remove this JavaScript from your ASPX 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) { }
- User can resize column headers' width.
- Column header and scroll position are preserved after a postback or callback.
Have a great Monday everyone.
Labels: AJAX Control, AjaxControlToolkit, ASP.NET 2.0, CodePlex, CoolGridView, Fix Headers, Footer, GridView, IdeaSparks, Pager, Resizable columns, Resize column, Scroll Position, UpdatePanel
- Drop a CoolGridView and a LinqDataSource control into your ASPX page.
- In the "Properties" toolbox, set the DataSourceID of CoolGridView to point to your LinqDataSource control. Set the properties of CoolGridView control to the following:
- AllowPaging : True
- AllowSorting : True
- Handle the "Selecting" event of LinqDataSource
- In the "Selecting" event handler, call your method that returns an IQueryable<> object and assign it to the event argument's property "e.Result".
Have a great weekend everyone.
Labels: ASP.NET, CoolGridView, Data Binding, GridView, IQueryable, LinqDataSource