<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>MVC Controls Toolkit</title><link>http://mvccontrolstoolkit.codeplex.com/project/feeds/rss</link><description>MVC Controls Toolkit is a complete set of advanced server controls for MVC ranging from a templated edit-on line datagrid to date-picker and custom formatted textboxes, supporting client validation and globalization. Controls are able to bind properly their input to the ViewModel</description><item><title>New Post: Unterminated call stack on Client Block</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444169</link><description>&lt;div style="line-height: normal;"&gt;When I run that, every time I hit the SortableList button to add a new line, I get this error:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Uncaught Error: Unable to parse bindings.&lt;br /&gt;
Message: ReferenceError: addNewItem is not defined;&lt;br /&gt;
Bindings value: click: addNewItem &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If I load a line before passing it to the view (by initializing a new subclass in the constructor of the model of this view (and calling said constructor before passing it to the view), I can work with it, using both the SelectButtons and the Client Block perfectly&lt;br /&gt;
But when adding a new line it shows ALL the different templates for each subclass (instead of 1 and having the other ones hidden) and throws that error.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
About my 2nd approach, I tried doing it on my actual project.&lt;br /&gt;
At first it works alright, the first time I go to the view. It binds attributes alright.&lt;br /&gt;
However, when I try testing server side validation (basically try passing &amp;quot;bad&amp;quot; parameters), it breaks.&lt;br /&gt;
&lt;br /&gt;
The first time it does validation it does it perfectly...for the most part.&lt;br /&gt;
Before doing the initial POST, I fiddle around with the SelectButtons, adding new values, then changing the subclass, adding other attributes, forcing &amp;quot;bad&amp;quot; values (that will fail the validation), etc&lt;br /&gt;
When the 1st POST arrives at the controller, it does all [Required] and &amp;quot;normal&amp;quot; validation correctly&lt;br /&gt;
However I tried a &amp;quot;complex&amp;quot; validation (over the list of all subclasses, the part with &amp;quot;&lt;a href="mailto:@Html.ValidationMessageFor(m" rel="nofollow"&gt;@Html.ValidationMessageFor(m&lt;/a&gt; =&amp;gt; m.Tipos)&amp;quot;), and one time it didn't validate it, and at another time it did (when it should have validated them both...as in they were both wrong and it should have showed up in the ModelState).&lt;br /&gt;
&lt;br /&gt;
Itt throws A LOT of &amp;quot;NullReferenceException&amp;quot; in this part:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;strong&amp;gt;@item.SelectionButton(&amp;quot;Texto&amp;quot;, &amp;quot;insertTexto&amp;quot;, item.PrefixedId(&amp;quot;attributeType&amp;quot;), item.PrefixedId(&amp;quot;TextoSelection&amp;quot;), ManipulationButtonStyle.Link)&amp;lt;/strong&amp;gt;&lt;/code&gt;&lt;/pre&gt;

Not only that, but when I get the model back to the view, show the validation and let the user edit it, if I make changes to it (for instance use the SelectButtons to choose a new subclass where the error happened), or add a new subclass (with the SortedList button), or stuff like that, either the model binder makes the whole model null (when passing it to the controller), or it makes some of the parameters null when they actually weren't&lt;br /&gt;
&lt;br /&gt;
The whole thing is too chaotic, at times it works and at times it doesn't, at times some validation works and at times it doesnt, all the while the NullReferenceException keeps being triggered, etc.&lt;br /&gt;
&lt;br /&gt;
I even tried this new &amp;quot;fix&amp;quot; (initializing SelectedItems in ComboboxViewModel) and see if it worked with that, but instead of showing the ComboBoxViewModel template it shows the literal string &amp;quot;{v@{var bindings = Html.ClientBindings(); bindings .AddMethod(&amp;quot;addNewItem&amp;quot;,...&amp;quot; (that is inside the template)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm totally lost right now so I don't even know what to ask of you.&lt;br /&gt;
You are the lead developer so you shouldn't dwell with every single &amp;quot;technical support&amp;quot; problem ever either.&lt;br /&gt;
&lt;br /&gt;
I just want to know if you can recommend a way for me to do this (Editable list of subclasses+Client Block+Validation+Free modifiable values after validation fails) in a simple way if possible without the need of too much configuration or things that could go wrong.&lt;br /&gt;
Do you know of any example of something like this? Maybe just imitating the code a little bit of something that actually works may be better than try it on my own, specially since I need to solve this quickly for my project :(&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sorry for the unending list of problems, errors and stuff &amp;gt;_&amp;gt;&lt;br /&gt;
The thing is that I tried for weeks to do this and couldn't find a single way to do so.&lt;br /&gt;
I tried normal MVC, and it was impossible to work (no &amp;quot;client-side&amp;quot; way to manipulate the subclasses and stuff)&lt;br /&gt;
I tried Knockout MVC and it didn't work either (had lots of problems and I couldn't fix them)&lt;br /&gt;
I tried using knockout.js directly, but it was impossible for me to map the subclasses and stuff to a javascript object, bind it and make it work&lt;br /&gt;
&lt;br /&gt;
This is the first one that I think may actually work, so I really need it to :/&lt;br /&gt;
&lt;br /&gt;
I can't believe it's so hard to do something like this in MVC &amp;gt;_&amp;gt;&lt;br /&gt;
&lt;/div&gt;</description><author>gonzaw</author><pubDate>Tue, 21 May 2013 01:22:26 GMT</pubDate><guid isPermaLink="false">New Post: Unterminated call stack on Client Block 20130521012226A</guid></item><item><title>New Post: Unterminated call stack on Client Block</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444169</link><description>&lt;div style="line-height: normal;"&gt;You are right I hadn't initialized SelectedItem, thanks!&lt;br /&gt;
&lt;br /&gt;
Yet....&lt;br /&gt;
&lt;br /&gt;
I'm sorry that I'm bothering you this much, but I new to your toolkit and it's a little hard to use at times :(&lt;br /&gt;
&lt;br /&gt;
I have some new problems.&lt;br /&gt;
&lt;br /&gt;
First I'll try setting some context.&lt;br /&gt;
I want to basically combine the &amp;quot;Heterogenous list with subclasses&amp;quot; example with the &amp;quot;Client box with inline transformations&amp;quot; example&lt;br /&gt;
I want a variable and editable list of different subclasses that belong to a specific superclass, and one of those specific subclasses uses a Client Box to edit a &amp;quot;List&amp;lt;string&amp;gt;&amp;quot; property of it (the above &amp;quot;combobox&amp;quot; type).&lt;br /&gt;
I want this to be posted in a form, and be validated.&lt;br /&gt;
Each type is validated in different ways, etc.&lt;br /&gt;
&lt;br /&gt;
I tried doing 2 approaches to this:&lt;br /&gt;
&lt;br /&gt;
1) Do a &amp;quot;mock project&amp;quot; (the above one) to test the Client Block for ComboBox&lt;br /&gt;
&lt;br /&gt;
2)Ignore the ComboBox subclass (basically remove it, or at least remove the &amp;quot;List&amp;lt;string&amp;gt;&amp;quot; property that needs the Client Box) and try to see if it works that way.&lt;br /&gt;
&lt;br /&gt;
I encountered problems in each, and I'm not sure exactly how to handle it.&lt;br /&gt;
&lt;br /&gt;
In (1) this is basically the code:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;@using (Html.BeginForm(&amp;quot;BO_CrearSitioTest&amp;quot;, &amp;quot;BackOffice&amp;quot;))
{

@Html.ValidationSummary(true)
&amp;lt;div&amp;gt;
&amp;lt;!-- bunch of unrelated properties of the model --&amp;gt;
&amp;lt;/div&amp;gt;    
&amp;lt;div&amp;gt; 
    @Html.LabelFor(m =&amp;gt; m.Tipos)
    @Html.ValidationMessageFor(m =&amp;gt; m.Tipos)

@Html.SortableListFor(m =&amp;gt; m.Tipos, 
        _S.H&amp;lt;TipoAtributoModel&amp;gt;(        
         @&amp;lt;text&amp;gt;

           @{HtmlHelper&amp;lt;BooleanoModel&amp;gt; hBooleano;
           HtmlHelper&amp;lt;EnteroModel&amp;gt; hEntero;
           HtmlHelper&amp;lt;ComboBoxModel&amp;gt; hComboBox;
           HtmlHelper&amp;lt;FechaModel&amp;gt; hFecha;
           HtmlHelper&amp;lt;RealModel&amp;gt; hReal;
           HtmlHelper&amp;lt;TextoModel&amp;gt; hTexto;}
                
        &amp;lt;strong&amp;gt;@item.SelectionButton(&amp;quot;Booleano&amp;quot;, &amp;quot;insertBooleano&amp;quot;, item.PrefixedId(&amp;quot;attributeType&amp;quot;), item.PrefixedId(&amp;quot;BooleanoSelection&amp;quot;), ManipulationButtonStyle.Link)&amp;lt;/strong&amp;gt;
        &amp;lt;strong&amp;gt;@item.SelectionButton(&amp;quot;Entero&amp;quot;, &amp;quot;insertEntero&amp;quot;, item.PrefixedId(&amp;quot;attributeType&amp;quot;), item.PrefixedId(&amp;quot;EnteroSelection&amp;quot;), ManipulationButtonStyle.Link)&amp;lt;/strong&amp;gt;
        &amp;lt;strong&amp;gt;@item.SelectionButton(&amp;quot;ComboBox&amp;quot;, &amp;quot;insertComboBox&amp;quot;, item.PrefixedId(&amp;quot;attributeType&amp;quot;), item.PrefixedId(&amp;quot;ComboBoxSelection&amp;quot;), ManipulationButtonStyle.Link)&amp;lt;/strong&amp;gt;
        &amp;lt;strong&amp;gt;@item.SelectionButton(&amp;quot;Fecha&amp;quot;, &amp;quot;insertFecha&amp;quot;, item.PrefixedId(&amp;quot;attributeType&amp;quot;), item.PrefixedId(&amp;quot;FechaSelection&amp;quot;), ManipulationButtonStyle.Link)&amp;lt;/strong&amp;gt;
        &amp;lt;strong&amp;gt;@item.SelectionButton(&amp;quot;Real&amp;quot;, &amp;quot;insertReal&amp;quot;, item.PrefixedId(&amp;quot;attributeType&amp;quot;), item.PrefixedId(&amp;quot;RealSelection&amp;quot;), ManipulationButtonStyle.Link)&amp;lt;/strong&amp;gt;
        &amp;lt;strong&amp;gt;@item.SelectionButton(&amp;quot;Texto&amp;quot;, &amp;quot;insertTexto&amp;quot;, item.PrefixedId(&amp;quot;attributeType&amp;quot;), item.PrefixedId(&amp;quot;TextoSelection&amp;quot;), ManipulationButtonStyle.Link)&amp;lt;/strong&amp;gt;
        &amp;lt;!-- Este es el template para el tipo Booleano --&amp;gt;
        &amp;lt;div id='@item.PrefixedId(&amp;quot;insertBooleano&amp;quot;)' class='AttributeListItem @item.PrefixedId(&amp;quot;attributeType&amp;quot;)'&amp;gt;
            @item.DescendatntCast(m =&amp;gt; m).To(out hBooleano)
            &amp;lt;div&amp;gt;
                @hBooleano.LabelFor(m =&amp;gt; m.Nombre) 
                @hBooleano.TextBoxFor(m =&amp;gt; m.Nombre) 
                @hBooleano.ValidationMessageFor(m =&amp;gt; m.Nombre)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hBooleano.LabelFor(m =&amp;gt; m.Requerido) 
                @hBooleano.CheckBoxFor(m =&amp;gt; m.Requerido) 
                @hBooleano.ValidationMessageFor(m =&amp;gt; m.Requerido)
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;!-- Este es el template para el tipo Entero --&amp;gt;
        &amp;lt;div id='@item.PrefixedId(&amp;quot;insertEntero&amp;quot;)' class='AttributeListItem @item.PrefixedId(&amp;quot;attributeType&amp;quot;)'&amp;gt;
        @item.DescendatntCast(m =&amp;gt; m).To(out hEntero)
            &amp;lt;div&amp;gt;
                @hEntero.LabelFor(m =&amp;gt; m.Nombre)
                @hEntero.TextBoxFor(m =&amp;gt; m.Nombre)
                @hEntero.ValidationMessageFor(m =&amp;gt; m.Nombre)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hEntero.LabelFor(m =&amp;gt; m.Requerido)
                @hEntero.CheckBoxFor(m =&amp;gt; m.Requerido)
                @hEntero.ValidationMessageFor(m =&amp;gt; m.Requerido)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hEntero.LabelFor(m =&amp;gt; m.RangoInicio)
                @hEntero.TextBoxFor(m =&amp;gt; m.RangoInicio)
                @hEntero.ValidationMessageFor(m =&amp;gt; m.RangoInicio)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hEntero.LabelFor(m =&amp;gt; m.RangoFin)
                @hEntero.TextBoxFor(m =&amp;gt; m.RangoFin)
                @hEntero.ValidationMessageFor(m =&amp;gt; m.RangoFin)
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;

         &amp;lt;!-- Este es el template para el tipo ComboBox --&amp;gt;
        &amp;lt;div id='@item.PrefixedId(&amp;quot;insertComboBox&amp;quot;)' class='AttributeListItem @item.PrefixedId(&amp;quot;attributeType&amp;quot;)'&amp;gt;
        @item.DescendatntCast(m =&amp;gt; m).To(out hComboBox)
            &amp;lt;div&amp;gt;
                @hComboBox.LabelFor(m =&amp;gt; m.Nombre)
                @hComboBox.TextBoxFor(m =&amp;gt; m.Nombre)
                @hComboBox.ValidationMessageFor(m =&amp;gt; m.Nombre)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hComboBox.LabelFor(m =&amp;gt; m.Requerido)
                @hComboBox.CheckBoxFor(m =&amp;gt; m.Requerido)
                @hComboBox.ValidationMessageFor(m =&amp;gt; m.Requerido)
            &amp;lt;/div&amp;gt;
            
            &amp;lt;div id=&amp;quot;ComboBoxViewModelContainer&amp;quot;&amp;gt;
            {
                var comboBoxValoresHelper =
                  hComboBox.TransformedHelper(
                      m =&amp;gt; m.PosiblesValores,
                      new ComboBoxViewModel());
                      }
                hComboBox.ValidationMessageFor(m =&amp;gt; m.PosiblesValores)
                comboBoxValoresHelper.TemplateFor(m =&amp;gt; m, &amp;quot;Template/ComboBoxViewModelTemplate&amp;quot;, null, true, &amp;quot;valoresHandling&amp;quot;, &amp;quot;ComboBoxModelContainer&amp;quot;, true)
           
            &amp;lt;/div&amp;gt; 
        &amp;lt;/div&amp;gt;

        &amp;lt;!-- Este es el template para el tipo Fecha --&amp;gt;
        &amp;lt;div id='@item.PrefixedId(&amp;quot;insertFecha&amp;quot;)' class='AttributeListItem @item.PrefixedId(&amp;quot;attributeType&amp;quot;)'&amp;gt;
        @item.DescendatntCast(m =&amp;gt; m).To(out hFecha)
            &amp;lt;div&amp;gt;
                @hFecha.LabelFor(m =&amp;gt; m.Nombre)
                @hFecha.TextBoxFor(m =&amp;gt; m.Nombre)
                @hFecha.ValidationMessageFor(m =&amp;gt; m.Nombre)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hFecha.LabelFor(m =&amp;gt; m.Requerido)
                @hFecha.CheckBoxFor(m =&amp;gt; m.Requerido)
                @hFecha.ValidationMessageFor(m =&amp;gt; m.Requerido)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hFecha.LabelFor(m =&amp;gt; m.Formato)
                @hFecha.TextBoxFor(m =&amp;gt; m.Formato)
                @hFecha.ValidationMessageFor(m =&amp;gt; m.Formato)
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;

        &amp;lt;!-- Este es el template para el tipo Real --&amp;gt;
        &amp;lt;div id='@item.PrefixedId(&amp;quot;insertReal&amp;quot;)' class='AttributeListItem @item.PrefixedId(&amp;quot;attributeType&amp;quot;)'&amp;gt;
        @item.DescendatntCast(m =&amp;gt; m).To(out hReal)
            &amp;lt;div&amp;gt;
                @hReal.LabelFor(m =&amp;gt; m.Nombre)
                @hReal.TextBoxFor(m =&amp;gt; m.Nombre)
                @hReal.ValidationMessageFor(m =&amp;gt; m.Nombre)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hReal.LabelFor(m =&amp;gt; m.Requerido)
                @hReal.CheckBoxFor(m =&amp;gt; m.Requerido)
                @hReal.ValidationMessageFor(m =&amp;gt; m.Requerido)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hReal.LabelFor(m =&amp;gt; m.RangoInicio)
                @hReal.TextBoxFor(m =&amp;gt; m.RangoInicio)
                @hReal.ValidationMessageFor(m =&amp;gt; m.RangoInicio)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hReal.LabelFor(m =&amp;gt; m.RangoFin)
                @hReal.TextBoxFor(m =&amp;gt; m.RangoFin)
                @hReal.ValidationMessageFor(m =&amp;gt; m.RangoFin)
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;


        &amp;lt;!-- Este es el template para el tipo Texto --&amp;gt;
        &amp;lt;div id='@item.PrefixedId(&amp;quot;insertTexto&amp;quot;)' class='AttributeListItem @item.PrefixedId(&amp;quot;attributeType&amp;quot;)'&amp;gt;
        @item.DescendatntCast(m =&amp;gt; m).To(out hTexto)
            &amp;lt;div&amp;gt;
                @hTexto.LabelFor(m =&amp;gt; m.Nombre)
                @hTexto.TextBoxFor(m =&amp;gt; m.Nombre)
                @hTexto.ValidationMessageFor(m =&amp;gt; m.Nombre)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hTexto.LabelFor(m =&amp;gt; m.Requerido)
                @hTexto.CheckBoxFor(m =&amp;gt; m.Requerido)
                @hTexto.ValidationMessageFor(m =&amp;gt; m.Requerido)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hTexto.LabelFor(m =&amp;gt; m.TamMinimo)
                @hTexto.TextBoxFor(m =&amp;gt; m.TamMinimo)
                @hTexto.ValidationMessageFor(m =&amp;gt; m.TamMinimo)
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                @hTexto.LabelFor(m =&amp;gt; m.TamMaximo)
                @hTexto.TextBoxFor(m =&amp;gt; m.TamMaximo)
                @hTexto.ValidationMessageFor(m =&amp;gt; m.TamMaximo)
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt; 
        @item.ViewList(item.PrefixedId(&amp;quot;attributeType&amp;quot;), &amp;quot;attributeSelected&amp;quot;, &amp;quot;insertTexto&amp;quot;)
    
    @item.SortableListDeleteButton(&amp;quot;Borrar Tipo&amp;quot;, ManipulationButtonStyle.Link)
    &amp;lt;/text&amp;gt;
        ),
        htmlAttributesItems: new Dictionary&amp;lt;string, object&amp;gt;{{&amp;quot;class&amp;quot;, &amp;quot;AtributoListItem&amp;quot;}},
         itemContainer: ExternalContainerType.div,
         allItemsContainer: ExternalContainerType.div,
         canSort: false
         )

 &amp;lt;/div&amp;gt;   
  &amp;lt;div class='ControlPanel'&amp;gt;
 @Html.SortableListAddButtonFor(m =&amp;gt; m.Tipos, &amp;quot;Agregar Tipo&amp;quot;) &amp;lt;input type='submit' value='Crear Sitio' /&amp;gt;
 &amp;lt;/div&amp;gt;
}

@section Scripts{   
    @Scripts.Render(&amp;quot;~/Scripts/MVCControlToolkit.Controls-2.4.0.js&amp;quot;)     
    @Scripts.Render(&amp;quot;~/Scripts/knockout.all-2.4.0.min.js&amp;quot;)        
    @Scripts.Render(&amp;quot;~/Scripts/MvcControlToolkit.Utils-2.4.0.js&amp;quot;)   
}&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>gonzaw</author><pubDate>Tue, 21 May 2013 00:49:11 GMT</pubDate><guid isPermaLink="false">New Post: Unterminated call stack on Client Block 20130521124911A</guid></item><item><title>New Post: Unterminated call stack on Client Block</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444169</link><description>&lt;div style="line-height: normal;"&gt;The message Message: TypeError: Cannot read property 'length' of null; &lt;br /&gt;
&lt;br /&gt;
make sense...something good is happening...but something is null.&lt;br /&gt;
&lt;br /&gt;
Normally we have this problem when an IEnumerable that must me transferred to the client viewmodel is null. In this casse the knockout mapping  function that creates automatically observables, is not able to understand it is an IEnumerable...so it doesnt create an observableArray....and this creates problem when you try to bind this property to something that requires an observableArray.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I suspect your SelectedItems are null.... NEVER leave IEnumerables properties null, always put an empty IEnumerable in them, so an empty array is created when the value is transformed into javascript....so knockout is able to understand it must create an observableArray.&lt;br /&gt;
&lt;/div&gt;</description><author>frankabbruzzese</author><pubDate>Mon, 20 May 2013 20:33:34 GMT</pubDate><guid isPermaLink="false">New Post: Unterminated call stack on Client Block 20130520083334P</guid></item><item><title>New Post: Unterminated call stack on Client Block</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444169</link><description>&lt;div style="line-height: normal;"&gt;Yeah I tried to test a little bit the order and includes of the scripts, but no one worked.&lt;br /&gt;
&lt;br /&gt;
If I put it &amp;quot;correctly&amp;quot; like this (took out the duplicates):&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;@Scripts.Render(&amp;quot;~/Scripts/MVCControlToolkit.Controls-2.4.0.js&amp;quot;)     
@Scripts.Render(&amp;quot;~/Scripts/knockout.all-2.4.0.min.js&amp;quot;)    
@Scripts.Render(&amp;quot;~/Scripts/MvcControlToolkit.Utils-2.4.0.js&amp;quot;)&lt;/code&gt;&lt;/pre&gt;

It gives me this error:&lt;br /&gt;
&amp;quot;Uncaught Error: Unable to parse bindings.&lt;br /&gt;
Message: TypeError: Cannot read property 'length' of null;&lt;br /&gt;
Bindings value: click: removeSelected, enable: SelectedItems().length &amp;gt; 0&lt;br /&gt;
knockout.all-2.4.0.min.js:221 &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If I put Bindings afterwards like this:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;@Scripts.Render(&amp;quot;~/Scripts/MVCControlToolkit.Controls-2.4.0.js&amp;quot;)     
@Scripts.Render(&amp;quot;~/Scripts/knockout.all-2.4.0.min.js&amp;quot;)    
@Scripts.Render(&amp;quot;~/Scripts/MvcControlToolkit.Bindings-2.4.0.js&amp;quot;)
@Scripts.Render(&amp;quot;~/Scripts/MvcControlToolkit.Utils-2.4.0.js&amp;quot;)&lt;/code&gt;&lt;/pre&gt;

It doesn't give me that error anymore, but gives me the &amp;quot;maximum call stack exceeded&amp;quot; error from before&lt;br /&gt;
&lt;/div&gt;</description><author>gonzaw</author><pubDate>Mon, 20 May 2013 17:52:59 GMT</pubDate><guid isPermaLink="false">New Post: Unterminated call stack on Client Block 20130520055259P</guid></item><item><title>New Post: Unterminated call stack on Client Block</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444169</link><description>&lt;div style="line-height: normal;"&gt;Actually the way you used all script includes is wrong. There are several errors:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;MVCControlToolkit.Controls.Core must be always the first include of all mvc Controls Toolkit files.&lt;/li&gt;
&lt;li&gt;MvcControlToolkit.Bindings-2.4.0.js is already included in knockout.all-2.4.0.min.js, so it must not be included again&lt;/li&gt;
&lt;li&gt;
MVCControlToolkit.Controls-2.4.0 contains MVCControlToolkit.Controls.Core, MVCControlToolkit.Controls.Items-2.4.0.js and other js, so it is a duplicate.&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;
Please refer to the &lt;a href="https://mvccontrolstoolkit.codeplex.com/wikipage?title=Which%20Javascript%20file%20to%20include" rel="nofollow"&gt;script include section&lt;/a&gt; to learno more about which js files to include.&lt;br /&gt;
&lt;br /&gt;
No the jQuery version doesnt matter. The only breaking difference is with jquery 1.9&lt;br /&gt;
&lt;/div&gt;</description><author>frankabbruzzese</author><pubDate>Mon, 20 May 2013 08:59:41 GMT</pubDate><guid isPermaLink="false">New Post: Unterminated call stack on Client Block 20130520085941A</guid></item><item><title>New Post: Unterminated call stack on Client Block</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444169</link><description>&lt;div style="line-height: normal;"&gt;Actually, this is false&lt;br /&gt;
&lt;br /&gt;
I'm doing this in a &amp;quot;testing project&amp;quot; to figure out how to do this exactly for my actual project&lt;br /&gt;
&lt;br /&gt;
In my actual project I have jquery-1.8.3 and jquery-1.7.2. I might try it in there, but I'd like to be sure it works in the &amp;quot;mock&amp;quot; project first. Hopefully the difference in jquery versions doesn't matter&lt;br /&gt;
&lt;/div&gt;</description><author>gonzaw</author><pubDate>Mon, 20 May 2013 05:31:14 GMT</pubDate><guid isPermaLink="false">New Post: Unterminated call stack on Client Block 20130520053114A</guid></item><item><title>New Post: Unterminated call stack on Client Block</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444169</link><description>&lt;div style="line-height: normal;"&gt;No, I'm using jquery-1.8.2.&lt;br /&gt;
I tried using the 2.4.1 release just in case but didn't work either.&lt;br /&gt;
&lt;br /&gt;
Yes, it might be something about the js libraries. I'm not exactly sure which ones to use (which versions, etc),&lt;br /&gt;
Anyways, here are my views:&lt;br /&gt;
&lt;br /&gt;
Layout.cshtml&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; @Scripts.Render(&amp;quot;~/bundles/modernizr&amp;quot;)
@Scripts.Render(&amp;quot;~/Scripts/jquery-1.8.2.js&amp;quot;)
@RenderSection(&amp;quot;scripts&amp;quot;, required: false)&lt;/code&gt;&lt;/pre&gt;

ComboboxTest.cshtml&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;@using CrearSitio.Models
@model ComboBoxModel

@{
    ViewBag.Title = &amp;quot;ComboboxTest&amp;quot;;
    Layout = &amp;quot;~/Views/Shared/_Layout.cshtml&amp;quot;;
}

&amp;lt;h2&amp;gt;ComboboxTest&amp;lt;/h2&amp;gt;

 &amp;lt;div&amp;gt;
    @Html.LabelFor(m =&amp;gt; m.Nombre)
    @Html.EditorFor(m =&amp;gt; m.Nombre)
    @Html.ValidationMessageFor(m =&amp;gt; m.Nombre)
    @Html.LabelFor(m =&amp;gt; m.Requerido)
    @Html.CheckBoxFor(m =&amp;gt; m.Requerido)
    @Html.ValidationMessageFor(m=&amp;gt;m.Requerido)

&amp;lt;/div&amp;gt;

    @Html.ValidationMessageFor(m=&amp;gt;m.PosiblesValores)
    &amp;lt;div id=&amp;quot;ComboBoxViewModelContainer&amp;quot;&amp;gt;
            @{
                var comboBoxValoresHelper =
                  Html.TransformedHelper(
                      m =&amp;gt; m.PosiblesValores,
                      new ComboBoxViewModel());
                      }
                @Html.ValidationMessageFor(m =&amp;gt; m.PosiblesValores)
 @comboBoxValoresHelper.TemplateFor(m =&amp;gt; m, &amp;quot;Template/ComboBoxViewModelTemplate&amp;quot;, null, true, &amp;quot;valoresHandling&amp;quot;, &amp;quot;ComboBoxModelContainer&amp;quot;, true)           
&amp;lt;/div&amp;gt;

@section Scripts{
    &amp;lt;script src=&amp;quot;~/Scripts/jquery.validate.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src=&amp;quot;~/Scripts/jquery.validate.unobtrusive.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;   
    &amp;lt;script src=&amp;quot;~/Scripts/knockout.all-2.4.0.min.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src=&amp;quot;~/Scripts/MvcControlToolkit.Bindings-2.4.0.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src=&amp;quot;~/Scripts/MvcControlToolkit.Utils-2.4.0.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src=&amp;quot;~/Scripts/MVCControlToolkit.Controls.Core-2.4.0.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src=&amp;quot;~/Scripts/MVCControlToolkit.Controls.Items-2.4.0.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;        
    &amp;lt;script src=&amp;quot;~/Scripts/MVCControlToolkit.Controls-2.4.0.js&amp;quot;  type='text/javascript' &amp;gt;&amp;lt;/script&amp;gt;
  }&lt;/code&gt;&lt;/pre&gt;

ComboBoxViewModelTemplate.cshtml&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;@using CrearSitio.Models
@using MVCControlsToolkit.Controls.Bindings
@model ComboBoxViewModel


@{var bindings = Html.ClientBindings();
            bindings
                .AddMethod(&amp;quot;addNewItem&amp;quot;,
                @&amp;quot;
                    function () {&amp;quot;+
                        bindings.VerifyFieldsValid (m =&amp;gt; m.ItemToAdd) + @&amp;quot;
                        if (this.ItemToAdd() == null || this.ItemToAdd().length == 0) return;
                        this.PosiblesValores.push(this.ItemToAdd());
                        this.SelectedItems.push(this.ItemToAdd());
                        this.ItemToAdd('');  
                    }
                    &amp;quot;)
                .AddMethod(&amp;quot;removeSelected&amp;quot;,
                @&amp;quot;
                    function () {
                        this.PosiblesValores.removeAll(this.SelectedItems());
                        this.SelectedItems([]); // Reset selection to an empty set
                    }

                    &amp;quot;);
            }
            &amp;lt;div&amp;gt;
            @Html.LabelFor(m =&amp;gt; m.SelectedItems)
            @Html.DropDownListFor(m =&amp;gt; m.SelectedItems, new {style=&amp;quot;min-width:100px&amp;quot;}, Html.CreateChoiceList(
                m =&amp;gt; m.PosiblesValores,
                m =&amp;gt; m,
                m =&amp;gt; m, overridePrompt: &amp;quot;prova&amp;quot;))
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                
               @Html.LabelFor(m =&amp;gt; m.ItemToAdd)
               @Html.TypedTextBoxFor(
                    m =&amp;gt; m.ItemToAdd, 
                    &amp;quot;watermark&amp;quot;)
                
                @Html.ValidationMessageFor(m =&amp;gt; m.ItemToAdd, &amp;quot;*&amp;quot;)
                @{
                var addButtonBindings = bindings
                    .Click(m =&amp;gt; m, &amp;quot;addNewItem&amp;quot;)
                    .Get();
                var removeButtonBinding = bindings
                    .Click(m =&amp;gt; m, &amp;quot;removeSelected&amp;quot;)
                    .Enable(m =&amp;gt; m.SelectedItems, &amp;quot;{0}.length &amp;gt; 0&amp;quot;).Get();
                }
                &amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Agregar&amp;quot; data-bind='@addButtonBindings'/&amp;gt;
                &amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Remover seleccionados&amp;quot; data-bind='@removeButtonBinding'/&amp;gt;
            &amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>gonzaw</author><pubDate>Sun, 19 May 2013 18:57:43 GMT</pubDate><guid isPermaLink="false">New Post: Unterminated call stack on Client Block 20130519065743P</guid></item><item><title>New Post: Unterminated call stack on Client Block</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444169</link><description>&lt;div style="line-height: normal;"&gt;Are you using jquery 1.9 or better? Becuase the knockout included in knockout all 2.4.0 is not compatible with 1.9.1. You have to download the 2.4.1 release of the same file that is availaable in the &lt;a href="https://mvccontrolstoolkit.codeplex.com/releases/view/102417" rel="nofollow"&gt;download area&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
If this doesnt solve your problem, please show your view, and all javascript files included. The problem is due to the fact that the knocout binding is not working properly, probably because the template engine has problems, and the Html created is wrong.&lt;br /&gt;
&lt;/div&gt;</description><author>frankabbruzzese</author><pubDate>Sun, 19 May 2013 12:05:32 GMT</pubDate><guid isPermaLink="false">New Post: Unterminated call stack on Client Block 20130519120532P</guid></item><item><title>New Post: Remote Validation on Datagrids</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/443841</link><description>&lt;div style="line-height: normal;"&gt;Thanks for the response, I suspected as much. I have hacked the validation into a javascript function used to get some other information for the portfolio, so the error is now shown, although it doesn't use the built in validation. I'll give your solution a go next time I get the chance.&lt;br /&gt;
&lt;/div&gt;</description><author>NZCB</author><pubDate>Sun, 19 May 2013 07:18:50 GMT</pubDate><guid isPermaLink="false">New Post: Remote Validation on Datagrids 20130519071850A</guid></item><item><title>New Post: Unterminated call stack on Client Block</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444169</link><description>&lt;div style="line-height: normal;"&gt;Hi again&lt;br /&gt;
&lt;br /&gt;
For my project I need to use a droplist to allow the user to input a list of strings for my model.&lt;br /&gt;
&lt;br /&gt;
I decided to &amp;quot;copy&amp;quot; the &amp;quot;Client Block Complete Example&amp;quot; approach to do so, both with using the Client Block, the template and the inline transformation.&lt;br /&gt;
&lt;br /&gt;
To get a better hold of the actual code needed, I checked the &amp;quot;NestedModels&amp;quot; downloadable, and basically copied the code back to back, just changing the name of the properties the name of the model/view, the name of the global javascript variable, and nothing else at all.&lt;br /&gt;
&lt;br /&gt;
However when loading I get a &amp;quot;Maximum call stack size exceeded &amp;quot; error in 'knockout.all-2.4.0' like this:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;b.la&lt;br /&gt;
b.$&lt;br /&gt;
b.a.d&lt;br /&gt;
ko.bindingHandlers.options.update&lt;br /&gt;
ko.bindingHandlers.options.update&lt;br /&gt;
ko.bindingHandlers.options.update&lt;br /&gt;
....&amp;quot;&lt;br /&gt;
and so on and on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(sometimes it puts &amp;quot;{anonymous function}&amp;quot; instead of b.la and the like)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I tried debugging it but I couldn't find the problem, mostly because I don't know where to look.&lt;br /&gt;
&lt;br /&gt;
Is there anything that can cause that error that I missed? Or at least where can I look to debug said error?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From what I can imagine, the elements of the droplist are constantly being updated for some reason (and thus the options of the droplist are being updated as well), but the only way they can be updated is via the &amp;quot;addNewItem&amp;quot; method, so how can this method be called when the page is loaded and not when the button is pressed?&lt;br /&gt;
&lt;br /&gt;
I am using the MVC4ControlsToolkit library this time :P&lt;br /&gt;
&lt;/div&gt;</description><author>gonzaw</author><pubDate>Sun, 19 May 2013 05:40:37 GMT</pubDate><guid isPermaLink="false">New Post: Unterminated call stack on Client Block 20130519054037A</guid></item><item><title>New Post: Can't find _S.H</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444120</link><description>&lt;div style="line-height: normal;"&gt;Yes, I had downloaded the Mvc2 version (didn't realize there was a Mvc 3-4 one)&lt;br /&gt;
&lt;br /&gt;
This solved the problem, thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>gonzaw</author><pubDate>Sun, 19 May 2013 00:12:43 GMT</pubDate><guid isPermaLink="false">New Post: Can't find _S.H 20130519121243A</guid></item><item><title>Updated Wiki: Pager</title><link>https://mvccontrolstoolkit.codeplex.com/wikipage?title=Pager&amp;version=25</link><description>&lt;div class="wikidoc"&gt;
&lt;p&gt;&lt;strong&gt;Pager &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000"&gt;&lt;em&gt;This control needs reference to both &lt;em&gt;MVCControlToolkit.Controls-x.x.x.js or the smaller
&lt;em&gt;&lt;em&gt;MVCControlToolkit.Controls.Core-x.x.x.js&lt;/em&gt;&lt;/em&gt;, &lt;/em&gt;&amp;nbsp;&lt;em&gt; jquery-1.4.2.js(or better)&lt;/em&gt;.js&lt;/em&gt;&lt;/span&gt;&lt;span style="color:#ff0000"&gt;.&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#ff0000"&gt;&lt;br&gt;
&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;There are three pager helpers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style="text-decoration:underline"&gt;Submit Pager&lt;/span&gt; that performs a submit (Ajax or normal) in the form it is in and it is better suited for data editing purposes,&amp;nbsp;
&lt;/li&gt;&lt;li&gt;&lt;span style="text-decoration:underline"&gt;Get Pager&lt;/span&gt; that performs a simple get (Ajax or normal) to a completely configurable route, and it is better suited for REST displaying of data.
&lt;/li&gt;&lt;li&gt;&lt;span style="text-decoration:underline"&gt;Client Pager&lt;/span&gt; All its buttons are not rendered by the server, but they are created and modified dynamically on the client side each time the page changes. It triggers a javascript event when the page changes,
 but it can optionally cause a form submit. Since it doesn't need the server to render its buttons it is well suited for paging data to be retrieved through ajax calls that returns json data, or for paging local javascript data.
&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Mvc Controls Toolkit pagers, essentially handle adequately an integer property of the View Model containing the current page of some data that are currently displayed.&lt;/p&gt;
&lt;p&gt;Its buttons and page links have the only effect of modifying this property, and performing a either submit or a get to a configurable Route(according to which overload is used). Then, it is up to the Controller to handle properly the actual data.&lt;/p&gt;
&lt;p&gt;There are buttons for the first, netx, previous, and last page and a component containing directly the page links. For the last one the user can choose how many page links to show. Links and buttons appear enabled or disabled adequately. If the user supplies
 also a Total Count of the pages it will be used properly in enabling/disabling buttons and links, however it is not obligatory.&lt;/p&gt;
&lt;p&gt;Each component can be rendered separately and one can decide if using it or not. Thus, you can decide to use just next or previous page buttons or just the page links, or a mix of the two....Whatever you want!&lt;/p&gt;
&lt;p&gt;Each button can be displayed either as a normal button or as a link or as an image link. Select the one you prefer by using the PageButtonStyle enumeration.
&lt;/p&gt;
&lt;p&gt;If you supply also a Previous Page field the Pager will just mantain its value when the View is posted. It is useful on the server side to know on what page possible modifications(deletion, modification or insert) were done. However this parameter is not
 compulsory.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Submit Pager&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Below an example of use of the&amp;nbsp; submit causing pager helper:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="background-color:white; color:black"&gt;
&lt;pre&gt;                    &lt;span style="background-color:yellow"&gt;&amp;lt;%&lt;/span&gt; &lt;span style="color:blue"&gt;var&lt;/span&gt; pager = Html.PagerFor(m =&amp;gt; m.Page, m =&amp;gt; m.PrevPage, m =&amp;gt; m.TotalPages); &lt;span style="background-color:yellow"&gt;%&amp;gt;&lt;/span&gt;
                    
                    &lt;span style="background-color:yellow"&gt;&amp;lt;%&lt;/span&gt;:pager.PageButton(&lt;span style="color:#a31515"&gt;&amp;quot;&amp;lt;&amp;lt;&amp;quot;&lt;/span&gt;, PageButtonType.First, PageButtonStyle.Link) &lt;span style="background-color:yellow"&gt;%&amp;gt;&lt;/span&gt;
                    &lt;span style="background-color:yellow"&gt;&amp;lt;%&lt;/span&gt;:pager.PageButton(&lt;span style="color:#a31515"&gt;&amp;quot;&amp;lt;&amp;quot;&lt;/span&gt;, PageButtonType.Previous, PageButtonStyle.Link) &lt;span style="background-color:yellow"&gt;%&amp;gt;&lt;/span&gt;
                    &lt;span style="background-color:yellow"&gt;&amp;lt;%&lt;/span&gt;:pager.PageChoice(4, pageNames: p =&amp;gt; &lt;span style="color:blue"&gt;string&lt;/span&gt;.Format(&lt;span style="color:#a31515"&gt;&amp;quot;({0})&amp;quot;&lt;/span&gt;, p)) &lt;span style="background-color:yellow"&gt;%&amp;gt;&lt;/span&gt;
                    &lt;span style="background-color:yellow"&gt;&amp;lt;%&lt;/span&gt;:pager.PageButton(&lt;span style="color:#a31515"&gt;&amp;quot;&amp;gt;&amp;quot;&lt;/span&gt;, PageButtonType.Next, PageButtonStyle.Link) &lt;span style="background-color:yellow"&gt;%&amp;gt;&lt;/span&gt;
                    &lt;span style="background-color:yellow"&gt;&amp;lt;%&lt;/span&gt;:pager.PageButton(&lt;span style="color:#a31515"&gt;&amp;quot;&amp;gt;&amp;gt;&amp;quot;&lt;/span&gt;, PageButtonType.Last, PageButtonStyle.Link) &lt;span style="background-color:yellow"&gt;%&amp;gt;&lt;/span&gt;
                    
                    &lt;span style="background-color:yellow"&gt;&amp;lt;%&lt;/span&gt;:pager.PageButton(&lt;span style="color:#a31515"&gt;&amp;quot;Go To&amp;quot;&lt;/span&gt;, PageButtonType.GoTo, PageButtonStyle.Button) &lt;span style="background-color:yellow"&gt;%&amp;gt;&lt;/span&gt;&lt;span style="background-color:yellow"&gt;&amp;lt;%&lt;/span&gt;:pager.GoToText(&lt;span style="color:blue"&gt;new&lt;/span&gt; {style=&lt;span style="color:#a31515"&gt;&amp;quot;width:50px;&amp;quot;&lt;/span&gt; })&lt;span style="background-color:yellow"&gt;%&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:13px"&gt;It is applied to the same example of the DataGrid that is&lt;a href="/wikipage?title=Update/Insert/Delete/ Templated Datagrid"&gt; here&lt;/a&gt;. You can find both examples in the binary distribution. For a complete example application
 see &lt;a href="/wikipage?title=DataGrid%20and%20Pager%20Complete%20Example"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please notice the &lt;em&gt;pageNames:&lt;/em&gt; parameter that allows the&amp;nbsp; user to provide a function that transfrorms page numbers into strings. In the example above it is used just to put '()' around the page numbers, but it can be used also to implement a&amp;nbsp;
 dictionary type of&amp;nbsp; paging. That is, a paging based on the first characters of a string that someway represents the record(for instance all customers whose surname starts with 'A'). Disabled buttons are applied the attribute
&lt;em&gt;disabled=&amp;quot;disabled&amp;quot;&lt;/em&gt; as usual for disabled elements. The current page is applied the attribute:
&lt;em&gt;selected-page=&amp;quot;selected&amp;quot;&lt;/em&gt;. Both can be used to create CSS rules for styling the involved nodes. Please notice that all browsers, already apply some standard styling to all disable input fields, while internet explorer apply such a style, not only to
 input fileds and buttons, but also to all other disabled DOM nodes, such as images, and links.&lt;/p&gt;
&lt;p&gt;&lt;a name="GetPager"&gt;&lt;/a&gt;&lt;strong&gt;Get Pager&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The get causing helper works in a similar way. Only the first of the above instruction change:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="background-color:white; color:black"&gt;
&lt;pre&gt; &lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; Pager&amp;lt;VM&amp;gt; Pager&amp;lt;VM&amp;gt;(
           &lt;span style="color:blue"&gt;this&lt;/span&gt; HtmlHelper&amp;lt;VM&amp;gt; htmlHelper, &lt;span style="color:blue"&gt;int&lt;/span&gt; currPage,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; parameterName, 
           &lt;span style="color:blue"&gt;string&lt;/span&gt; actionName,
           &lt;span style="color:blue"&gt;int&lt;/span&gt;? totPages = &lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; targetIdName = &lt;span style="color:#a31515"&gt;&amp;quot;&amp;quot;&lt;/span&gt;,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; controllerName = &lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;object&lt;/span&gt; otherParameters = &lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; routeName = &lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; protocol = &lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; hostname = &lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; fragment = &lt;span style="color:blue"&gt;null&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;currPage&lt;/em&gt; is the current page &lt;/li&gt;&lt;li&gt;&lt;em&gt;parameterName&lt;/em&gt; is the Route parameter name where to put the page number of the various links
&lt;/li&gt;&lt;li&gt;&lt;em&gt;totPages&lt;/em&gt;, is the opttional count of the total pages &lt;/li&gt;&lt;li&gt;&lt;em&gt;targetIdName&lt;/em&gt; is the id of an html element to use as atrget for an ajax call. If it is provided the pager will do an ajax call instead of a normal get
&lt;/li&gt;&lt;li&gt;&lt;em&gt;otherParameters&lt;/em&gt; is an anonymous object containing all other parameters for the Route.
&lt;/li&gt;&lt;li&gt;All other parameters define the Route as in an Action Link. &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Client Pager&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a name="ClientPager"&gt;&lt;/a&gt;There are two overload of the client pager:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="background-color:white; color:black"&gt;
&lt;pre&gt;        &lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; ClientPager&amp;lt;VM&amp;gt;  ClientPagerFor&amp;lt;VM&amp;gt;(
           &lt;span style="color:blue"&gt;this&lt;/span&gt; HtmlHelper&amp;lt;VM&amp;gt; htmlHelper,
           Expression&amp;lt;Func&amp;lt;VM, &lt;span style="color:blue"&gt;int&lt;/span&gt;&amp;gt;&amp;gt; page,
           Expression&amp;lt;Func&amp;lt;VM, &lt;span style="color:blue"&gt;int&lt;/span&gt;&amp;gt;&amp;gt; totPages=&lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; pagePrefix=&lt;span style="color:blue"&gt;null&lt;/span&gt;, &lt;span style="color:blue"&gt;string&lt;/span&gt; pagePostfix=&lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;bool&lt;/span&gt; causeSubmit=&lt;span style="color:blue"&gt;false&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Where:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;page&lt;/em&gt; is an expression&amp;nbsp; locating the page property within the ViewModel
&lt;/li&gt;&lt;li&gt;&lt;em&gt;totPages&lt;/em&gt; is an optional expression locating a property containing the total pages within the ViewModel
&lt;/li&gt;&lt;li&gt;&lt;em&gt;pagePrefix&lt;/em&gt; and&lt;em&gt; pagePostfix&lt;/em&gt; are optional strings that are prefixed and postfixed to the page number
&lt;/li&gt;&lt;li&gt;&lt;em&gt;causeSubmit&lt;/em&gt; when true causes the submit of the form that contains the pager when a page change occurs. It is useful mainly to trigger ajax calls tht return json data, instead of returning html.
&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;If the pager is rendered within a &lt;a href="http://mvccontrolstoolkit.codeplex.com/wikipage?title=Client%20Blocks"&gt;
Client Block&lt;/a&gt; both the page and total pages properties of the Client Side ViewModel are bound to the pager with adequate knockout bindings . This way each time they change the appearence of the pager changes immediately to reflect the new values.&lt;/p&gt;
&lt;p&gt;In case we don't use knockout and/or Client Blocks we can update the pager with new data with the function:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="background-color:white; color:black"&gt;
&lt;pre&gt;MvcControlsToolkit_NewPage(pagerId, newPage, newTotalPages)
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;pagerId &lt;/em&gt;can be computed with the &lt;a href="http://mvccontrolstoolkit.codeplex.com/wikipage?title=PrefixedId%20helper"&gt;
PrefixedId&lt;/a&gt; helper by writing something like: &lt;em&gt;@Html.Prefixed(m =&amp;gt; m.ModelPageField)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Each time the page changes the pager triggers an event:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="background-color:white; color:black"&gt;
&lt;pre&gt;trigger(&lt;span style="color:#a31515"&gt;&amp;quot;queryChanged&amp;quot;&lt;/span&gt;, data);
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;where the data object contains the following fields:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;type&lt;/em&gt;, specifies the kind of query information that changed. For the pager its value is the string: 'page'.
&lt;/li&gt;&lt;li&gt;&lt;em&gt;submit&lt;/em&gt;, by setting this value to &lt;em&gt;true&lt;/em&gt; within our event handler we can cause a form submit. By setting it to
&lt;em&gt;false&lt;/em&gt; we prevent a form submit.&amp;nbsp; The value passed initially in this field is the
&lt;em&gt;causeSubmit&lt;/em&gt;&amp;nbsp; of the pager helper. &lt;/li&gt;&lt;li&gt;&lt;em&gt;page&lt;/em&gt;, the current page. &lt;/li&gt;&lt;li&gt;&lt;em&gt;previousPage&lt;/em&gt;: the previous page. &lt;/li&gt;&lt;li&gt;&lt;em&gt;totalPages&lt;/em&gt;, the total pages, if available. &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The event bubbles through the ancestors chain, so we can specify an event handler in any DOM ancestor of the pager.&lt;/p&gt;
&lt;p&gt;The second overload of the pager doesn't use expressions, but fileds names and values (as for TextBox instead of TextBoxFor) :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="background-color:white; color:black"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; ClientPager&amp;lt;VM&amp;gt; ClientPager&amp;lt;VM&amp;gt; (
           &lt;span style="color:blue"&gt;this&lt;/span&gt; HtmlHelper&amp;lt;VM&amp;gt; htmlHelper,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; pagerName,
           &lt;span style="color:blue"&gt;int&lt;/span&gt; initialPage=1,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; totalPagesName=&lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;int&lt;/span&gt; ? totalPages=&lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; pagePrefix = &lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;string&lt;/span&gt; pagePostfix = &lt;span style="color:blue"&gt;null&lt;/span&gt;,
           &lt;span style="color:blue"&gt;bool&lt;/span&gt; causeSubmit=&lt;span style="color:blue"&gt;false&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;where:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;pagerName&lt;/em&gt;, is the name of the property containing the current page &lt;/li&gt;&lt;li&gt;&lt;em&gt;initialPage&lt;/em&gt; is the page initially displayed by the pager&amp;nbsp; &lt;/li&gt;&lt;li&gt;&lt;em&gt;totalPagesName&lt;/em&gt; is the name of the property containing the total pages
&lt;/li&gt;&lt;li&gt;&lt;em&gt;totalPages&lt;/em&gt; is the initial value of the total pages. &lt;/li&gt;&lt;li&gt;all other parameters are the same as the ones of the other overload &lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>frankabbruzzese</author><pubDate>Sat, 18 May 2013 21:17:37 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Pager 20130518091737P</guid></item><item><title>New Post: Can't find _S.H</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444120</link><description>&lt;div style="line-height: normal;"&gt;Maybe you downloaded the version that works with Mvc2. The _S.H method is only available for version greater or equal to mvc 3 since they use Razor ehlpers that are not available in Asp.net Mvc2.&lt;br /&gt;
&lt;br /&gt;
Please use either the Mvc3 or Mvc 4 version of the library. The Mvc2 version will be discontinued in a short time.&lt;br /&gt;
&lt;/div&gt;</description><author>frankabbruzzese</author><pubDate>Sat, 18 May 2013 10:39:08 GMT</pubDate><guid isPermaLink="false">New Post: Can't find _S.H 20130518103908A</guid></item><item><title>New Post: Can't find _S.H</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/444120</link><description>&lt;div style="line-height: normal;"&gt;Hi&lt;br /&gt;
&lt;br /&gt;
I've just seen this project and it seems like the coolest thing ever and just the thing to solve my mvc problems! (so kudos on that)&lt;br /&gt;
&lt;br /&gt;
I followed the tutorials on using ViewList and SortableListFor for handling subclasses, and installed the toolkit using NuGet, but in the MvcControlsToolkit.Controls._S class I couldn't find the &amp;quot;H&amp;quot; method and thus my code wouldn't work.&lt;br /&gt;
&lt;br /&gt;
I tried getting the .dll alone (from the binaries), but I couldn't find it in it either.&lt;br /&gt;
&lt;br /&gt;
I'd like to know if there is something I've been doing wrong&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;/div&gt;</description><author>gonzaw</author><pubDate>Sat, 18 May 2013 07:24:46 GMT</pubDate><guid isPermaLink="false">New Post: Can't find _S.H 20130518072446A</guid></item><item><title>New Comment on "TypedTextBox"</title><link>https://mvccontrolstoolkit.codeplex.com/wikipage?title=TypedTextBox&amp;ANCHOR#C27507</link><description>No textareas are not supported. The main purpose of the TypedTextBox is formatting, and keyboard handling for dates and numbers. Textareas are just for strings, so you have no formatting problem. You may simply use a jquery watermark plugin</description><author>frankabbruzzese</author><pubDate>Fri, 17 May 2013 06:44:41 GMT</pubDate><guid isPermaLink="false">New Comment on "TypedTextBox" 20130517064441A</guid></item><item><title>New Post: Remote Validation on Datagrids</title><link>http://mvccontrolstoolkit.codeplex.com/discussions/443841</link><description>&lt;div style="line-height: normal;"&gt;It is a sell known problem. The remote attribute doesnt work with items from a list, exactly because the parameter inserted in the query string contains a prefix that depends on the position of the item in the list. In theory, one might think to define a custom model binder that doesn't consider this prefix, but what a similar model binder should do depend strongly on the specific situation(there might be nested objects, or nested lists), so it is difficult to provide an out-of-the-box solution. &lt;br /&gt;
The only &amp;quot;acceptable&amp;quot; way is using a dirty trick!&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Solution:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Just take the value of the parameter from the Asp.net Request object. The Request object contains a dictionary with all parameters passed in the query string. Look for a key that ends with &amp;quot;.Portfolio&amp;quot; , and take the corresponding value.&lt;br /&gt;
&lt;/div&gt;</description><author>frankabbruzzese</author><pubDate>Fri, 17 May 2013 06:21:39 GMT</pubDate><guid isPermaLink="false">New Post: Remote Validation on Datagrids 20130517062139A</guid></item><item><title>Closed Issue: Microsoft JScript runtime error: Function expected when click on "show details" [1051]</title><link>http://mvccontrolstoolkit.codeplex.com/workitem/1051</link><description>When click on show details link in data grid example i got java script debugger error &amp;#34;Microsoft JScript runtime error&amp;#58; Function expected&amp;#34; on this line newValue&amp;#61;TrueValue&amp;#40;newField.childNodes&amp;#40;0&amp;#41;.nodeValue,newFieldName&amp;#41; saying &amp;#34;Function Expected .&lt;br /&gt;&amp;#160;&lt;br /&gt;I&amp;#39;m using MS IE 9, VS 2010 Ultimate&lt;br /&gt;</description><author>frankabbruzzese</author><pubDate>Thu, 16 May 2013 11:51:12 GMT</pubDate><guid isPermaLink="false">Closed Issue: Microsoft JScript runtime error: Function expected when click on "show details" [1051] 20130516115112A</guid></item><item><title>Closed Issue: SortableListFor with DateTimeFor [1060]</title><link>http://mvccontrolstoolkit.codeplex.com/workitem/1060</link><description>Hi, I&amp;#39;m with a problem in &amp;#34;DateTimeFor&amp;#34; using jQuery. I have this model&amp;#58;&lt;br /&gt;&amp;#160;&lt;br /&gt;public class AtividadeInserirViewModel&lt;br /&gt;&amp;#123;&lt;br /&gt;        &amp;#91;Required&amp;#93;&lt;br /&gt;        public&lt;br /&gt;int atv_relatorio &amp;#123; get&amp;#59;&lt;br /&gt;set&amp;#59; &amp;#125; &lt;br /&gt;        public List&amp;#60;AtividadeInserirView&amp;#62; Atividades &amp;#123;&lt;br /&gt;get&amp;#59; set&amp;#59; &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;public class AtividadeInserirView&lt;br /&gt;&amp;#123;&lt;br /&gt;        &amp;#91;Required&amp;#93;&lt;br /&gt;        public&lt;br /&gt;string atv_titulo &amp;#123; get&amp;#59;&lt;br /&gt;set&amp;#59; &amp;#125;  &lt;br /&gt;        public System.DateTime atv_datafim &amp;#123;&lt;br /&gt;get&amp;#59; set&amp;#59; &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#160;&lt;br /&gt;And in the view&amp;#58;&lt;br /&gt;&amp;#160;&lt;br /&gt;&amp;#160;&lt;br /&gt;&amp;#64;model NLayerApp.Presentation.Web.MVC.Client.Models.AtividadeInserirViewModel&lt;br /&gt;&amp;#40;...&amp;#41;&lt;br /&gt;  &amp;#64;Html.LabelFor&amp;#40;model &amp;#61;&amp;#62; model.atv_relatorio&amp;#41;&lt;br /&gt;  &amp;#64;Html.EditorFor&amp;#40;model &amp;#61;&amp;#62; model.atv_relatorio, new &amp;#123; Lookup &amp;#61; Model.lookupRelatorio&amp;#125;&amp;#41;&lt;br /&gt;  &amp;#64;Html.ValidationMessageFor&amp;#40;model &amp;#61;&amp;#62; model.atv_relatorio&amp;#41;&lt;br /&gt;&amp;#64;helper InsertAtividade&amp;#40;HtmlHelper&amp;#60;AtividadeInserirView&amp;#62; Html&amp;#41;&lt;br /&gt;&amp;#123;        &lt;br /&gt;        &amp;#64;Html.EditorFor&amp;#40;model &amp;#61;&amp;#62; model.atv_titulo&amp;#41;&lt;br /&gt;        &amp;#64;&amp;#123;var DtFim &amp;#61; Html.DateTimeFor&amp;#40;m &amp;#61;&amp;#62; m.atv_datafim, DateTime.Now, true&amp;#41;&amp;#59;&amp;#125;&lt;br /&gt;        &amp;#64;DtFim.DateCalendar&amp;#40;&amp;#41;           &lt;br /&gt;&amp;#125;&lt;br /&gt; &amp;#64;Html.SortableListFor&amp;#40;m &amp;#61;&amp;#62; m.Atividades,&lt;br /&gt;          _S.H&amp;#60;AtividadeInserirView&amp;#62;&amp;#40;h &amp;#61;&amp;#62; InsertAtividade&amp;#40;h&amp;#41;&amp;#41;,&lt;br /&gt;                canSort&amp;#58; true,&lt;br /&gt;                allItemsContainer&amp;#58; ExternalContainerType.ol,&lt;br /&gt;                itemContainer&amp;#58; ExternalContainerType.li,&lt;br /&gt;                htmlAttributesContainer&amp;#58; new Dictionary&amp;#60;string, object&amp;#62;&amp;#40;&amp;#41; &amp;#123; &amp;#123;&amp;#34;class&amp;#34; , &amp;#34;SortableList&amp;#34;&amp;#125; &amp;#125;&amp;#41;&lt;br /&gt;            &amp;#64;Html.SortableListAddButtonFor&amp;#40;m &amp;#61;&amp;#62; m.Atividades,&lt;br /&gt;                &amp;#34;Inserir&amp;#34;,&lt;br /&gt;                ManipulationButtonStyle.Button,&lt;br /&gt;                new Dictionary&amp;#60;string, object&amp;#62;&amp;#40;&amp;#41; &amp;#123; &amp;#123; &amp;#34;class&amp;#34;, &amp;#34;DataButtonInsert&amp;#34; &amp;#125; &amp;#125;&amp;#41;&lt;br /&gt;&amp;#160;&lt;br /&gt;&amp;#160;&lt;br /&gt;When the view is called the model has one item in &amp;#34;Model.Atividades&amp;#34;, and this item show the jQuery calendar for &amp;#34;atv_datafim&amp;#34; normaly. But if I add new items to &amp;#34;Model.Atividades&amp;#34; the calendar is not showed for the new items. &lt;br /&gt;&amp;#160;&lt;br /&gt;Attached the fixed binaries&lt;br /&gt;</description><author>frankabbruzzese</author><pubDate>Thu, 16 May 2013 11:51:11 GMT</pubDate><guid isPermaLink="false">Closed Issue: SortableListFor with DateTimeFor [1060] 20130516115111A</guid></item><item><title>Closed Issue: Html.SortableListFor Not Using addElementTemplate [1080]</title><link>http://mvccontrolstoolkit.codeplex.com/workitem/1080</link><description>In the RazorThemedGrid example, the ToDoSubTasks.cshtml has&amp;#58;&lt;br /&gt;&amp;#160;&lt;br /&gt;               &amp;#64;Html.SortableListFor&amp;#40;m &amp;#61;&amp;#62; m.SubTasks, &lt;br /&gt;                                _S.H&amp;#60;SubTasksView&amp;#62;&amp;#40;                               &lt;br /&gt;                          &amp;#64;&amp;#60;div id&amp;#61;&amp;#39;&amp;#64;item.PrefixedId&amp;#40;&amp;#34;InnerContainer&amp;#34;&amp;#41;&amp;#39;&amp;#62;&lt;br /&gt;                            &amp;#64;item.TypedTextBoxFor&amp;#40;m &amp;#61;&amp;#62; m.Name, new Dictionary&amp;#60;string, object&amp;#62; &amp;#123; &amp;#123; &amp;#34;class&amp;#34;, &amp;#34;ToDoDetailName&amp;#34; &amp;#125; &amp;#125;, watermarkCss&amp;#58; &amp;#34;Theme-TypedTextBox-Watermark&amp;#34;&amp;#41;&lt;br /&gt;                            &amp;#64;item.ValidationMessageFor&amp;#40;m &amp;#61;&amp;#62; m.Name, &amp;#34;&amp;#42;&amp;#34;&amp;#41;&lt;br /&gt;                            &amp;#64;item.TypedTextBoxFor&amp;#40;m &amp;#61;&amp;#62; m.WorkingDays, new Dictionary&amp;#60;string, object&amp;#62; &amp;#123; &amp;#123; &amp;#34;class&amp;#34;, &amp;#34;ToDoDetailDuration&amp;#34; &amp;#125; &amp;#125;, watermarkCss&amp;#58; &amp;#34;Theme-TypedTextBox-Watermark&amp;#34;&amp;#41;&lt;br /&gt;                            &amp;#64;item.ValidationMessageFor&amp;#40;m &amp;#61;&amp;#62; m.WorkingDays, &amp;#34;&amp;#42;&amp;#34;&amp;#41;&lt;br /&gt;                            &amp;#64;item.SortableListDeleteButton&amp;#40;&amp;#34;Delete&amp;#34;, ManipulationButtonStyle.Link&amp;#41;&lt;br /&gt;                        &amp;#60;&amp;#47;div&amp;#62;&lt;br /&gt;                                &amp;#41;, &lt;br /&gt;                                &amp;#34;SubTasksToSortAddItem&amp;#34;, 0.7f,&lt;br /&gt;                                htmlAttributesContainer&amp;#58; new Dictionary&amp;#60;string, object&amp;#62; &amp;#123; &amp;#123; &amp;#34;class&amp;#34;, &amp;#34;SortableList&amp;#34; &amp;#125; &amp;#125;,&lt;br /&gt;                                enableMultipleInsert&amp;#58; true&amp;#41;&lt;br /&gt;&amp;#160;&lt;br /&gt;From the SortableListHelper.cs in the MVCControlsToolkit&amp;#92;Controls&amp;#92;SortableList in the function, public static MvcHtmlString SortableListFor&amp;#60;VM, TItem&amp;#62;, at line 289&amp;#58;&lt;br /&gt;&amp;#160;&lt;br /&gt;            if &amp;#40;addElementTemplate &amp;#33;&amp;#61; null &amp;#38;&amp;#38; &amp;#33;templateEnabled&amp;#41;&lt;br /&gt;&amp;#160;&lt;br /&gt;templateEnabled is true, because of the web.config appSettings&amp;#58;&lt;br /&gt;&amp;#160;&lt;br /&gt;  &amp;#60;appSettings&amp;#62;&lt;br /&gt;    &amp;#60;add key&amp;#61;&amp;#34;ClientValidationEnabled&amp;#34; value&amp;#61;&amp;#34;false&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;add key&amp;#61;&amp;#34;UnobtrusiveJavaScriptEnabled&amp;#34; value&amp;#61;&amp;#34;true&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;appSettings&amp;#62;&lt;br /&gt;&amp;#160;&lt;br /&gt;which prevents the addElementTemplate from being used for adding items.  Changing the appSettings causes other problems.  I need to use the addElementTemplate to use drop down lists and radio button lists..  I can make it work by taking off the &amp;#38;&amp;#38; &amp;#33;templatedEnabled, but there should be a better solution, and I am not sure what other problems I may create by taking off this check.&lt;br /&gt;</description><author>jk1000</author><pubDate>Thu, 16 May 2013 11:51:11 GMT</pubDate><guid isPermaLink="false">Closed Issue: Html.SortableListFor Not Using addElementTemplate [1080] 20130516115111A</guid></item><item><title>Closed Issue: TypedTextBox gets confused by back button [1098]</title><link>http://mvccontrolstoolkit.codeplex.com/workitem/1098</link><description>I&amp;#39;ve used the TypedTextBox in a page where the user can type an optional field to display a watermark in the field. I leave the textbox empty, displaying the watermark, and the page is submitted. When I hit the back button, the text of the watermark is displayed using the regular text editing textbox. Inspecting the rendered html using the IE dev tools, reveals that the watermark text is assigned to the value attribute of the editing textbox. Refreshing the page clears the value attribute again.&lt;br /&gt;</description><author>frankabbruzzese</author><pubDate>Thu, 16 May 2013 11:51:11 GMT</pubDate><guid isPermaLink="false">Closed Issue: TypedTextBox gets confused by back button [1098] 20130516115111A</guid></item></channel></rss>