Microsoft standard .NET date format can be used in xsl transform which is a key feature provided using msxsl:script Element.
The following snippet demonstrates using .NET "ToShortDateString" inside XSL transform:-
Above defined method "ToCSharpShortDateString" can be used as follows:-
Now that xsl is ready, lets use this with ASP.NET xml control . Code behind should look something like this.
XmlDocument doc = new...
public string aboutme {
var known = { { "C#" , "Javascript" }, { "ASP.NET", "MVC" } };
return known.ToJson();
}
Wednesday, 24 August 2011
Thursday, 18 August 2011
jqGrid error at line $t.p.colModel[lvc].width += cr;

Recently I am getting an error in jqGrid plugin at the following line :-
$t.p.colModel[lvc].width += cr;
After debugging through the code this issue occurs with in the function
setGridWidth: function (nwidth, shrink)
.....
$t.p.colModel[lvc].width += cr;
.....
where nwidth is null
So while calling method setGridWidth on a grid make sure...
Labels:
JQGrid
Friday, 12 August 2011
Using SQL Server Compact with FluentNHibernate
FluentNHibernate is an alternative to NHibernate that supports Object Relational Mapping framework. Actually FluentNHibernate is build on top of NHibernate that provides strongly typed mapping using c# as opposed to xml mapping (.hbm.xml).
SQL Server CE (Compact edition) is commonly used for small applications as this would not need any packaging and is a simple file copy.
Using FluentNHibernate with SQL Server CE 3.5 file has...
Labels:
FluentNHibernate
JQGrid extension to track row selection between pages
Have been using JQGrid for quite some time now and was pretty impressed with the jqGrid plugin itself.
Ok now, how about extending jqGrid for tracking selection between pages. Here is a jquery extension that does the job.
; (function($) {
$.jgrid.extend({
enableTracking : true,
gridTrackingIds : null,
TrackPageSelection: function (Rowids, selected, currentpageno) {
var currentPage...
Labels:
JQGrid,
JQuery Plugin
Tuesday, 9 August 2011
JQGrid sorting with date and time column using localization
Have been using JQGrid for quite some time now and have got stuck with unable to sort on DateTime columns. But finally managed a way to be able to handle this. Not only to allow sorting but also should be able use localization and display/sort in current local format.
Not use if this is the right way and works for me. The various DateTime formats available are listed at DateTime formats. Assuming the default date format is "The...
Labels:
JQGrid
Subscribe to:
Posts (Atom)