or
Hello,
I have a dynamically created RadGrid. The HTML output for each row looks like that:
<tr class="rgRow" id="Tr1">
<td>
</td>
</tr>
Now I want to inject some extra code next to the tr-tag in each gridrow:
<tr itemscope itemtype="http://schema.org/Product" class="rgRow" id="Tr1">
<td>
</td>
</tr>
Any ideas?
Best regards
Bernie
I have a treelist control on my page where I load the items dynamicaly. At each section I'd like to have aggregated sums at the bottom. I thing I have all set correctly regarding online demos but the result footer are all empty.
I use this code:
<
telerik:RadTreeList
ID
=
"rtlData"
AllowLoadOnDemand
=
"true"
runat
=
"server"
AutoGenerateColumns
=
"false"
OnChildItemsDataBind
=
"RadTreeList_ChildItemsDataBind"
OnNeedDataSource
=
"RadTreeList_NeedDataSource"
DataKeyNames
=
"CssClass,ParentId"
ParentDataKeyNames
=
"CssClass,ParentId"
OnItemCreated
=
"RadTreeList_ItemCreated"
OnItemDataBound
=
"RadTreeList_ItemDataBound"
ShowFooter
=
"true"
>
<
Columns
>
<
telerik:TreeListBoundColumn
DataField
=
"ProductCatL3"
UniqueName
=
"ProductCatL3"
HeaderText
=
"Produkt L3"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"ProductCatL2"
UniqueName
=
"ProductCatL2"
HeaderText
=
"Produkt L2"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"ProductCatL1"
UniqueName
=
"ProductCatL1"
HeaderText
=
"Produkt L1"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"State"
UniqueName
=
"State"
HeaderText
=
"Stav"
DataType
=
"System.Decimal"
DataFormatString
=
"{0:C2}"
Aggregate
=
"Sum"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"Avg1Month"
UniqueName
=
"Avg1Month"
HeaderText
=
"PrůmÄ›r 1 mÄ›sÃc"
DataFormatString
=
"{0:C2}"
Aggregate
=
"Avg"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"Avg3Months"
UniqueName
=
"Avg3Months"
HeaderText
=
"PrůmÄ›r 3 mÄ›sÃce"
DataFormatString
=
"{0:C2}"
Aggregate
=
"Avg"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"ApprovedLimit"
UniqueName
=
"ApprovedLimit"
HeaderText
=
"Schválený limit"
DataFormatString
=
"{0:C2}"
Aggregate
=
"Sum"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"CssClass"
UniqueName
=
"Css"
HeaderText
=
"CSS"
Visible
=
"false"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"ParentId"
UniqueName
=
"ParentId"
HeaderText
=
"ParentId"
Visible
=
"false"
>
</
telerik:TreeListBoundColumn
>
</
Columns
>
</
telerik:RadTreeList
>
<
system.web
>
<
compilation
debug
=
"true"
targetFramework
=
"4.0"
/>
<
pages
>
<
controls
>
<
add
tagPrefix
=
"telerik"
namespace
=
"Telerik.Web.UI"
assembly
=
"Telerik.Web.UI"
/>
</
controls
>
</
pages
>
<
httpHandlers
>
<
add
path
=
"ChartImage.axd"
type
=
"Telerik.Web.UI.ChartHttpHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.Web.UI.SpellCheckHandler.axd"
type
=
"Telerik.Web.UI.SpellCheckHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.Web.UI.DialogHandler.aspx"
type
=
"Telerik.Web.UI.DialogHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.RadUploadProgressHandler.ashx"
type
=
"Telerik.Web.UI.RadUploadProgressHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
validate
=
"false"
/>
</
httpHandlers
>
<
httpModules
>
<
add
name
=
"RadUploadModule"
type
=
"Telerik.Web.UI.RadUploadHttpModule"
/>
</
httpModules
>
</
system.web
>
<
system.webServer
>
<
validation
validateIntegratedModeConfiguration
=
"false"
/>
<
modules
runAllManagedModulesForAllRequests
=
"true"
>
<
remove
name
=
"RadUploadModule"
/>
<
add
name
=
"RadUploadModule"
type
=
"Telerik.Web.UI.RadUploadHttpModule"
preCondition
=
"integratedMode"
/>
</
modules
>
<
handlers
>
<
remove
name
=
"ChartImage_axd"
/>
<
add
name
=
"ChartImage_axd"
path
=
"ChartImage.axd"
type
=
"Telerik.Web.UI.ChartHttpHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"Telerik_Web_UI_SpellCheckHandler_axd"
/>
<
add
name
=
"Telerik_Web_UI_SpellCheckHandler_axd"
path
=
"Telerik.Web.UI.SpellCheckHandler.axd"
type
=
"Telerik.Web.UI.SpellCheckHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"Telerik_Web_UI_DialogHandler_aspx"
/>
<
add
name
=
"Telerik_Web_UI_DialogHandler_aspx"
path
=
"Telerik.Web.UI.DialogHandler.aspx"
type
=
"Telerik.Web.UI.DialogHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"Telerik_RadUploadProgressHandler_ashx"
/>
<
add
name
=
"Telerik_RadUploadProgressHandler_ashx"
path
=
"Telerik.RadUploadProgressHandler.ashx"
type
=
"Telerik.Web.UI.RadUploadProgressHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"Telerik_Web_UI_WebResource_axd"
/>
<
add
name
=
"Telerik_Web_UI_WebResource_axd"
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
preCondition
=
"integratedMode"
/>
</
handlers
>
</
system.webServer
>