browse by category or date

Just in case you need more reading materials on Microsoft related technologies, you should not missed this free e-books offering from Microsoft Press.
Get it while it lasts!

Introducing Windows Server 2012

Download: PDF EPUB MOBI
If you prefer a hard copy of the book, you can order it here for $14.99.
For more information, visit HERE.

Introducing Windows Server 2008 R2

Download: PDF XPS
For more information, visit HERE.

Introducing Microsoft SQL Server 2012

Download: PDF EPUB MOBI
If you prefer a hard copy of the book, you can order it here for $14.99.
For more information, visit HERE.

Introducing Microsoft SQL Server 2008 R2

Download: PDF XPS
For more information, visit HERE.

Understanding Microsoft Virtualization Solutions (Second Edition)

Download: PDF XPS
For more information, visit HERE.

Microsoft Office 365: Connect and Collaborate Virtually Anywhere, Anytime

Download: PDF EPUB MOBI
For more information, visit HERE.

First Look Microsoft Office 2010

Download: PDF XPS
For more information, visit HERE.

Security and Privacy for Microsoft Office Users

Download: PDF EPUB MOBI
If you want to purchase the printed copy, get it here for $9.99.
For more information, visit HERE.

Deploying Windows 7, Essential Guidance from the Windows 7 Resource Kit and TechNet Magazine

Download: PDF
For more information, visit HERE.

Moving to Microsoft Visual Studio 2010

Download: PDF XPS Sample Code
For more information, visit HERE.

Programming Windows Phone 7, by Charles Petzold

Download: PDF EPUB MOBI C# Sample Code VB Sample Code
For more information, visit HERE.

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

After upgrading to Ext.NET 1.4, I found out a weird bug with GridPanel. I have a GridPanel which is inside a Container. I set the Container’s layout to FitLayout because I want the GridPanel to occupy all the available space. To ensure that the width is fully used, I set the GridPanel’s AutoExpandColumn property to one of the column.

With that in mind, the GridPanel is expected not to have a horizontal bar. But somehow the horizontal scrollbar appears.

It gets worse when I scrolled it right until the end, the GridPanel’s content is now misaligned to its header.

This problem will not happen if I am not using the AutoExpandColumn property and set the columns width within the available space. I also found out that the horizontal scrollbar will disappear if I manually reduce the size of any column.

With that, I can positively identify that the bug lies in the way AutoExpandColumn works. To solve this, I could either dig deep to Ext.NET internals, or I just use a “duct tape solution”.

Due to time constraint, I’ll just use the “duct tape” solution for now. What we’re going to do is to reduce the column’s width after the data is loaded. I recommend to choose the column that is used as AutoExpandColumn as the target.

Assume that you already have the GridPanel, we will handle the Store’s Load event with fnResizeColumn function.

<ext:GridPanel ButtonAlign="Center"  
	ID="gv" runat="server" Header="false" 
	Border="false" AutoExpandColumn="Title">
	<Store>
		<ext:Store ID="ds" runat="server" RemoteSort="true" 
		UseIdConfirmation="true" AutoLoad="true">
			<Proxy>
				<!-- 
					..... SNIP .... 
				-->
			</Proxy>
			<Reader>
				<!-- 
					..... SNIP .... 
				-->
			</Reader>
			<BaseParams>
				<!-- 
					..... SNIP .... 
				-->
			</BaseParams>			
			<Listeners>				
				<Load Fn="fnResizeColumn" />
			</Listeners>
		</ext:Store>
	</Store>
	
	<!-- 
		..... SNIP .... 
	-->
	
</ext:GridPanel>

The fnResizeColumn method is quite simple.

var fnResizeColumn= function(obj) {
	var colModel = gv.getColumnModel();	
	//reduce the Column width by 50 pixels
	colModel.setColumnWidth(1, //zero-based column index
		colModel.getColumnWidth(1) - 50);            
	gv.doLayout();
}

There you go, fast and easy!

I hope it helps. Cheers!

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

By the Zeus’ golden, long, soft and silky nasal hair!!!

I saw this really cool video by Google in Youtube about the new Android Phone. Since it was posted on 4th April, I doubt that this is another April Fools from Google. In case you didn’t notice, this year Google treats us with 8-bit Google Maps for NES, Google Fiber BarA fiberlicious source for your daily fiber consumption, and GMail Tap – a new GMail which the keyboard is shrinked to just 3 buttons, dot, dash and space. And yes, you need to type using Morse Code :D.

Alright, back to the new Android Phone. By comparing these two videos below, I somehow have a conviction that Google has secretly invented a Time Machine. Used it to travel to year 3000 AD, and stole MomCorp‘s trade secret 😀

eyePhone from the year 3000 AD

Google’s Glass from the year 2012

I for one, couldn’t wait for this product to be released 🙂 While waiting, you can follow their progress with this technology at Project Glass.

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant: