Recently whilst putting a .NET web project to bed we had yet more
reports from the field of some rendering issues with Internet Explorer
7. Of course we had tested IE 7 using the compatibility modes present
within later versions of IE but seemingly this does not throw up many
issues that arise in the ‘real’ browser.
I know, I know…., in an ideal world we’d all have the latest and
greatest browsers but in the real world companies are not so ‘lithe’
when it comes IT infrastructure.
The issue being reported was that one form displaying an accordion
control, which in turn had embedded within it a scrollable div which in
turn contained three or four divs as well as a JQGrid was having ‘issues
of parentage’… When the main scrollable div was being scrolled all
underlying divs were being rendered correctly and scrolling with the
content whilst the JQGrid was not moving at all, just merely floating in
space and generally getting in the way. After a lot of digging I found
the following solution that cured my issues:- The main HTML was defined
thus
with the ‘QuestionnaireGrid’ being the location that the javascript
JQGrid is rendered into, The issue however seems to lie with the parent
div and not the JQGrid itself, what I needed to do was attach a style
via the css to the ‘QuestionnaireGridContainer’ div like thus:
This ‘position:relative’ style in this instance
seems to explicitly force all children objects to behave correctly with
regard to their location within time and space and now when i scroll my
div content all child objects are scrolled exactly as I would expect.
Written by: Conrad Rowlands, Senior Systems Architect and Developer, DSCallards
As part of a recent release of a web application we decided that in
order to make the best use of error logs being created by Elmah we
should email these to stakeholders as and when they happen to improve
the general response times. Here is how we set up ‘that thing’ in our
.NET MVC4 application! The red sections indicate properties that were
either added or edited to enable the email functionality and green
section indicate those fields you will need to change to reflect your
choice of smtp server.
Click here for the full blog.
Written by: Conrad Rowlands, Senior Systems Architect and Developer, DSCallards,
Whilst coding up a recent .NET MVC application built heavily using
JQGrid I came across a requirement which to be honest I struggled with
at first . In short I wanted to, on a column by column basis, colorise
the icons that were to be displayed. Now JQGrid supports a icon colorset
which seemingly cannot be changed easily so in the end I had to resort
to changing the styles. Here is how I achieved this, warts and all….
Firstly of course JQGrid uses the standard set of JQuery Ui Icons to
provide its user interface. I say ‘Icons’ but this is of course provided
as one image which is broken up into sprites of 16 x 16 pixels, more of
that later. So the first step is to download the set of colour icons
that you require…. JQueryUI.com provides a standard set of these icons
rolled in every colour you can dream so its in fact very easy. The
hardest part is arriving at your chosen colours!
Click here for the full blog.
Written by: Conrad Rowlands, Senior Systems Architect and Develope, DSCallards
Now I can’t lie to you, I’m not an insanely practical man….. When it
comes to home repairs and the like I’d prefer to pay a man (or woman)
who knows what they are doing to do the job; They won’t swear half as
much, will generally get the job done without resort to every ill
fitting tool in my toolbox, without the use of a calendar and they’ll
also have an understanding of the problems that are likely to be
encountered on the way. More importantly they’ll plan to avoid the
potential issues. (in)Famously I once tweeted that ‘there are only so
many ways that 15 pieces of wood can be put together to make a wardrobe,
I know because I’ve tried all the others!’
I once knew a guy who was immensely practical, being a general
builder for much of his life I asked, and he agreed, to assist me with
repairing some windows as I wanted to learn; maybe I could become self
sufficient in all my windowing needs and move onto doors and the like…
possibly take over the world, I don’t know what I was thinking. Anyway
we first needed some strips of wood to replace the pieces that we were
going to have to break in repairing the window. How hard could this be? I
mean it’s just a piece of wood right, so long as the dimensions are
fine and it looks clean…. However I was aware of time passing as we
stood in the local ‘shed’ looking at various seemingly identical pieces
of strip wood. After he had discarded what seemed like the 7th identical
piece I asked what he was doing… I don’t remember his exact response
but I do remember that he was particularly keen to ensure that the grain
of the wood was absolutely as he needed for a good deal many reasons.
It was at this point that my practical life in windows was curtailed as
there was clearly way more to think about that I had previously
imagined.
I know what you re thinking….. no code snippets in a developer blog?
The answer this week is a resounding No! Before one line of code can be
written the problem MUST be understood in it’s entirety, you can’t code
for a problem until you understand the problem and you can’t code a
solution unless you understand how your chosen platform allows you to
best solve a problem, well you could but like with the window if we’d
used just any piece of wood it would likely have just broken midway
through the job.
I guess you can sum this post up in one word ‘Experience.’
Written by: Conrad Rowlands, Senior Systems Architect and Developer, DSCallards
Of late I have been working with the .NET MVC JQGrid control for a
relatively simple project and have found myself asking all sorts of
questions of the technology which do not seem to be easily and readily
supported without resorting to hacking around in HTML. One such example
came up recently where I needed to default the value for a column upon
creating a new Company record. After posting on the forums I
was directed to a ‘sample’ which actually showed me nothing even though
the forum poster had responded with an answer that was meaningful. I
thus decided to document the actual methodology so that you don’t have
to!
In short I have a Responder object which upon creation needs the
‘ResponderType’ property to be primed with the value ’2′ to indicate
what type of responder we are creating. I have included a full listing
of the ‘MVC’ components although only the items highlighted in bold red
are actually pertinent to this blog post. The rest is provided for
completeness (although as the code has been derived in reality from some
abstracted classes there may be some errors, so apologies in advance).
Click here for the full blog.
Written by: Conrad Rowlands, DSCallards, Senior Systems Architect & Developer
DSCallards has been delivering value-driven Business Intelligence (BI) for over ten years to hundreds of customers and understands the main pitfalls when implementing a new solution.
So, if you are thinking about investing in a new BI solution, we would recommend that you consider the following six points when selecting your solution partner. Each of our recommendations is backed up with a customer case study, which you may find an interesting read!
- In-depth Understanding: During the consultancy period of the project it’s important that you and your BI solution provider are completely attuned, and they have an absolute understanding of your business architecture, its drivers, and goals. "DSCallards really listened to our needs, often facilitating discussions we might not have had internally, to get a clear picture of our objectives and where the value lay. They didn’t dictate how we should do business – they simply enabled us to get more value from our data to hit our targets while preserving our uniqueness”. More
- Credibility: Choose a solution provider that not only has a positive ‘can do’ attitude, but one that is proven, with a track record of working with reputable industry players. To evolve and explore all project possibilities, it’s important you feel a good level of trust with your solution provider, and that you feel they will accommodate your suggestions and requests. “We checked DSCallards website and liaised with our SAP Business Objects Partner Manager who told us that DSCallards were a highly regarded SAP Business Objects Partner”. More.
- Excellent Support: It’s important to work with a BI solution provider who can offer you support throughout the project, not just once your solution is implemented. “Support provided during the evaluation phase was very good. We believe that if the software vendor can offer good free support during the trial, then this is a good indication of the type of support we would be receiving in the event that they were selected as the solution of choice”. More.
- Value for Money: In times of austerity, this speaks for itself! "DSCallards are very good value for money”. More.
- End-to-End Service: A BI solution provider who can offer a complete service package is invaluable, it ensures a smoother project experience for both parties, particularly when keeping within budget and set timescales is critical. “Babcock is extremely satisfied with the services and support provided by DSCallards. They delivered to budget and on time going above and beyond the call of duty to ensure a successful roll out of this new technology across our organisation – not an easy task!” More.
- Innovation and Added Value: Many BI solution providers can deliver what you ask of them, but do they really add any value? Aim to seek a solution provider who can understand your business, listen to your ideas, and innovatively shape the project, to deliver growth and efficiencies to your business. “The project grew rapidly in response to evolving business needs, and has delivered value at every step along the way – progressing from model reporting to a sophisticated, real-time business intelligence solution that is helping us drive the business forward. And it was all achieved without significant disruption to our day-to-day operations and at an affordable price”. More.
This is, in our humble opinion, the six-point guide. There are of course many other considerations exclusive to your own organisation. If you would like to discuss how we can help you in more detail, let us know ... we're a really friendly group of consultants!
Whilst working on a small new project to write a console application
that examines images for certain kinds of colour data I started, as I
always do, with looking at how best to achieve this in a performant
manner for the client. There is nothing worse than an application that
appears to hang whilst an invisible piece of processing occurs. True, in
this instance it was a console app that would be automagically
scheduled for use and so this was not such a design issue but I still
think it’s good practice. The main remit of the application was to
iterate over every single pixel within an image file and to perform
various calculations against the colour data that we obtained, the
calculations were fairly simple and thus set in stone and so no real
performance gains could be made out of a refactor, however this business
of iterating over every pixel….
Click here for complete article.
Written by Conrad Rowlands, Senior Developer, DSCallards
For more information, visit www.dscallards.com