| private void CreaMenuContextual(string sTipoCompromiso) |
| { |
| StringBuilder sSql = new StringBuilder(); |
| SqlCommand cmd = new SqlCommand(); |
| ClsData ObjData = new ClsData(ConfigurationManager.ConnectionStrings["MyCnnStr"].ConnectionString); |
| MenuCompromisos.DataTextField = "text_field"; |
| MenuCompromisos.DataValueField = "value_field"; |
| sSql.Append(" SELECT text_field, value_field"); |
| sSql.Append(" FROM TABLE"); |
| cmd.CommandText = sSql.ToString(); |
| MenuCompromisos.DataSource = ObjData.GetDataTable(cmd); |
| MenuCompromisos.DataBind(); |
| } |
Look at this code:
<telerik:RadCalendar ID="RadCalendar1" runat="server" Width="280px" NavigationNextText="Next>" NavigationPrevText="<Prev" />
<Prev does not show. I guess "<" is a special char. Could some body show me how to make this work?
Thanks!
Joseph
rgd.ExportSettings.Excel.Format =
GridExcelExportFormat.ExcelML;
rgd.ExportSettings.ExportOnlyData = true;
rgd.ExportSettings.OpenInNewWindow = true;
rgd.MasterTableView.ExportToExcel();
When I set the ExportOnlyData = false, my excel file opens, but nothing appears on the worksheet. If I set OpenInNewWindow = false --> my .aspx page hangs. Nothing happens.
The second issue I have is that I've set the GridExportExcelMLRowCreated and GridExportExcelMLStyleCreated events on my radGrid, but this code is not executed. I've placed a breakpoint, but nothing happens with these events.
Can someone please help me further? A simple export succeeds or when I place the GridExcelExportFormat.HTML as Excel.Format, everything works fine, but I'm not able to place any style on my excel export like in the example of telerik.
Thanks in advance!
Regards,
Tineke
| <Listing> |
| <Customer Name="Browning Bob" CustNumber="345" CustomerID="1" Address="123 Street1, 1 Coast, UK 89869" /> |
| <Customer Name="Williams" CustNumber="235" CustomerID="2" Address="123 Street2, Coast2, UK 89863" /> |
| </Listing> |
Few Issues with below xml:
| <?xml version="1.0" encoding="utf-8"?> |
| <Results> |
| <Products xmlns=""> |
| <DesignDate>06/15/2005</DesignDate> |
| <SoldDate>06/30/2006</SoldDate> |
| <Product_No.>7289</Product_No.> |
| <Customer>Thomas</Customer> |
| <Product_Type>Accessories</Product_Type> |
| <Price_Today>380</Price_Today> |
| </Products> |
| <Products xmlns=""> |
| <DesignDate>12/14/2004</DesignDate> |
| <SoldDate></SoldDate> |
| <Product_No.>3136</Product_No.> |
| <Customer>Karie</Customer> |
| <Product_Type>Electronics</Product_Type> |
| <Price_Today>333</Price_Today> |
| </Products> |
| </Results> |
1) How to bind this xml Using DOM Model to RadGrid from serverside? I don't want to pull xmldatasource and gridview with columns on FRONT end(aspx).
2) How to dynamically bind the nodes DesignDate, SoldDate....as columns to RadGrid with Data? b'coz there can be many columns with different column names and I don't to specify each by saying: HeaderText="DesignDate". I would like to generate this dynamically from serverside.
Would be great if provided with a code to make this working.
| protected void Review_RadToolTipManager_AjaxUpdate(object sender, ToolTipUpdateEventArgs e) |
| { |
| Control ctrl = Page.LoadControl("Quote_Detail.ascx"); |
| e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl); |
| ((Label)ctrl.FindControl("lblQuoteID")).Text = e.Value; |
| } |
| protected void Review_RadGrid_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridDataItem) |
| { |
| Review_RadToolTipManager.TargetControls.Add(e.Item.ClientID, ((DataRowView)e.Item.DataItem)["QuoteID"].ToString(), true); |
| } |
| } |