<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
GridLines="None" Skin="Outlook" AutoGenerateColumns="False" OnPageIndexChanged="RadGrid1_PageIndexChanged"
OnPageSizeChanged="RadGrid1_PageSizeChanged" VirtualItemCount="30000" OnSortCommand="RadGrid1_SortCommand"
OnItemCommand="RadGrid1_ItemCommand" PageSize="5" EnableHeaderContextMenu="True">
<MasterTableView DataKeyNames="company">
<PagerStyle AlwaysVisible="True" />
<Columns>
<telerik:GridTemplateColumn DataField="company" HeaderText="Code" UniqueName="company">
<ItemTemplate>
<asp:LinkButton runat="server" ID="lnkCompany" Text='<%#Eval("company")%>' CommandArgument='<%#Eval("company") +"," +Eval("name")%>'
OnClick="lnkCompany_Click"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn HeaderText="Companies ID" DataField="companiesid" UniqueName="companiesid" />
<telerik:GridBoundColumn HeaderText="UC" DataField="adnocsupplier" UniqueName="adnocsupplier" />
<telerik:GridBoundColumn HeaderText="Name" DataField="name" UniqueName="name" />
<telerik:GridBoundColumn HeaderText="Type (A,C,M,P,V)" DataField="type (A,C,M,P,V)"
UniqueName="type" />
<telerik:GridBoundColumn HeaderText="Status (A,C,M,P,V)" DataField="status (A,C,M,P,V)"
UniqueName="status (A,C,M,P,V)" />
<telerik:GridBoundColumn HeaderText="Rating (C,M,V)" DataField="rating (C,M,V)" UniqueName="rating (C,M,V)" />
<telerik:GridBoundColumn HeaderText="HSE Score" DataField="hsescore" UniqueName="hsescore" />
<telerik:GridBoundColumn HeaderText="QA Score" DataField="qascore" UniqueName="qascore" />
<telerik:GridBoundColumn HeaderText="OPCO" DataField="opco" UniqueName="opco" />
</Columns>
<CommandItemSettings ShowExportToCsvButton="True" ShowExportToExcelButton="True" />
</MasterTableView>
<ExportSettings HideStructureColumns="True" IgnorePaging="True" OpenInNewWindow="True" />
</telerik:RadGrid>
Hi,
I am trying to Export Radgrid to CSV.. But problem is getting exporting with html tags..
Please help me to ignore the html tags on gridboundcolumns and to export only the required data
Soon reply highly appreciated

| If Not IsPostBack Then |
| Dim i as Integer = 0 |
| For Each d As RadDate In cal.SelectedDates |
| dvTimespots.RowFilter = "startdate <= #" & d.Date & "# AND enddate >= #" & d.Date & "#" |
| Dim cdt As New CalendarDayTemplate(d.Date.Day, dvTimespots.Count & " media item(s)") |
| Dim dt As New DayTemplate |
| With dt |
| .Content = cdt |
| .ID = i |
| End With |
| cal.CalendarDayTemplates.Add(dt) |
| Dim rcd As New RadCalendarDay |
| With rcd |
| .Date = d.Date |
| .TemplateID = i |
| End With |
| cal.SpecialDays.Add(rcd) |
| i += 1 |
| Next End If |
ForeignKeyField at run time Then Appointment Not Showing in Scheduler Records Come In Our Dataset ant its bind Successfull bit Does Not Show In Scheduler. Why Please Help Me.
My Source Code :
ds = dl.FillDataSet(
CommandType.StoredProcedure, "uspGetAppointments", HashIn);
if (ds.Tables[0].Rows.Count > 0)
{
RadScheduler1.SelectedDate = CalApp.SelectedDate;
RadScheduler1.DayStartTime =
TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[0].ToString());
RadScheduler1.DayEndTime =
TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[1].ToString());
RadScheduler1.MinutesPerRow =
int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());
RadScheduler1.TimeLabelRowSpan = 60 /
int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());
RadScheduler1.DataKeyField =
"AppointmentId";
RadScheduler1.DataStartField =
"FromTime";
RadScheduler1.DataEndField =
"ToTime";
RadScheduler1.DataSubjectField =
"Subject";
RadScheduler1.GroupBy =
"Resource";
RadScheduler1.DataDescriptionField =
"StatusColor";
RadScheduler1.ResourceTypes.Clear();
ResourceType rt = new ResourceType("Resource");
rt.DataSource = ds.Tables[2];
rt.KeyField =
"ResourceId";
if (ddlFacility.SelectedValue == "0")
{
rt.ForeignKeyField =
"FacilityId";
}
else
{
rt.ForeignKeyField =
"DoctorId";
}
rt.TextField =
"ResourceName";
RadScheduler1.ResourceTypes.Add(rt);
RadScheduler1.DataSource = ds.Tables[1];
RadScheduler1.DataBind();
Thanks
Chandan
<TimelineView UserSelectable="true" SlotDuration="365" NumberOfSlots="1" HeaderDateFormat="yyyy" ColumnHeaderDateFormat="yyyy" /> |