<
telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" OnFileUploaded="RadAsyncUpload1_FileUploaded">
</telerik:RadAsyncUpload>
<div style="width: 100%; height: 650px; overflow: auto; overflow-y: hidden"> <telerik:RadGrid ID="gvPjtMnt" runat="server" AutoGenerateColumns="false" Height="600px" BorderWidth="2px" BorderStyle="Solid" BackColor="White" AllowPaging="True" PagerStyle-AlwaysVisible="true" PageSize="20" AllowSorting="True" OnNeedDataSource="gvPjtMnt_OnNeedDataSource" AllowFilteringByColumn="true" OnItemCommand="gvPjtMnt_ItemCommand" OnItemCreated="gvPjtMnt_ItemCreated" OnItemDataBound="gvPjtMnt_ItemDataBound" OnPreRender="gvPjtMnt_PreRender"> <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" /> <AlternatingItemStyle Font-Size="8pt" BackColor="#F5F5E9" HorizontalAlign="Center" BorderWidth="1px" BorderColor="White" /> <MasterTableView GridLines="None" DataKeyNames="ProjectId" CommandItemDisplay="Top"> <CommandItemTemplate> <table style="width: 100%"> <tr align="right"> <td style="width: 75%"> </td> <td align="right"> <asp:linkbutton id="lnkshwFilter" text="ShowFilter" font-underline="true" forecolor="MidnightBlue" runat="server" onclientclick="return showFilterItem()" /> <asp:linkbutton id="lnkhdFilter" text="HideFilter" font-underline="true" forecolor="MidnightBlue" runat="server" onclientclick="return hideFilterItem()" /> </td> <td align="right"> <asp:linkbutton id="lnkclrFilter" text="ClearFilter" font-underline="true" forecolor="MidnightBlue" runat="server" onclick="lnkclrFilter_Click"></asp:linkbutton> </td> <td align="right"> Total Records found: <asp:label id="lblTotRecCount" runat="server" font-bold="True" font-size="10pt" forecolor="Black" text="0"></asp:label> </td> <td align="right" valign="middle"> <asp:imagebutton id="lnkExportAll" imageurl="~/images/Excel.png" tooltip="Export All" runat="server" onclick="ExportAll_Click" /> </td> <td align="right" valign="middle"> <asp:imagebutton id="ExportToExcelButton" runat="server" imageurl="~/images/ExportToExcel.gif" tooltip="Export to Excel" onclick="ExportExcel_Click" /> </td> </tr> </table> </CommandItemTemplate> <Columns> <telerik:GridBoundColumn DataField="ProjectId" UniqueName="ProjectId" Visible="false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="LOB" DataField="LOB" UniqueName="LOB"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Division Name" DataField="Division" UniqueName="Division"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Region Name" DataField="MarketName" UniqueName="MarketName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Project Name" DataField="ProjectName" UniqueName="ProjectName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Project Manager Name" DataField="ProjectMgrName" UniqueName="ProjectMgrName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Number Of Sites Received" DataField="NumSitesReceived" UniqueName="NumSitesReceived"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Accept Service Order Date" DataField="AcceptServiceOrderTaskCompleteDate" UniqueName="AcceptServiceOrderTaskCompleteDate" DataFormatString="{0:MM/dd/yyyy}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="PTD" DataField="PTD" UniqueName="PTD" DataFormatString="{0:MM/dd/yyyy}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Health Reason" DataField="HealthReason" UniqueName="HealthReason"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Project Health" DataField="ProjectHealth" UniqueName="ProjectHealth"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Customer Signed Date" DataField="CustomerSignedDate" UniqueName="CustomerSignedDate" DataFormatString="{0:MM/dd/yyyy}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="OA Complete Date" DataField="OACompleteDate" UniqueName="OACompleteDate" DataFormatString="{0:MM/dd/yyyy}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Customer Requested Due Date" DataField="CustomerRequestedDueDate" UniqueName="CustomerRequestedDueDate" DataFormatString="{0:MM/dd/yyyy}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Last Note Added" DataField="LastNoteAdded" HeaderStyle-Width="10%" ItemStyle-Width="10%" UniqueName="LastNoteAdded"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="EditRows" HeaderStyle-Width="2%" ItemStyle-Width="2%" AllowFiltering="false"> <ItemTemplate> <asp:imagebutton runat="server" id="EditPMTsk" commandname="EditRow" imageurl="Images/edit-icon.png" imagealign="Middle" tooltip="Edit Task" /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <ClientSettings AllowColumnsReorder="true"> <ClientEvents OnGridCreated="GridCreated" /> <Scrolling AllowScroll="true" UseStaticHeaders="true" /> <Resizing AllowColumnResize="true" EnableRealTimeResize="false" ResizeGridOnColumnResize="false" AllowRowResize="false" /> </ClientSettings> <ItemStyle HorizontalAlign="Center" /> </telerik:RadGrid></div>
http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=297156
<div> <asp:ScriptManager ID="ss" runat="server" /> <telerik:RadListBox runat="server" ID="RadListBox1" SelectionMode="Multiple" TabIndex="1" AccessKey="l" Height="200px" AllowDelete="true" AllowTransfer="true" TransferToID="RadListBox2" OnClientLoad="onSourceLoad"> <ButtonSettings ShowDelete="false" /> <Items> <telerik:RadListBoxItem Text="Amsterdam" /> <telerik:RadListBoxItem Text="Barcelona" /> <telerik:RadListBoxItem Text="Bonn" /> <telerik:RadListBoxItem Text="Boston" /> <telerik:RadListBoxItem Text="Brussels" /> <telerik:RadListBoxItem Text="Dallas" /> <telerik:RadListBoxItem Text="Denver" /> <telerik:RadListBoxItem Text="Dublin" /> <telerik:RadListBoxItem Text="Liverpool" /> <telerik:RadListBoxItem Text="London" /> <telerik:RadListBoxItem Text="Madrid" /> <telerik:RadListBoxItem Text="Miami" /> <telerik:RadListBoxItem Text="Moscow" /> <telerik:RadListBoxItem Text="New York" /> <telerik:RadListBoxItem Text="Oslo" /> <telerik:RadListBoxItem Text="Paris" /> <telerik:RadListBoxItem Text="San Francisco" /> <telerik:RadListBoxItem Text="Seattle" /> <telerik:RadListBoxItem Text="Sofia" /> <telerik:RadListBoxItem Text="St.Paul" /> </Items> </telerik:RadListBox> <telerik:RadListBox runat="server" ID="RadListBox2" SelectionMode="Multiple" TabIndex="2" AccessKey="t" Height="200px" OnClientLoad="onDestinationLoad" > </telerik:RadListBox> </div> <script type="text/javascript"> var source; function onKeyDown(listBox, e) { if (e.keyCode == 39) { var selectedItems = listBox.get_selectedItems(); $telerik.$.each(selectedItems, function() { source.transferToDestination(this); }); } else if (e.keyCode == 37) { var selectedItems = listBox.get_selectedItems(); $telerik.$.each(selectedItems, function() { source.transferFromDestination(this); }); } } function onSourceLoad(sender) { source = sender; $telerik.$(".rlbGroup", sender.get_element()) .bind("keydown", function(e) { onKeyDown(sender, e); }); } function onDestinationLoad(sender) { $telerik.$(".rlbGroup", sender.get_element()) .bind("keydown", function(e) { onKeyDown(sender, e); }); } </script>I am using a radeditor and I need to be able to add a hyperlink to other web pages created by the radeditor. The content of these pages are stored in a db and is accessed with the use of query strings, is there some way to have the hyperlink manager create these links or how can I build a custom dialog as part of the hyperlink manager that would pull up a listing of my database content?
I would like to add a method to strip out special characters from a filename when it is uploaded, but I am not sure where to put the code. With the regular upload control you can use the saveas dialoge, but I am not sure where to implement this code in the file explorer control. My code looks like this:
if (e.Command == "UploadFile") { RadFileExplorer explorer = sender as RadFileExplorer; if (explorer != null) { int ItemId = Convert.ToInt32(explorer.Attributes["ItemId"]); string[] aFolder = e.Path.Split('/'); foreach (UploadedFile file in explorer.Upload.UploadedFiles)