Techno Curry

I am an entrepreneur who believes that the true power of GIS is yet to be discovered in every day aspects of life. As one of the primary owners of 39 Degrees North (www.39dn.com) a GIS focused company that strives to be on the bleeding edge of technology , I believe in bringing GIS to the masses at affordable cost and time investments that can help the users to achieve great ROI.

I am also a travel , motorcycle, gardening , outdoors and cooking enthusiast when I find the time in my busy schedule. Cooking being one of my great passions I always find time to do that , I also enjoy having dinner parties where I cook up a storm to feed all my friends.

Spark Tree with a three state CheckBox

In my last blog post I talked about the Spark Tree from Maxim . When I was looking for a Spark Tree my final objective was to have a Spark Tree with a custom renderer that involved a three state checkbox. A checkbox that could show selected, unselected and "intermediate" states. After googling a bit I decided it was a good exercise to build on from scratch in Spark using Skins. It turned out to be much easier than I thought so I decided Ill share the full sample code here. 

This sample is a Spark Tree from Maxim http://kachurovskiy.com/2010/spark-tree/ that has a Custom Renderer with a 3 state checkbox that indicates when a child element is selected. I have also included a custom class for the Data which controls the child elements and parent elements states. This is just a sample so the code is a bit messy, since I did all the clean up in my main project after I established proof of concept. 

Here is the sample with view source enabled. Spark Tree with Checkbox renderer

Capture

Spark Tree Component

First off thank you to Maxim for posting a really great Spark component. It was when I was trying to wrestle with a custom renderer for an mx tree that I started looking to see if someone had developed a Spark Tree component. Not only did I find a great component but it was free to use. Maxim has created this Spark Tree component by extending the spark List component and made it really easy to integrate into your project. One of my struggles with mx tree was that when you created item renderers that had varying height, the scroll bar would keep jumping around depending on what nodes you had expanded and collapsed. The great thing about the Spark Tree component from Maxim is that it extends the list with and by setting useVirtualLayout to false you can render all the nodes at once eliminating the varying size scrollbar. It is also extremely easy to implement your own itemrenderer by using the DefaultItemRenderer as a template. 

ArcCatalog and opening XLSX files

If you have an .xlsx file you want to use in ArcGIS but do not have Excel 2007 installed, you will need to install the 2007 Office System Driver. It can be downloaded from the Microsoft Download Center. If you do not have any version of Microsoft Excel installed, you must install that driver before you can use either .xls or .xlsx files. If you have Excel 2010 installed, you must still install the driver.

http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en