MS announced, that there will be no database available for 3rd party applications, like on windows mobile 6.5. Instead of using SqlServerCE the user shall use cloud computing or xml files to store data.

So I searched for alternatives, and found a very pretty proof of concept. This guy is using a modified version of csharp-SQLLite to manage a database in Isolated Storage. I tried it a few minutes ago, and although it has some performance issues yet, it’s working also with the beta release of Windows Phone 7 Development Tools.

Here’s the link: Mobile Development .
Thanks, Dan, you made my day!

The developer Tool for Windows Phone reached beta-status. And Microsoft included into the 380 mb Setup Expression Blend 4 for Windows Phone.
So far the good news.
The bad news: several things have changed from CTP.April to beta – most of all: consolidation and Namespaces. MS advices to totally rebuild your projects, and just copy the content of xaml and xaml.cs files except the template-code.
It took some time, but I got my application running again.
See a detailed list of changes on this page:

The developer Tool for Windows Phone reached beta-status! And Microsoft included Expression Blend 4 for Windows Phone into the 380 mb Setup. Get it here: MS Setup, but make sure to uninstall any CTP version before!

So far the good news.

Bad news are: several things have changed from CTP.April to beta – most of all: consolidation and Namespaces. MS advices to totally rebuild your projects, and just copy the content of xaml and xaml.cs files except the template-code.

It took some time, but I got my application running again.

See a detailed list of changes on this page: MS What’s new in beta version.

Please check out my previous posts (Part1 and Part2) if you haven’t read it yet.

Today I want to show how we can create a generic “GridBaseController for our jqTGrid that we don’t have to implement the “DynamicGridData” controller method in every controller.

For that reason I created a new generic class called “GridBaseController”:

public class GridBaseController<T> : Controller where T : class,new () {
  [HttpPost]
  public ActionResult DynamicGridData(string sidx, string sord, int page,
                                      int rows) {
    var context = new GridEntities<T>();
    return (context.GenericType.ToList().AsQueryable().AsJqGridResult(sidx, sord,
                                                                      page, rows));
  }
}

Here you can see that I changed the “HaackOverflowEntities” to “GridEntities”. This class extends the existing “HaackOverflowEntities” and holds a GenericType which creates an “ObjectSet
based on the passing data object.

  public class GridEntities<T> : HaackOverflowEntities where T : class,new (){
    /// <summary>
    /// Gets the objectset for the generic data type
    /// </summary>
    public ObjectSet<T> GenericType {
      get {
        if ((_genericType == null)) {
          _genericType = base.CreateObjectSet<T>();
        }

        return _genericType;
      }
    }
    private ObjectSet<T> _genericType;
  }

The only thing we have to do now is inherit our controllers from the ”GridBaseController”.

public class SimpleController : GridBaseController<Question> {         
  //`
  // GET: /Simple/           
  public ActionResult Index() {                   
    return View();
  }
}

I think with the use of the “GridBaseController” we can create now very fast and simple jqGrids.

Here is the new source code if you are interested.

We are currently very busy in preparing the next Release of AMUSE – most of the features are allready completed so we compiled a little Video!

Currently implemented new Features:

  • smaller and faster Setup
  • Single Step Simulation
  • Sub and extended Diagrams will be opened on simulation
  • Simulation stops if user switches Diagram
  • improved external Reference feature (easier for .net implementations)
  • Possibility to update Referenced (easier for .net implementations)
  • Testcases can  be defined via contraints and are taken into account during simulation
  • AMUSE Addin Window in Enterprise Architect 8.0 is now dockable
  • Toolbar gives for better usability than the previous context menus

It can also be downloaded.

We are still working on other new Features like the possibility to simulate Activity Diagrams – and a HTTP Bridge to connect Embedded Hardware….

Other than that we are working on a showcase for Windows CE and Lego Mindstorms….

In my last post I was talking about my idea to use the jqGrid to create a grid based on the data model. In this post I want to take the existing jqTGrid and go one step further. – What if we want to hide a column? What about the column header text?

The first step what I did for that was to change Linq2Sql to the Entity Framework.

That is actually not a big deal and I was surprised that everything worked so straight but when I saw the page I figured out that there are new columns.

image
(weiterlesen…)

If you searching the internet for jqGrid and ASP.NET MVC you will find many examples,
but all of them always define the jqGrid columns – see for an example the blog post from Phil Haack.
If you have a lot of jqGrids in your project you don’t want to define every single column for all the grids.

<script type="text/javascript">
    jQuery(document).ready(function () {
        jQuery("#list").jqGrid({

            url: '/Home/GridData/',
            datatype: 'json',
            mtype: 'GET',

            colNames: ['Id', 'Votes', 'Title'],
            colModel: [
          { name: 'Id', index: 'Id', width: 40, align: 'left' },

          { name: 'Votes', index: 'Votes', width: 40, align: 'left' },

          { name: 'Title', index: 'Title', width: 200, align: 'left'}],

            pager: jQuery('#pager'),
            rowNum: 10,
            rowList: [5, 10, 20, 50],

            sortname: 'Id',
            sortorder: "desc",
            viewrecords: true,

            imgpath: '/scripts/themes/coffee/images',
            caption: 'My first grid'
        });
    });

</script>

So I came up with the idea, why not just pass the data model class and let the grid create itself based
on the model!
(weiterlesen…)

Maybe I should consider to rethinking my code style guidlines. As I opened my AMUSE project today I got the following message from Visual Studio (9.0).

Never seen it bevor ;)

image

Just checked witch file was responsible for this,… seems like VS doesn’t like the embedded MDG Technology file (XML) of Enterprise Architect.