Hello,
I have the following code:
I want to do what the title says :) So, on page load (automatically) i want to expand one or more items of the GridTableView's. Appreciate any help.
Thanks,
Mário
I have the following code:
<
telerik:RadGrid
ID
=
"rgProcessos"
runat
=
"server"
ShowStatusBar
=
"true"
ShowFooter
=
"false"
CssClass
=
"RadGrid"
AutoGenerateColumns
=
"false"
AllowSorting
=
"true"
AllowMultiRowSelection
=
"false"
AllowPaging
=
"true"
OnDetailTableDataBind
=
"rgProcessos_DetailTableDataBind"
OnNeedDataSource
=
"rgProcessos_NeedDataSource"
OnItemCommand
=
"rgProcessos_ItemCommand"
OnItemCreated
=
"rgProcessos_ItemCreated"
OnColumnCreated
=
"rgProcessos_ColumnCreated"
AllowFilteringByColumn
=
"true"
PageSize
=
"100"
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
AlwaysVisible
=
"true"
Position
=
"Bottom"
PagerTextFormat
=
"páginas: {4} | página {0} de {1}, registo {2} a {3} de {5}"
/>
<
MasterTableView
DataKeyNames
=
"PRC_Cod, Alerta"
Name
=
"Processos"
>
<
DetailTables
>
<
telerik:GridTableView
DataKeyNames
=
"ADI_Cod"
Name
=
"Aditamentos"
Width
=
"100%"
ShowFooter
=
"false"
AllowFilteringByColumn
=
"false"
AllowPaging
=
"false"
>
<
DetailTables
>
<
telerik:GridTableView
Name
=
"Documentos"
Width
=
"100%"
AllowFilteringByColumn
=
"false"
AllowPaging
=
"false"
>
<
Columns
>
<
telerik:GridBoundColumn
HeaderText
=
"Nr Ordem"
ItemStyle-HorizontalAlign
=
"Center"
HeaderStyle-HorizontalAlign
=
"Center"
DataField
=
"DDD_Num_Ordem"
/>
<
telerik:GridBoundColumn
HeaderText
=
"Nr Documento"
ItemStyle-HorizontalAlign
=
"Center"
HeaderStyle-HorizontalAlign
=
"Center"
DataField
=
"DDD_Num_Doc"
/>
<
telerik:GridBoundColumn
HeaderText
=
"Data"
DataFormatString
=
"{0:dd/MM/yyyy}"
ItemStyle-HorizontalAlign
=
"Center"
HeaderStyle-HorizontalAlign
=
"Center"
DataField
=
"DDD_Data"
/>
<
telerik:GridBoundColumn
HeaderText
=
"Estado"
ItemStyle-HorizontalAlign
=
"Left"
HeaderStyle-HorizontalAlign
=
"Left"
DataField
=
"EST_Designacao"
/>
I want to do what the title says :) So, on page load (automatically) i want to expand one or more items of the GridTableView's. Appreciate any help.
Thanks,
Mário