Hi I want to use nestedview like in the "Grid / Hierarchy with Templates",
but I am using RadGrid.Net2.dll, then when I try to put the tag . <NestedViewTemplate> it not work and said something like that : "validation (Internet explorer 6): element NestedViewTemplate is not supporter".
There are other way or i need something special?
In advance thanks
but I am using RadGrid.Net2.dll, then when I try to put the tag . <NestedViewTemplate> it not work and said something like that : "validation (Internet explorer 6): element NestedViewTemplate is not supporter".
There are other way or i need something special?
In advance thanks
4 Answers, 1 is accepted
0
Hello,
This feature is available only for RadGrid which is part of Telerik.Web.UI.dll.
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
This feature is available only for RadGrid which is part of Telerik.Web.UI.dll.
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
maria
Top achievements
Rank 1
answered on 04 Sep 2009, 02:28 PM
OK, I changed the version to v2008. I saw the example "Grid / Hierarchy with Templates" in : "Demo online" section, But in this example they used a SQLDatasource to fill the radgrid (
In which event I should put my code for to fill my grid who is into
In advance thanks
Cristina
OrdersGrid) into the NestedViewTemplate in design time. I want to do the same but I want to fill radgrid (OrdersGrid) in run time with a object, I thought that I can do it in DetailTableDataBind event but I put a break point here and it not stop here .In which event I should put my code for to fill my grid who is into
NestedViewTemplate ??In advance thanks
Cristina
0
Princy
Top achievements
Rank 2
answered on 07 Sep 2009, 08:23 AM
Hello Cristina,
You can use the NeedDataSource event of the nested grid inorder to populate it at runtime:
aspx:
C#:
Hope this helps..
Princy.
You can use the NeedDataSource event of the nested grid inorder to populate it at runtime:
aspx:
| <NestedViewTemplate> |
| <telerik:RadGrid runat="server" OnNeedDataSource="OrdersGrid_NeedDataSource" AutoGenerateColumns="true" ID="OrdersGrid"> |
| <MasterTableView> |
| .... |
| </MasterTableView> |
| </telerik:RadGrid> |
| </NestedViewTemplate> |
C#:
| protected void OrdersGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) |
| { |
| RadGrid grid = (RadGrid)source; |
| // populate the grid |
| } |
Hope this helps..
Princy.
0
maria
Top achievements
Rank 1
answered on 07 Sep 2009, 09:11 PM
this event (OrdersGrid_NeedDataSource) occurs when I close the daetail.
I want to fill it (radMain) each time when I open a row of the radgridResultados
I have this code :
<rad:radgrid HorizontalAlign="Center" id="radgridResultados" AutoGenerateColumns="False" runat="server" AllowPaging="True" GridLines="None" Width="95%" OnNeedDataSource="radgridResultados_NeedDataSource" HeaderStyle-HorizontalAlign= "Center" ShowStatusBar="True" OnDetailTableDataBind="radgridResultados_DetailTableDataBind" OnItemCommand="radgridResultados_ItemCommand" Skin="WebBlue">
<ClientSettings><Scrolling AllowScroll="True" ScrollHeight="400px"/> </ClientSettings>
<ExportSettings IgnorePaging="True" OpenInNewWindow="True"></ExportSettings>
<MasterTableView DataKeyNames="RutCliente" AllowMultiColumnSorting="True">
<NestedViewTemplate>
<asp:Panel runat="server" ID="InnerContainer" Visible="false">
<rad:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0">
<Tabs>
<rad:RadTab runat="server" Text="No Personales" PageViewID="PageView1">
</rad:RadTab>
<rad:RadTab runat="server" Text="Personales" PageViewID="PageView2">
</rad:RadTab>
</Tabs>
</rad:RadTabStrip>
<rad:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
<rad:RadPageView runat="server" ID="PageView1">
<rad:radgrid HorizontalAlign="Center" id="radMain" AutoGenerateColumns="False" runat="server" AllowPaging="True" GridLines="None" Width="95%" HeaderStyle-HorizontalAlign= "Center" ShowStatusBar="True" Skin="WebBlue" OnNeedDataSource="radMain_NeedDataSource">
<ClientSettings AllowExpandCollapse = "True"><Scrolling AllowScroll="True" ScrollHeight="100px"/> </ClientSettings>
<ExportSettings IgnorePaging="True" OpenInNewWindow="True"></ExportSettings>
<MasterTableView DataKeyNames="RutCliente">
<DetailTables>
<rad:GridTableView runat="server" Width="80%" HorizontalAlign="Left" >
<Columns>
<rad:GridBoundColumn DataField="NombreImagen" HeaderText="Nombre" UniqueName="NombreImagen" Visible="False"><ItemStyle HorizontalAlign="Center" /><HeaderStyle Wrap="True" /></rad:GridBoundColumn>
<rad:GridBoundColumn DataField="DesDocumento" HeaderText="Documento" UniqueName="DesDocumento"></rad:GridBoundColumn>
<rad:GridHyperLinkColumn Text="Ver Imagen" HeaderImageUrl="Imagenes/gif_16.gif" DataNavigateUrlFields= "CodigoAlmacenamiento,NombreImagen,idDocumeto" DataNavigateUrlFormatString= "javascript:ShowMessage('imagen.aspx?&C={0}&R={1}&P={2}&I=True')" UniqueName="column"></rad:GridHyperLinkColumn>
</Columns>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="5px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="5px" />
</ExpandCollapseColumn>
</rad:GridTableView>
</DetailTables>
<RowIndicatorColumn Visible="False"><HeaderStyle Width="5px" /></RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False"><HeaderStyle Width="5px" /></ExpandCollapseColumn>
<Columns>
<rad:GridBoundColumn DataField="IdOperacion" HeaderText="Operacion" UniqueName="IdOperacion" DataFormatString=" {0}">
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="RutCliente" HeaderText="Rut Cliente" UniqueName="RutCliente" Visible="false">
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="FechaPublicacion" HeaderText="Fecha Publicación" UniqueName="FechaPublicacion">
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="Producto" HeaderText="Producto" UniqueName="Producto">
</rad:GridBoundColumn>
</Columns>
</MasterTableView>
</rad:radgrid>
in advance thanks
I want to fill it (radMain) each time when I open a row of the radgridResultados
I have this code :
<rad:radgrid HorizontalAlign="Center" id="radgridResultados" AutoGenerateColumns="False" runat="server" AllowPaging="True" GridLines="None" Width="95%" OnNeedDataSource="radgridResultados_NeedDataSource" HeaderStyle-HorizontalAlign= "Center" ShowStatusBar="True" OnDetailTableDataBind="radgridResultados_DetailTableDataBind" OnItemCommand="radgridResultados_ItemCommand" Skin="WebBlue">
<ClientSettings><Scrolling AllowScroll="True" ScrollHeight="400px"/> </ClientSettings>
<ExportSettings IgnorePaging="True" OpenInNewWindow="True"></ExportSettings>
<MasterTableView DataKeyNames="RutCliente" AllowMultiColumnSorting="True">
<NestedViewTemplate>
<asp:Panel runat="server" ID="InnerContainer" Visible="false">
<rad:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0">
<Tabs>
<rad:RadTab runat="server" Text="No Personales" PageViewID="PageView1">
</rad:RadTab>
<rad:RadTab runat="server" Text="Personales" PageViewID="PageView2">
</rad:RadTab>
</Tabs>
</rad:RadTabStrip>
<rad:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
<rad:RadPageView runat="server" ID="PageView1">
<rad:radgrid HorizontalAlign="Center" id="radMain" AutoGenerateColumns="False" runat="server" AllowPaging="True" GridLines="None" Width="95%" HeaderStyle-HorizontalAlign= "Center" ShowStatusBar="True" Skin="WebBlue" OnNeedDataSource="radMain_NeedDataSource">
<ClientSettings AllowExpandCollapse = "True"><Scrolling AllowScroll="True" ScrollHeight="100px"/> </ClientSettings>
<ExportSettings IgnorePaging="True" OpenInNewWindow="True"></ExportSettings>
<MasterTableView DataKeyNames="RutCliente">
<DetailTables>
<rad:GridTableView runat="server" Width="80%" HorizontalAlign="Left" >
<Columns>
<rad:GridBoundColumn DataField="NombreImagen" HeaderText="Nombre" UniqueName="NombreImagen" Visible="False"><ItemStyle HorizontalAlign="Center" /><HeaderStyle Wrap="True" /></rad:GridBoundColumn>
<rad:GridBoundColumn DataField="DesDocumento" HeaderText="Documento" UniqueName="DesDocumento"></rad:GridBoundColumn>
<rad:GridHyperLinkColumn Text="Ver Imagen" HeaderImageUrl="Imagenes/gif_16.gif" DataNavigateUrlFields= "CodigoAlmacenamiento,NombreImagen,idDocumeto" DataNavigateUrlFormatString= "javascript:ShowMessage('imagen.aspx?&C={0}&R={1}&P={2}&I=True')" UniqueName="column"></rad:GridHyperLinkColumn>
</Columns>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="5px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="5px" />
</ExpandCollapseColumn>
</rad:GridTableView>
</DetailTables>
<RowIndicatorColumn Visible="False"><HeaderStyle Width="5px" /></RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False"><HeaderStyle Width="5px" /></ExpandCollapseColumn>
<Columns>
<rad:GridBoundColumn DataField="IdOperacion" HeaderText="Operacion" UniqueName="IdOperacion" DataFormatString=" {0}">
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="RutCliente" HeaderText="Rut Cliente" UniqueName="RutCliente" Visible="false">
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="FechaPublicacion" HeaderText="Fecha Publicación" UniqueName="FechaPublicacion">
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="Producto" HeaderText="Producto" UniqueName="Producto">
</rad:GridBoundColumn>
</Columns>
</MasterTableView>
</rad:radgrid>
in advance thanks
