1. Does telerik radgrid exporting to pdf method has Multilanguage support(Hebrew language)?
2. Whether I can print the radgrid? Does radgrid support print functions?
3. At time I perform export data from radgrid with template fields to ms-word, the word file present one record per page, why? How I can repair this problem ?
Thanks
| <telerik:RadGrid ID="RadGrid1" |
| EnableEmbeddedSkins="false" |
| Skin="scSkin" |
| ImagesPath="images/" |
| AllowSorting="True" |
| PageSize="10" |
| ShowFooter="True" |
| AllowPaging="True" |
| DataSourceID="AdvDataSource" |
| OnItemCreated="RadGrid1_ItemCreated" |
| runat="server"> |
| <MasterTableView DataSourceID="AdvDataSource" CommandItemDisplay="Top" DataKeyNames="scout_adv_id" Width="100%" HorizontalAlign="NotSet" AutoGenerateColumns="False"> |
| <CommandItemSettings AddNewRecordText="Add an Advancement Track" RefreshText="Refresh" /> |
| <Columns> |
| <telerik:GridBoundColumn UniqueName="scout_adv_id" DataField="scout_adv_id" Visible="false" /> |
| <telerik:GridBoundColumn UniqueName="adv_id" DataField="adv_id" Visible="false" /> |
| <telerik:GridTemplateColumn HeaderText="Advancement Name" UniqueName="adv_nm"> |
| <ItemStyle Width="150" /> |
| <ItemTemplate> |
| <asp:Label Width="145" CssClass="gridLabel" runat="server" ID="lbl_adv_nm" Text='<%# Eval("adv_nm") %>' /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn HeaderText="Completion Date" UniqueName="adv_compdate"> |
| <ItemStyle Width="150" /> |
| <ItemTemplate> |
| <asp:Label Width="145" CssClass="gridLabel" runat="server" ID="lbl_adv_compdate" Text='<%# Eval("adv_compdate") %>' /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| <DetailTables> |
| <telerik:GridTableView DataKeyNames="scout_adv_step_id" DataSourceID="AdvStepDataSource" Width="100%" runat="server" CommandItemDisplay="None" AutoGenerateColumns="false"> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="scout_adv_id" MasterKeyField="scout_adv_id" /> |
| </ParentTableRelation> |
| <Columns> |
| <telerik:GridTemplateColumn HeaderText="Advancement Step ID" UniqueName="scout_adv_step_id"> |
| <ItemStyle Width="150" /> |
| <ItemTemplate> |
| <asp:Label Width="145" CssClass="gridLabel" runat="server" ID="lbl_scout_adv_step_id" Text='<%# Eval("scout_adv_step_id") %>' /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </telerik:GridTableView> |
| </DetailTables> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| <Scrolling AllowScroll="false" UseStaticHeaders="True" /> |
| </ClientSettings> |
| <PagerStyle Mode="NextPrevAndNumeric" /> |
| </telerik:RadGrid> |
| <asp:SqlDataSource ID="AdvDataSource" ConnectionString="<%$ConnectionStrings:LocalSqlServer %>" SelectCommand="SELECT [sc_scout_adv].[scout_adv_id], [sc_scout_adv].[adv_id], CONVERT(varchar,[sc_scout_adv].[adv_compdate],101) AS [adv_compdate], CONVERT(varchar,[sc_scout_adv].[adv_rptdate],101) AS [adv_rptdate], CONVERT(varchar,[sc_scout_adv].[adv_presdate],101) AS [adv_presdate], [sc_adv].[adv_nm] FROM [sc_scout_adv] LEFT JOIN [sc_adv] ON [sc_adv].[adv_id] = [sc_scout_adv].[adv_id] WHERE [sc_scout_adv].[scout_id]=" & scout_id & " ORDER BY [sc_scout_adv].[scout_adv_id] ASC" runat="server" /> |
| <asp:SqlDataSource ID="AdvStepDataSource" ConnectionString="<%$ConnectionStrings:LocalSqlServer %>" SelectCommand="Select [sc_scout_adv_steps].[scout_adv_step_id] FROM [sc_scout_adv_steps] WHERE [sc_scout_adv_steps].[scout_adv_id] = ?" runat="server"> |
| <SelectParameters> |
| <asp:SessionParameter Name="scout_adv_id" SessionField="scout_adv_id" Type="Int32" /> |
| </SelectParameters> |
| </asp:SqlDataSource> |
protected void MsgGrid_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (e.Item as GridDataItem);
// Attach click event handler to Title_Btn
LinkButton titleBtn = (LinkButton) item["ContentColumn"].FindControl("Title_Btn");
titleBtn.Click += new EventHandler(TitleBtn_Clicked);
// Set Ajax source and target
Panel loadPanel = (Panel)item["ContentColumn"].FindControl("Container_Panel");
RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(item, loadPanel);
}
}
-------------------------------------------------------------------------------
<ItemTemplate>
<asp:Panel ID="Container_Panel" runat="server">
<div runat="server" class="headerPanel" >
<%--<asp:Label ID="Title_Lbl" runat="server" Text='<%# Eval("Title") %>'></asp:Label>--%>
<div style="width:400px;min-width: 400px;float:left;">
<asp:LinkButton ID="Title_Btn" runat="server" Text='<%# Eval("Title") %>' style="width:200px;min-width: 200px;color:Navy"></asp:LinkButton>
<asp:Label ID="SourceName_Lbl" runat="server" style="width:150px" ></asp:Label> <%-- Bind at runtime--%></div>
<div style="text-align:right;float:right ">
<asp:Label ID="CreateTime_Lbl" runat="server" Text='<%# Eval("CreateTime", "{0:G}") %>' ></asp:Label>
</div>
</div>
<div runat="server" style="clear:both;height:0px;display:none" id="Loading_Panel_container">
</div>
<dbwc:dynamiccontrolsplaceholder id="Loading_Panel" runat="server" ControlsWithoutIDs="DontPersist" ></dbwc:dynamiccontrolsplaceholder>
</asp:Panel>
</ItemTemplate>
Thanks for your help.
Ricky.
dataitem(
"groupid").Style.Add("visibility", "hidden")
this worked just fine.
I then needed to set this row to be editable. (I have the grid to edit inplace). In the ItemDataBound handler, after I set the styles like the one above, I set the row to be editable:
dataitem.edit = true
Initially I did not see the cells become editable (showing textboxes instead of labels).
After reading in the documentation that I need to rebind the grid after I change the edit property, I placed a rebind() in the page's PreRenderComplete handler:
Me
.PreRenderComplete
This now shows the editable columns in the row BUT all of the style changes that I did in the ItemDataBound handler are lost. If I take out the rebind() in the PreRenderComplete the style changes are made but the editable columns are not set.
Is there a way to both set the style of a row dynamically and set it to be editable?
function OnClientDragEnd(sender, eventArgs)
{
sender.set_enableDrag =
false;
sender.set_closed =
true;
sender_dockMode = 0;
}
but nothing heppens. The Dock ist still enabled and opend?
Thanks for your Help