Hello,
I need help to finish process.
I have 10 pages that call process that generate pdfs, above.
Exemple:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="P1.aspx.cs" Inherits="P1" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=9.0.15.225, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div align="center">
<telerik:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="530px" ProgressText="Generate...">
<typereportsource typename="Project.Relatorios.Page1, Project.Relatorios, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"></typereportsource>
</telerik:ReportViewer>
</div>
</form>
</body>
</html>
public partial class Page1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ReportViewer1.ReportSource.Parameters.Add("Id", User.Session().Id);
}
}
}
I need generate this process programmatically for one diretory, to generate 10 pdfs this diretory,
and concatenet this 10 pdf in one pdf, and show this pdf in one click of button.
Anybody can help me?
I would like to set the raddatepicker calendar to today's date if the DbSelectedDate = "1/1/1900"
Here is my control ASPX
<telerik:RadDatePicker ID="rdp_ShipDate" runat="server" Culture="English (United States)" DbSelectedDate='<%#Bind("DateShipped")%>' SkipMinMaxDateValidationOnServer="True" MinDate="1/1/1800 12:00:00 AM"> <Calendar ID="Calendar1" runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"> <SpecialDays> <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="Green"> </telerik:RadCalendarDay> </SpecialDays> </Calendar> <DatePopupButton HoverImageUrl="" ImageUrl="" /></telerik:RadDatePicker>
Here is my attempted code behind
Protected Sub fvw_OrderDetails_DataBound(sender As Object, e As System.EventArgs) Handles fvw_OrderDetails.DataBound If fvw_OrderDetails.CurrentMode = FormViewMode.Edit Then Dim DateShipped As RadDatePicker = DirectCast(fvw_OrderDetails.FindControl("rdp_ShipDate"), RadDatePicker) If DateShipped.DbSelectedDate = "1/1/1900" Then CType(fvw_OrderDetails.FindControl("rdp_ShipDate"), RadDatePicker).Calendar.FocusedDate = DateTime.Now End If End IfEnd SubAny help much appreciated.

