Hi,
I've got a problem with the excel export for the RadGrid. My grid is a hierarchical grid, there's the master table, and 3 detail tables at the same level of hierarchy. When the user click to the command button for the excel export I need to suppress 1 column in 2 of 3 detail tables, in particular the column is an image column (in the exported file I see the image's pathname).
I try to set visible = false to this column in the RadGrid_ItemCommand, in the button click(i also tried to add a button for the excel export), in the
RadGrid_ItemCreated, but the exported file have only the MasterTableView. To obtain all the hierarchies in the exported file I have to leave unchanged the columns.
How can I suppress the column in detail tables, obtaining anyway all the hierarchies?
thanks in advance,
regards
MgfProject s.r.l
Private Sub DataGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles DataGrid.ItemDataBound If TypeOf e.Item Is GridFooterItem Then Dim footerItem As GridFooterItem = DirectCast(e.Item, GridFooterItem) Dim strUSD As Decimal = footerItem("BalanceUSD").Text Dim strLBP As Decimal = footerItem("BalanceLBP").Text Dim LBPvalue As Decimal = strLBP * 1507.5 Dim totalvalue As Decimal = strUSD + LBPvalue 'MsgBox(totalvalue) End If End SubHow do i handle when no data is in the grid?
Regards,
Mike


I have a control I that contains a DockLayout.
In the OnInit method of this control, I call a method to create a Dock and then populate it. Once that's done, this gets called...
void InitializeDock(RadDock DockToInitialize, DockState LoadedState) { DockToInitialize.ID = string.Format("Dock{0}", LoadedState.UniqueName); GetLayoutControl().Controls.Add(DockToInitialize); if (!IsPostBack) { GetAjaxifiedPanel().Controls.Add(DockToInitialize); } if (String.IsNullOrEmpty(LoadedState.DockZoneID)) { RadDockZone dz = (RadDockZone)FindControl("RadDockZone2"); if (dz != null) { LoadedState.DockZoneID = dz.ClientID; } } DockToInitialize.ApplyState(LoadedState); }All good so far.
At some point in the cycle, OnSaveDockLayout gets called. Even though the object that I'm using to create and populate the layout knows about my Dock, and I can see it in the appropriate DockZone, GetResgisteredDocksState() always returns an empty List<DockStates>.
I thought it might me something to do with the call to ApplyState() so I just created the Dock and calleddock.Dock(dockZone) on it and still got the empty list when OnSaveDockLayout was called.
What process is it that causes the source used by OnSaveDockLayout to be populated?
--
Stuart
<form id="Form1" method="post" runat="server"> <div> <radE:RadEditor id="RadEditor1" editable="true" Runat="server"></radE:RadEditor> </div> <script language="javascript"> function GetReference1() { var editor = GetRadEditor("<%=RadEditor1.ClientID%>"); alert(editor.Id); //returns RadEditor Client ID } </script> <input type="button" value="Get Ref1" onclick="GetReference1()"> </form>protected override void Render(HtmlTextWriter writer) { base.Render(writer); writer.WriteBeginTag("script"); writer.WriteAttribute("type", "text/javascript"); writer.Write(HtmlTextWriter.TagRightChar); writer.WriteLine("var HtmlEditor = " + RadEditor1.ClientID + ";"); writer.WriteLine("alert(HtmlEditor)"); writer.WriteEndTag("script"); }