To clear sorting setting in kendo grid reset sort array with blank object .
var grid = $("#UsersGrid" );
if (grid.data("kendoGrid" ).dataSource != null) {
if (grid.data("kendoGrid" ).dataSource._sort != null && grid.data("kendoGrid" ).dataSource._sort != undefined)
{
grid.data("kendoGrid" ).dataSource._sort[0] = {};
}
}
Search This Blog
Tuesday, December 27, 2016
Thursday, December 15, 2016
How to generate proxy class from WCF/ASMX using svcutil?
Generate proxy class for WCF
svcutil http://localhost/MyService/ClassName.svc /Language=c# /t:Code /out:ClassNameProxy.cs /config:ClassNameProxy.config
Generate proxy class for ASMX web service
svcutil http://localhost/MyService/ClassName.asmx /Language=c# /t:Code /out:ClassNameProxy.cs /config:ClassNameProxy.config
Note: This command line use runtime serializer by default. To use other serializer like xml serializer user /serializer: attribute in command line as below-
SvcUtil.exe http://localhost/MyService/ClassName.asmx /serializer:XmlSerializer /out:"d:Projects\ClassNameProxy.cs" /config:"d:\projects\ClassNameProxy.config"
svcutil http://localhost/MyService/ClassName.svc /Language=c# /t:Code /out:ClassNameProxy.cs /config:ClassNameProxy.config
Generate proxy class for ASMX web service
svcutil http://localhost/MyService/ClassName.asmx /Language=c# /t:Code /out:ClassNameProxy.cs /config:ClassNameProxy.config
Note: This command line use runtime serializer by default. To use other serializer like xml serializer user /serializer: attribute in command line as below-
SvcUtil.exe http://localhost/MyService/ClassName.asmx /serializer:XmlSerializer /out:"d:Projects\ClassNameProxy.cs" /config:"d:\projects\ClassNameProxy.config"
Subscribe to:
Posts (Atom)