| <telerik:RadSplitter id="RadSplitter1" runat="server"> |
| <telerik:RadPane id="MiddlePane" runat="server" Width="956" Scrolling="None"> |
| <div class="vo_visite_apercu_conteneur"> |
| <asp:Image ImageUrl="~/images/flecheGvisite.jpg" ID="flecheGvisite" CssClass="flecheGvisite" AlternateText="gauche" runat="server" /> |
| <asp:Image ImageUrl="~/images/flecheDvisite.jpg" ID="flecheDvisite" CssClass="flecheDvisite" AlternateText="droite" runat="server" /> |
| <div class="vo_visite_apercu_div_rotator"> |
| <telerik:RadRotator ID="RadRotator1" runat="server" RotatorType="Buttons" Width="316px" Height="90px" ItemWidth="79" ItemHeight="75" ScrollDirection="Left" CssClass="vo_visite_apercu_rotator"> |
| <ItemTemplate> |
| <div class="vo_visite_apercu_item"> |
| <div class="vo_visite_apercu_img"> |
| <asp:Image ID="imgVeh" runat="server" Width="75" ToolTip="Cliquez pour accèder au détail" ImageUrl='<%# "~/images/" & Container.Dataitem("imgItem") & "-1small.jpg" %>' /> |
| </div> |
| <div align="center" class="vo_visite_apercu_chkBox"> |
| <asp:CheckBox ID="chkVeh" runat="server" /> |
| </div> |
| </div> |
| </ItemTemplate> |
| <ControlButtons LeftButtonID="flecheGvisite" RightButtonID="flecheDvisite" /> |
| </telerik:RadRotator> |
| </div> |
| </div> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
<rad:RadGrid ID="qualRadGrid" runat="server" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" AllowPaging="True" OnInsertCommand="qualRadGrid_InsertCommand" OnDeleteCommand="CategoryGrid_DeleteCommand" OnUpdateCommand="qualRadGrid_UpdateCommand" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ProgrammeDs" EnableAJAX="False" GridLines="None" RadControlsDir="~/Resources/RadControls/" Skin="Web20" SkinsPath="~/Resources/RadControls/Grid/Skins" Width="750px"> <MasterTableView AllowMultiColumnSorting="True" DataKeyNames="ProgId" DataSourceID="ProgrammeDs" CommandItemDisplay="Top" Name="Programme"> <DetailTables> <rad:GridTableView runat="server" CommandItemDisplay="Top" DataKeyNames="QualId" DataSourceID="QualificationDs" Name="Qualification" AllowMultiColumnSorting="True" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"> <ParentTableRelation> <rad:GridRelationFields DetailKeyField="ProgrammeId" MasterKeyField="ProgId" /> </ParentTableRelation> <RowIndicatorColumn> <HeaderStyle Width="20px" /> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px" /> </ExpandCollapseColumn> <Columns> <rad:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Resources/Buttons/EditButton.jpg"> </rad:GridEditCommandColumn> <rad:GridBoundColumn DataField="QualId" HeaderButtonType="TextButton" HeaderText="Qual Id" SortExpression="QualId" UniqueName="QualId" Visible="false"> </rad:GridBoundColumn> <rad:GridBoundColumn DataField="QualDescription" HeaderButtonType="TextButton" HeaderText="Short Description" UniqueName="ShortDesc"> </rad:GridBoundColumn> </Columns> <EditFormSettings EditFormType="Template"> <FormTemplate> <table id="editableTables-1"> <tr> <td> <asp:Label ID="Label1" runat="server">Short Description:</asp:Label> </td> <td> <asp:TextBox ID="ShortTextBox" Text='<%# Eval("QualDescription") %>' Width="155px" runat="server" TextMode="MultiLine" Height="30"> </asp:TextBox> <asp:RequiredFieldValidator ValidationGroup="validD" id="ReqSponsorTextBox" runat="server" ErrorMessage="*" ControlToValidate="ShortTextBox"></asp:RequiredFieldValidator> </td> </tr> <tr> <td> <asp:CheckBox ID="requiresSubjects" runat="server" Text="Requires Subjects:" AutoPostBack="true" OnCheckedChanged="FindTextBox_OnIndexChanged" /> </td> <td> <telerik:RadComboBox ID="subjectsCombo" EnableLoadOnDemand="true" AutoPostBack="true" MarkFirstMatch="true" OnItemsRequested="OnItemsRequested_getSubjects" runat="server" RadControlsDir="~/Resources/RadControls/Combobox/Skins" Width="155px" Skin="WebBlue" SkinsPath="~/Resources/RadControls/Combobox/Skins/"> </telerik:RadComboBox> </td> </tr> <tr> <td> <asp:ImageButton ID="LinkInsert" ValidationGroup="validD" Text='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "Insert" : "Update" %>' ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' Visible='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? true : false %>' /> <asp:ImageButton ID="LinkButton1" Text='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "Insert" : "Update" %>' ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' Visible='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? false : true %>' /> <asp:ImageButton ID="LinkButtonCancel" ImageUrl="~/Resources/Buttons/CancelButton.jpg" runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel" /> </td> </tr> <td> <tr> <td> <asp:TextBox ID="IDTextBox" Text='<%# Eval("QualId") %>' runat="server" Visible="false"> </asp:TextBox> </td> </tr> </table> </FormTemplate> <EditColumn UniqueName="EditCommandColumn1"> </EditColumn> </EditFormSettings> </rad:GridTableView> </DetailTables> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn Visible="True"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <%--<rad:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Resources/Buttons/EditButton.jpg"> </rad:GridEditCommandColumn>--%> <rad:GridBoundColumn DataField="ProgId" HeaderText="Programme ID" SortExpression="ProgId" UniqueName="ProgId" Visible="false"> </rad:GridBoundColumn> <rad:GridBoundColumn DataField="ProgCode" HeaderText="Programme Code" SortExpression="ProgCode" ConvertEmptyStringToNull="false" UniqueName="ProgCode"> </rad:GridBoundColumn> <rad:GridBoundColumn DataField="ProgrammeName" HeaderText="Programme Name" SortExpression="ProgrammeName" ConvertEmptyStringToNull="false" UniqueName="ProgrammeName"> </rad:GridBoundColumn> </Columns> </MasterTableView> </rad:RadGrid>We want to allow our users to configure a RadHtmlChart piechart a bit and save those settings, and when they return to that aspx page, the chart will load with those settings.
Is there a method to save their settings?
For example, the user only wants to see 5 of the 10 legend items by default.
But we still want to allow them to re-enable the none displayed legend items.. and etc...
So the user loads the page. The pie chart has 10 slices and thus 10 items in the legend.
The user clicks on several of the legend items so they are not displayed in the pie chart.
We want to save this configuration for them in the database.
When they revisit the page a few days later, it remembers their view settings for hte chart and displays it.
Then for example they then decide to show two of the excluded legend items by clicking on them again.
They legends that were once excluded are now included.
Etc..etc...
I am trying to open the radwindow on button click event from server side. when I do the same from client side with postback="false" and Onclientclicked="openRadWin" everything works fine. But If I enable the postback and try to call the javascript function openRadWin from server side that opens the radwindow , it is not working.
I am trying to open the radwindow based on the some condition and do some processing and return back to same original page after it completes. Below is my code snippet.
<script type="text/javascript">
function openRadWin() {
var width = 400;
var height = 400;
var left = 200;
var top = 200;/
radopen("popupMsg.aspx", "RadWindow1", width, height, left, top);
}
</script>
<telerik:RadScriptManager ID="mgr" runat="server"></telerik:RadScriptManager>
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" Visible="false"/>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="400px"
Height="400px" Title="Telerik RadWindow" Behaviors="close">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<div class="demo-container size-thin">
<p>
<telerik:RadButton runat="server" id="radpopup" OnClick="btnad_Click" Text="Open RadWindow" />
</p>
</div>
protected void btnad_Click(object sender, EventArgs e)
{
RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "test", "openRadWin();", true);
}
I have a site that allows ("user1" and "user2") to access. "user3" only has access to Test1.aspx. Everything works, but the RadGrid skin doesn't show up. Any ideas?
<system.web>
<authorization>
<allow users="user1, user2"/>
<deny users="*"/>
</authorization>
</system.web>
<location path="Test1.aspx">
<system.web>
<authorization>
<allow users ="user3" />
</authorization>
</system.web>
</location>
<location path="Telerik.Web.UI.WebResource.axd">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>