Dynamically call a xslt template

0 Comments

You cannot call a xslt template like: <xsl:variable name="templateName" select="test"></xsl:variable> <xsl:call-template name="$templateName"> <xsl:template name="test"> </xsl:template> The clossed you can get to calling a xslt template dynamically is to use the <xsl:if or <xsl:choose based on

Generic C# function for reading a value from registry

0 Comments

Nice generic read value from registry function on: http://www.codeproject.com/KB/dotnet/frameworkversiondetection.aspx Function can be called like: using System; using Microsoft.Win32; using NUnit.Framework; using Ada.Cdf.Common; namespace Ada.Cdf.Test.Common { [TestFixture] public class RegistryHelperTester { [Test] public void GetRegistryValueTest() {

Set initial sorting on a Telerik RadGrid column

0 Comments

If you want to set an initial sorting on a column on a Telerik RadGrid, use the “NeedDataSource” event and add a GridSortExpression to the MasterTableView.SortExpressions protected void RadGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { // Set

Set initial filter on GridDateTimeColumn in a Telerik RadGrid

3 Comments

If you want to set an initial filter on a Telerik RadGrid, use the “NeedDataSource” event and set the MasterTableView.FilterExpression and use the function MasterTableView.GetColumnSafe protected void RadGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { // Set datasource

How to disable beep when pressing enter on telerik RadGrid

0 Comments

If you are using the <asp:ScriptManager in you’re master page and press enter for filtering the RadGrid, you might hear a beep. Solution This can be avoided by changing the <asp:ScriptManager to <terlerik:RadScriptManager Note: you