Hi there,
I've got a problem with a RadGrid in a RadDock.
I already read some threads in the community an in the Knowledge Base:
http://www.telerik.com/support/kb/aspnet-ajax/dock/placing-radgrid-in-a-dockable-object.aspx
The thing is, that the RadGrid is already displayed in the RadDock.
I would like to use additional attributes for the RadGrid. First of all here the code:
I am sorry about the unformated code.....
The problem is at the top after the <telerik:RadGrid- tag.
Here we have the following lines:
These lines of code are not working.... In fact a lot of properties of a usually RadGrid are not working correctly. For example the user is not able so select one or more lines.
I already tried a lot of ways to fix this problem, but now I don't have an other idea.
Yours sincerely
I've got a problem with a RadGrid in a RadDock.
I already read some threads in the community an in the Knowledge Base:
http://www.telerik.com/support/kb/aspnet-ajax/dock/placing-radgrid-in-a-dockable-object.aspx
The thing is, that the RadGrid is already displayed in the RadDock.
I would like to use additional attributes for the RadGrid. First of all here the code:
<telerik:RadDockLayout EnableAjaxSkinRendering="true" EnableEmbeddedBaseStylesheet="true" EnableEmbeddedSkins="true" EnableViewState="true" runat="server" Visible="true"> |
<telerik:RadDockZone runat="server" ID="RadDockZone3" Orientation="Vertical" Skin="Office2007" Width="100%"> |
<telerik:RadDock ID="RadDock_abwesenheit" Title="Abwesenheiten" EnableEmbeddedBaseStylesheet="true" EnableEmbeddedSkins="true" runat="server" |
DockMode="Docked" EnableDrag="false" DefaultCommands="None"> |
<TitlebarTemplate> |
<div id="div_master_top_left" style="z-index: 100"> |
Abwesenheiten |
</div> |
<div id="div_master_top_right" style="z-index: 101"> |
<table width="100%"> |
<tr align="center"> |
<td align="center"> |
<asp:LinkButton ID="adFav" runat="server" CssClass="content_element" ForeColor="Black" |
Style="text-align: center; margin-top: 15px;" Text='<img style="border:0px;vertical-align:middle; text-align:center; " alt="" src="..\images\AddFav.gif" /> Zu Favoriten' |
meta:resourcekey="adFavResource1"></asp:LinkButton> |
</td> |
</tr> |
</table> |
</div> |
</TitlebarTemplate> |
<ContentTemplate> |
<%-- Grid --%> |
<telerik:RadGrid ID="Grid_Rad" runat="server" |
DataSourceID="ObjectDataSource_Abwesenheiten" GridLines="Both" |
meta:resourcekey="Grid_RadResource1" AutoGenerateColumns="False" Width="100%"> |
<HeaderContextMenu EnableTheming="True"> |
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
</HeaderContextMenu> |
<GroupPanel ID="GroupPanel" Text="Gruppierungsfläche"> |
</GroupPanel> |
<ExportSettings FileName="Abwesenheit" OpenInNewWindow="True"> |
<Pdf PaperSize="A4" PageHeight="210mm" PageWidth="297mm" /> |
</ExportSettings> |
<MasterTableView DataKeyNames="hr_m_abwesenheit_id" DataSourceID="ObjectDataSource_Abwesenheiten" |
NoDetailRecordsText="Keine Daten vorhanden." |
NoMasterRecordsText="Keine Daten vorhanden."> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px" /> |
</RowIndicatorColumn> |
<ExpandCollapseColumn> |
<HeaderStyle Width="20px" /> |
</ExpandCollapseColumn> |
<Columns> |
<%-- a lot of columns.... --%> |
</Columns> |
<CommandItemTemplate> |
<div style="padding: 10px 0px; float: left"> |
<asp:LinkButton ID="btnInitInsert" runat="server" CommandName="InitInsert" Visible='<%# (not (Grid_Rad.MasterTableView.IsItemInserted) and Grid_Rad.EditIndexes.Count = 0) and _allow_new %>' |
Text=' <img style="border:0px;vertical-align:middle;" alt="" src="..\RadControls\Skins\Office2007\Grid\AddRecord.gif" /> Hinzufügen' |
meta:resourcekey="btnInitInsertResource1"></asp:LinkButton> |
<asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" CausesValidation="False" |
Visible='<%# (Grid_Rad.EditIndexes.Count = 0 xor Grid_Rad.MasterTableView.IsItemInserted) and _allow_edit %>' |
Text=' <img style="border:0px;vertical-align:middle;" alt="" src="..\RadControls\Skins\Office2007\Grid\Edit.gif" /> Ausgewählte Daten bearbeiten ' |
meta:resourcekey="btnEditSelectedResource1"></asp:LinkButton> |
<asp:LinkButton ID="btnEditAll" runat="server" CommandName="EditAll" CausesValidation="False" |
Visible='<%# (Grid_Rad.EditIndexes.Count = 0 xor Grid_Rad.MasterTableView.IsItemInserted) and _allow_edit %>' |
Text=' <img style="border:0px;vertical-align:middle;" alt="" src="..\RadControls\Skins\Office2007\Grid\Edit.gif" /> Alle Daten bearbeiten ' |
meta:resourcekey="btnEditAllResource1"></asp:LinkButton> |
<asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# Grid_Rad.EditIndexes.Count > 0 %>' |
Text=' <img style="border:0px;vertical-align:middle;" alt="" src="..\RadControls\Skins\Office2007\Grid\Update.gif" /> Speichern ' |
meta:resourcekey="btnUpdateEditedResource1"></asp:LinkButton> |
<asp:LinkButton ID="btnDelete" OnClientClick="javascript:return confirm(document.getElementById('txt_delete_message').value)" |
runat="server" Visible='<%# (Grid_Rad.EditIndexes.Count = 0) and _allow_del %>' |
CommandName="DeleteSelected" CausesValidation="False" Text=' <img style="border:0px;vertical-align:middle;" alt="" src="..\RadControls\Skins\Office2007\Grid\Delete.gif" /> Ausgewählte Daten löschen ' |
meta:resourcekey="btnDeleteResource1"></asp:LinkButton> |
<asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" CausesValidation="False" |
Visible='<%# Grid_Rad.EditIndexes.Count > 0 xor Grid_Rad.MasterTableView.IsItemInserted %>' |
Text=' <img style="border:0px;vertical-align:middle;" alt="" src="..\RadControls\Skins\Office2007\Grid\Cancel.gif" /> Abbrechen ' |
meta:resourcekey="btnCancelResource1"></asp:LinkButton> |
</div> |
<div style="padding: 10px 10px; float: right"> |
<asp:LinkButton ID="btn_Excel" runat="server" OnClick="btn_Excel_Click" Text='<img style="border:0px;vertical-align:middle;" alt="" src="..\RadControls\Skins\Office2007\Grid\xls.gif" /> Excel' |
CausesValidation="False" meta:resourcekey="btn_ExcelResource1"></asp:LinkButton> |
<asp:LinkButton ID="btn_Word" runat="server" OnClick="btn_Word_Click" Text='<img style="border:0px;vertical-align:middle;" alt="" src="..\RadControls\Skins\Office2007\Grid\doc.gif" /> Word' |
CausesValidation="False" meta:resourcekey="btn_WordResource1"></asp:LinkButton> |
<asp:LinkButton ID="btn_pdf" Visible="False" runat="server" OnClick="btn_pdf_Click" |
Text='<img style="border:0px;vertical-align:middle;" alt="" src="..\RadControls\Skins\Office2007\Grid\pdf.gif" /> PDF' |
CausesValidation="False" meta:resourcekey="btn_pdfResource1"></asp:LinkButton> |
</div> |
</CommandItemTemplate> |
<EditFormSettings> |
<EditColumn UniqueName="EditCommandColumn1"> |
</EditColumn> |
</EditFormSettings> |
</MasterTableView> |
<ClientSettings> |
<Scrolling ScrollHeight="415px" AllowScroll="True" UseStaticHeaders="true" /> |
</ClientSettings> |
<FilterMenu EnableTheming="True"> |
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
</FilterMenu> |
</telerik:RadGrid> |
<%-- </telerik:RadAjaxPanel>--%> |
<!-- Grid DataSource --> |
<asp:ObjectDataSource ID="ObjectDataSource_Abwesenheiten" runat="server" OldValuesParameterFormatString="original_{0}" |
SelectMethod="Get_Data_Abwesenheit" TypeName="ProcessHRClassLibrary.BLL_Grundlagen"> |
<SelectParameters> |
<asp:SessionParameter Name="mandant_id" SessionField="hr_c_mandant_id" Type="Int32" |
DefaultValue="" /> |
</SelectParameters> |
</asp:ObjectDataSource> |
<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Height="75px" Transparency="40" |
BackColor="#C3DAF9" Width="75px" meta:resourcekey="LoadingPanel1Resource1"> |
</telerik:RadAjaxLoadingPanel> |
<asp:ObjectDataSource ID="ObjectDataSource_Mandant" runat="server" OldValuesParameterFormatString="original_{0}" |
SelectMethod="Get_Data_Mandant_without_own" TypeName="ProcessHRClassLibrary.BLL_Grundlagen"> |
<SelectParameters> |
<asp:SessionParameter Name="_mandant_id" SessionField="hr_c_mandant_id" Type="Int32" /> |
</SelectParameters> |
</asp:ObjectDataSource> |
<asp:HiddenField ID="hid_mn_id" runat="server" /> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" meta:resourcekey="RadAjaxManager1Resource1"> |
</telerik:RadAjaxManager> |
<%-- </div> --%> |
</ContentTemplate> |
</telerik:RadDock> |
</telerik:RadDockZone> |
</telerik:RadDockLayout> |
I am sorry about the unformated code.....
The problem is at the top after the <telerik:RadGrid- tag.
Here we have the following lines:
<HeaderContextMenu EnableTheming="True"> |
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
</HeaderContextMenu> |
<GroupPanel ID="GroupPanel" Text="Gruppierungsfläche"> |
</GroupPanel> |
<ExportSettings FileName="Abwesenheit" OpenInNewWindow="True"> |
<Pdf PaperSize="A4" PageHeight="210mm" PageWidth="297mm" /> |
</ExportSettings> |
These lines of code are not working.... In fact a lot of properties of a usually RadGrid are not working correctly. For example the user is not able so select one or more lines.
I already tried a lot of ways to fix this problem, but now I don't have an other idea.
Yours sincerely