PDA

View Full Version : [CLOSED] Problem in last svn version (3977)



feanor91
May 02, 2012, 7:32 AM
Hello

I have updated this morning to last revision and I have an analyse error when running my code :



Unable to create an object of type 'Ext.Net.XTemplate' from its string representation, '{name} ({[values.rows.length]} {[values.rows.length > 1 ? "Items" : "Item"]})', for 'GroupHeaderTpl' property.


Here the code :



<Features>
<ext:Grouping
ID="GroupingOSA"
runat="server"
GroupHeaderTpl='{name} ({[values.rows.length]} {[values.rows.length > 1 ? "Items" : "Item"]})'
StartCollapsed="true">
</ext:Grouping>
</Features>



I downgrade the revision to 3973 and it works.

Thanks

Daniil
May 02, 2012, 11:51 AM
Hi,

Please replace GroupHeaderTpl with GroupHeaderTplString.

And now you can set up GroupHeaderTpl as a common XTemplate.

Example

<ext:Grouping runat="server">
<GroupHeaderTpl runat="server">
<Html>
{name} ({[values.rows.length]} {[values.rows.length > 1 ? "Items" : "Item"]})
</Html>
</GroupHeaderTpl>
</ext:Grouping>

feanor91
May 02, 2012, 12:24 PM
Thanks, it works