Free Dynamic Inline Editable Grid

Exciting news!

In one of my previous posts I talked about a DataTableSerialiser that I made available for download here through my blog. In that blog post I described a way to get a standard DataTable across to populate an AJAX data grid in an ASP.NET page. Today Im going to make available the grid that was developed for use in conjunction with the DataTableSerialiser.

This is a data grid that supports dynamic row adding/deleting while letting the user edit the data in each row inline. The best way to understand it is to see it in action. I will work on providing more samples but for now please have a look at the link here. Its important to mention that this grid wasn’t built by me from the ground up; it was pieced and tweaked from many many little pieces of components that I came across while looking for a solution to my requirement and then further developed and customised when I realised that a “ready-made” solution was not available.

Read the rest of this entry »

Visual Studio 2010 Project Reference Issue

In the course of past few weeks as I was getting more and more used to Visual Studio 2010 I noticed an issue with adding project references within a solution when the projects are targetting different versions of framework, eg. .NET 4 and .NET 4 Client Profile.

Read the rest of this entry »

Compiler Extensions

In the last post I talked about WCF design pattern choices and in particular about “Contract sharing” approach where Service Factory is used. In the examples I gave on how to utilise a sample WCF Service Factory I showed “.Close()” and “.Abort()” methods and now I will explain how I got those methods to come up on the IContract without having to also implement them as methods in each of the services that Service Factory produces. Thus leaving Service Factory generic.

Read the rest of this entry »

WCF Design Pattern

A few years ago when I first looked at WCF and read beginners guides and built few simple projects I thought I had a pretty good idea about what the purpose is and how best to use it.

Now, almost 2.5 years later I can retrospectively conclude that I had no idea :D Most books and articles I read at a time were all giving me reasons to use Visual Studio’s SvcUtil.exe to generate proxies to prebuilt WCF services. The projects were buildable and even runnable but the efforts you had go through in updaing source controlled services and proxies were astonishing. In a solution with many services and proxies we have been battling problems every day. On top of these issues there have also been problems of unclosed proxies which manifest themselves as timeout exceptions on new connection attempts.

The purpose of article entry is not to critisise WCF, however :) . It is simply to educate a WCF beginner on some options that they have in implementing their own services.

Read the rest of this entry »

Serialisation of Event Delegates

Recently I was faced with the issue of serialising INotifyPropertyChanged implentors.

The issue was that for the binary formatter I was using I needed to specify that I didnt want to serialise all the observers of the NotifyPropertyChanged event. Even though I knew what I wanted (you can see in the article here) I couldnt get it easily implemented in VB.
Read the rest of this entry »

JSON ADO.NET DataTable Serialiser

G’day!

And so to kick off things here I will introduce one of my latest helper classes, the JSON Table Serialiser.

The need for this arose when I was working on a project where a user editable data grid had to be implemented in the browser. While there are plenty of “off-the-shelf” solutions being sold out there they all happened to be out of scope for the job at hand (due to pricing, overcomplexities, time to implement, etc). So I have started a journey of creating something reasonably light weight and capable of performing a simple task of getting an ADO.NET DataTable across from the web service to the client and back. I have found on this journey that a lot of people are interested in this and only a handful of examples exist and those examples only show a one-way solution, which is to get your DataTable to the client.

A frequent comment in the posts I have seen reads something like: “How do you get the “result” back after working with it?”. And replies to that are “Well there is no easy way..”.

I have looked at what the basic serialisation routines do and came up with the solution that caters for my circumstance of getting the JSON Table object back to the webservice. The complete project source can be found here.

Read the rest of this entry »

Intro!

KyryllHello and welcome to my blog!

You were probably browsing around, trying to find a solution to some problem and somehow stumbled upon this blog. And it’s a good thing :)

Introductions first!

My name’s Kyryll (as you can see from the title of the blog) and I work for a company called “mokom”.  As mokom is nearing completion and a launch of our grand “yet-to-be-revealed” product, it was decided to put up solutions and walkthroughs to some of the problems that we here have encountered on the long journey of our development. The aim here is to support the coding community and give something back :D .

Read the rest of this entry »