<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="OnBeforeUnloadRadGridIssue._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>OnBeforeUnload RadGrid Issue</title> <script type="text/javascript"> var newSourceFilesAdded; window.onbeforeunload = function (event) { if (newSourceFilesAdded) { return 'Are you sure?'; } } </script> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelRenderMode="Inline" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <div> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"> </telerik:RadAjaxLoadingPanel> </div> <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" GridLines="None"> <MasterTableView ClientDataKeyNames="DocumentId, FileName" Width="100%" CommandItemDisplay="Top"> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="FileName" HeaderText="Filename" SortExpression="FileName" UniqueName="FileName" ReadOnly="true"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="WordCount" HeaderText="Word Count" SortExpression="WordCount" UniqueName="WordCount" ItemStyle-Width="50px"> <ItemStyle Width="50px"></ItemStyle> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PageCount" HeaderText="Page Count" SortExpression="PageCount" UniqueName="PageCount" ItemStyle-Width="50px"> <ItemStyle Width="50px"></ItemStyle> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CharacterCount" DataType="System.Int32" FilterControlAltText="Filter CharacterCount column" HeaderText="Character Count" UniqueName="CharacterCount"> </telerik:GridBoundColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="Delete"> </telerik:GridButtonColumn> </Columns> <EditFormSettings> <EditColumn ButtonType="ImageButton"> </EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu> </telerik:RadGrid> </form> </body> </html> Imports Telerik.Web.UI Public Class _Default Inherits System.Web.UI.Page Public Property SourceFiles As List(Of SourceFile) Get Return Session("SourceFiles") End Get Set(value As List(Of SourceFile)) Session("SourceFiles") = value End Set End Property Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Dim count As Byte = 0 Dim rnd As New Random Dim sfs As New List(Of SourceFile) While count < 10 Dim id As String = Guid.NewGuid.ToString sfs.Add(New SourceFile With {.DocumentId = id, .FileName = id, .CharacterCount = rnd.Next(0, Integer.MaxValue), .PageCount = rnd.Next(0, Integer.MaxValue), .WordCount = rnd.Next(0, Integer.MaxValue), .IsNew = True}) count = count + 1 End While SourceFiles = sfs RadGrid1.DataSource = SourceFiles RadGrid1.DataBind() Else Dim context As System.Web.HttpContext = System.Web.HttpContext.Current If context IsNot Nothing Then Dim page As System.Web.UI.Page = CType(context.Handler, System.Web.UI.Page) Telerik.Web.UI.RadAjaxManager.GetCurrent(page).ResponseScripts.Add(" newSourceFilesAdded = " & If(SourceFiles.Any, "true; ", "false; ")) End If End If End Sub Private Sub RadGrid1_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource RadGrid1.DataSource = SourceFiles End Sub End Class Public Class SourceFile Public Property DocumentId As String Public Property FileName As String Public Property WordCount As Integer Public Property PageCount As Integer Public Property CharacterCount As Integer Public Property IsNew As Boolean End Class<ClientEvents OnCommand="RaiseCommand" />function RaiseCommand(sender, eventArgs) { //By adding this, it prevents onbeforeunload from firing as a redirect, //When Add New Record is clicked insead of + button. }Hi all,
I want to combine a chart image with two tabs above it (simple div tags) but there is always some space between my tab divs and the chart image. I have set the following properties for the chart:
radChart1.Appearance.Border.Visible = false;
radChart1.PlotArea.Appearance.Border.Visible = false;
radChart1.PlotArea.Appearance.Dimensions.Margins = new ChartMargins(0, 0, 0, 0);
radChart1.Chart.Appearance.Border.Visible = false; //I guess this is the same as radChart1.Appearance etc.
When I save the chart image and view it in Photoshop there is clearly a transparent area around the image containing a slight shadow. This causes the space between my tabs and the chart. How can I remove that? The skin I use for the chart is 'DeepBlue'.
Oh, and I have seen the project 197844_webapplication9.zip but that also creates a small transparent area around the chart.
regards,
Peter
Hi,
I am trying to change the colors of RadRating used inside a Catalook module on my DNN site.
I'm new to this & have uncovered the Visual Style Builder which helps a little but I also need to change the stars that aren't selected.
When I look at the page with firebug the background image URL is "/webresource.axd?d= then a massive series of numbers & letters
I can see that the control is using the sitefinity skin but I can't find this skin anywhere
I did do a search for sprite.png & found 1 instance but it had no images of stars on it
I also searched for skin.css files but couldn't find any related.
I've reviewed how to create a custom file from copying an existing one but can't find an existing 1 to copy.
My folder structure does have a series of radcontrols but not one for rating.
Can I manually create a skin & point to this in the ascx file where the code currently says
<telerik:RadRating ID="rrlistAverageRating" runat="server" ItemCount="5" ReadOnly="true" Skin="Sitefinity">
If so can I see an example, please.
Can I just modify the sprite.png file?
An example of my site is currently http://frame.utiliseit.com.au/Products/BagsandLuggage.aspx
Thanks in advance