private void ConfigurePDFExport()
{
this.RadGridStaff.ExportSettings.OpenInNewWindow = true;
this.RadGridStaff.ExportSettings.ExportOnlyData = true;
this.RadGridStaff.ExportSettings.IgnorePaging = true;
this.RadGridStaff.ExportSettings.Pdf.PageTitle = "Staff Test";
this.RadGridStaff.ExportSettings.Pdf.PageHeight = Unit.Parse("210mm", CultureInfo.InvariantCulture);
this.RadGridStaff.ExportSettings.Pdf.PageWidth = Unit.Parse("297mm", CultureInfo.InvariantCulture);
this.RadGridStaff.MasterTableView.Columns.FindByUniqueName("EditCommandColumn").Visible = false;
this.RadGridStaff.MasterTableView.Columns.FindByUniqueName("IssueColumn").Visible = false;
this.RadGridStaff.ExportSettings.FileName = "Staff";
RadGridStaff.MasterTableView.GetColumn(
"LastName").ItemStyle.Wrap = true;
}
If anyone knows how to fix this problem, please let me know.
Thanks,
Marlon.
MasterTableView.Columns[2].HeaderText="My header text" won't work for GridButtonColumn -ButtonType="LinkButton", only works for GridBondColumn.
Thanks!
In my ascx file i have a radgrid<telerik:RadGrid ID="gvDayWiseCashReport" runat="server" AutoGenerateColumns="False" GridLines="None" OnItemDataBound="gvDayWiseCashReport_ItemDataBound"> <MasterTableView> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> </MasterTableView> </telerik:RadGrid>protected void btnSearch_Click(object sender, EventArgs e) { DaysList daysforList = null; Month = int.Parse(ddlMonth.SelectedValue); Year = int.Parse(ddlYear.SelectedValue); GetDates dates = new GetDates(); FirstDate = dates.GetFirstDayOfMonth(Month, Year); LastDate = dates.GetLastDayOfMonth(Month, Year); days = System.DateTime.DaysInMonth(int.Parse(ddlYear.SelectedItem.Value), int.Parse(ddlMonth.SelectedValue)).ToString(); int NoofDays = int.Parse(days); DataSet ds = new DataSet(); DateTime date; CustomSQLCommand command = new CustomSQLCommand(@"select distinct Purpose,Others from tbl_CashRequest req left join tbl_CashPurpose purpose on purpose.ID=req.CashPurposeID", false); ds = command.ExecuteDataSet(); gvDayWiseCashReport.DataSource = null; gvDayWiseCashReport.MasterTableView.Columns.Clear(); gvDayWiseCashReport.DataBind(); gvDayWiseCashReport.DataSource = ds; GridBoundColumn boundColumn; boundColumn = new GridBoundColumn(); boundColumn.DataField = "Purpose"; gvDayWiseCashReport.MasterTableView.Columns.Add(boundColumn); for (int i = 1; i <= NoofDays; i++) { date = dates.GetDate(int.Parse(ddlMonth.SelectedValue), int.Parse(ddlYear.SelectedItem.Value), i); string strDay = date.DayOfWeek.ToString(); int Day = 0; CustomSQLCommand getDay = new CustomSQLCommand(@"select ID from tbl_PreferedTransferDay where PrefferedDay='" + @strDay + "'", false); try { Day = int.Parse(getDay.ExecuteScalar()); } catch { } if (Day != 0 && Day != null) { daysforList = new DaysList(); GridBoundColumn boundColumn1; boundColumn1 = new GridBoundColumn(); boundColumn1.HeaderText = String.Format("{0:ddd, MMM d, yyyy}", date); gvDayWiseCashReport.MasterTableView.Columns.Add(boundColumn1); daysforList.Day = date; daysforList.DayID = Day; ListDays.Add(daysforList); } Day = 0; } gvDayWiseCashReport.DataBind(); }Here i have some code in my itemdataboundfor (int i = 0; i < ListDays.Count; i++) { for (int j = 0; j < detList.Count; j++) { if (e.Item.ItemIndex == detList[j].ItemIndex && ((i + 3) == detList[j].CellNo)) { e.Item.Cells[i + 3].ToolTip = e.Item.Cells[i + 3].ToolTip + " Request Remarks: " + detList[j].Remarks + " Requester ID :" + detList[j].RequestID + " Requested Installment Amount :" + detList[j].Amount + "\r\n"; string val = e.Item.Cells[i + 3].ToolTip; } } }I have logics in my itemdatabound which i have not given here.in my item databound i am displaying with the using normal tooltip but if i want to do the same for a pop up or radtooltip, How can i do this? i dont want any more control in my radgrid and i have some repeated data for same cell so i have stored it in tooltip and used when repeated data comes i have used the same tooltip and other value. please tell me how can i do this.
Hello.
I’m currently working with RadControls_for_ASP.NET_AJAX_2010_1_519_dev
I have a RadAsyncUpload and two
asp buttons in the same form, Cancel and OK.
When pressed the Ok button, a server
side event is raised and I get the file name, extension and content type from
the file just uploaded looking at RadAsyncUpload.UploadedFileCollection.
So far so good.
My problem is that I need to know when looking into UploadedFileCollection if
the file was removed using the integrated Remove button in RadAsyncUpload.
UploadedFileCollection doesn’t seem to be affected by the Remove operation
made, as the file item still remains there.
What am I missing?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1"> <script type="text/javascript"> function test() { document.getElementById('<%= btnTest.ClientID %>').disabled = true; } </script> </telerik:RadScriptBlock> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <telerik:RadFormDecorator enabled="true" runat="server" ID="RadFormDecorator1" DecoratedControls="Buttons" /> <asp:Button runat="server" ID="btnTest" Text="Disable Me" /> <br /> <br /> <input type="button" value="Go" onclick="test();" /> </div> </form> </body> </html>