Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 views
Hi all!

I only want compare data from data Original with new value input from control textarea. I have a problem about enter key. So method _get_newValue() generator Enterkey different with method _get_value()???
Please complain for me about problem!
Tks all!

data for _get_value() method:
""><script>alert('xss')</script>
↵<script>alert('xss')</script>"

data for _get_newValue() method:
""><script>alert('xss')</script>↵↵<script>alert('xss')</script>"


Maria Ilieva
Telerik team
 answered on 09 Oct 2014
1 answer
265 views
Hi

I need to help, I use the control  radwindow but I  set the property 'width' with unit of percentaje 100 %


Regards & greats
Marin Bratanov
Telerik team
 answered on 09 Oct 2014
1 answer
85 views
Hi

We have a problem with the today link not showing.

We are using a webbrowser controll called chromium to capture and run a page in Windows form. Chromium is using chrome18 engine to run.
I Spooned the page with a standalone webbrowser of chrome 18, And I get the same problem. Do you know of a way to hot fix this without upgrading Chrome version.

Attach a pic to show

oh by the way thanks for an awesome product!
Peter Filipov
Telerik team
 answered on 09 Oct 2014
1 answer
111 views
Hi, 

  I'm working with Telerik v.2011.2.915.35, and tried example from RadEditor Demo.
  But I can't show the toolbars and editor mode buttons of RadEditor with android/ios system, only the text area. With desktop, it displays as it should be.

  If I use newer v.2014.2.724.35. Everything works fine.

  My question is: 
      Is that v.2011.2.915.35 doesn't support for android/ios and is there any way to display RadEditor as it should be with v.2011.2.915.35 on different devices?

Thanks and Regards,  
Thuy
Top achievements
Rank 1
 answered on 09 Oct 2014
2 answers
194 views
I am defining a RadGrid in a user control with the following definition in the .ascx:

<telerik:RadGrid ID="grid1" OnNeedDataSource="grid1DS" PageSize="20" AllowPaging="True" AutoGenerateColumns="False"
    AllowSorting="True" CellSpacing="-1" GridLines="Both" Style="text-align: left;" OnSelectedIndexChanged="grid1_SelectedIndexChanged"
    AllowFilteringByColumn="True" EnableViewState="true" runat="server">
    <MasterTableView EnableColumnsViewState="true"></MasterTableView>
    <PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Left" />
    <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
        <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="true"
            ClipCellContentOnResize="false" EnableRealTimeResize="true" AllowResizeToFit="true" />
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
</telerik:RadGrid>

I am dynamically creating and adding each column with this:

Dim dscol As DataColumn
Dim col As Telerik.Web.UI.GridBoundColumn

...

col =
New GridBoundColumn()
col.DataField = dscol.ColumnName
col.UniqueName = dscol.ColumnName
col.HeaderText = dscol.ColumnName
col.Resizable = True
col.SortExpression = col.DataField
col.AllowFiltering = True
grid1.Columns.Add(col)

This creates a mostly working grid. The problem is that on the call to the grid1DS data source, a filter expression is returned with an empty expression for the DataField value (e.g. filtering on a name field for "Contains" John):

(it[""].ToString().Contains("John"))

Normally, it[""] would be it["DataField identifier"].  So apparently the DataField isn't being properly set in the browser, despite being properly defined in the code above (confirmed by breakpoints.) 

So - thoughts, solutions? 




Konstantin Dikov
Telerik team
 answered on 08 Oct 2014
3 answers
335 views
I have a RadGrid with Filters.  The user can browse to another page (details page) from the page with the RadGrid.  When the user returns I restore the filters to their state when the user browsed away.  This is done via Session data.

The search criteria is restored along with the filter values.  The data is read from the datbase and all is well except that the FILTERs were not honored.In other words, all records are displayed that meet the search criteria, but the filters are not applied.

I think I need to cause a filter event to fire, as if the user had clicked the filter ICON.  How do I cause this to happen?

Thanks for your help.


Konstantin Dikov
Telerik team
 answered on 08 Oct 2014
2 answers
116 views
Hi,
 Simple question - can you tell me if the Telerik ASP.Net Editor is available in SharePoint online? I've grown used to it in our on premise MOSS environment and love it, but we're moving to new technology and nothing is returning on an App Store search for 'Telerik'
Thanks,
Jason.
Jason Brownhill
Top achievements
Rank 1
 answered on 08 Oct 2014
5 answers
496 views
I have a RadGrid that I would like to change the size of the page and the current page number depending on the URL.

I can query the URL and retrieve the data that I would like, and attempt to apply it like so:

Dim pageSize As Integer = 10
Dim pageNum As Integer = 0
If Request.QueryString("PageSize") IsNot Nothing Then
    pageSize = Request.QueryString("PageSize")
    rgvListObservations.PageSize = pageSize
    rgvListObservations.Rebind()
End If
If Request.QueryString("PageNum") IsNot Nothing Then
    pageNum = Request.QueryString("PageNum")
    rgvListObservations.CurrentPageIndex = pageNum
    rgvListObservations.Rebind()
End If


I do this in the Page.PreRender. The CurrentPageIndex will save correctly, but unfortunately the PageSize does not change.

I have attempted to paste this code into the function I call to fill the grid as well as the NeedDataSource(of course removing the rebind call) to no avail.

I am just wondering why one would save but not the other? Also I would like to know if I am attempting to change the PageSize in the backend correctly.
Konstantin Dikov
Telerik team
 answered on 08 Oct 2014
8 answers
135 views
As far as I can tell, newer versions of WebAPI return ISO8601 dates instead of the traditional Microsoft format that was /Date(  )/.

The rendering script has the value of "g" being null when attempting to parse the date and the appointments never bind and the Scheduler breaks with the exception shown in the Locals list in my screenshot. I would hate to have to revert back to using the old format.

Any work around for this?
Boyan Dimitrov
Telerik team
 answered on 08 Oct 2014
3 answers
139 views
I am having a similar problem, and I generated a short example to illustrate the problem. We are using a timer, but it happens to be a bit longer in cycle than the one supplied here. It just takes longer to run out of memory if the timer is longer. Note that the more items that are added to the chart, the larger the memory leak.

I also took the liberty of looking through the Telerik source code and discovered that RadChart contains 2 Chart objects, one directly, and one indirectly through MapAreaBuilder. RadChart does not implement Dispose, so these items hang around much longer than they should. MapAreaBuilder also does not implement dispose, and it should as well. The basic idea is that if a class includes an object that implements IDisposable, the containing class must also implement IDisposable and dispose of the Disposable objects it contains. Yes, RadChart does inherit from Control that implements IDispose, but Control does not know to dispose of the 2 Charts that are contained in the RadChart object. In other words, RadChart needs to override Dispose(bool) and dispose of the Chart and the MapAreaBuilder if the parameter passed in is true. MapAreaBuilder needs to derive from IDisposable, implement Dispose(), Dispose(bool) and ~MapAreaBuilder().

Default.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
namespace RadChartLeakTest
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Timer1Tick(object sender, EventArgs e)
{
}
}
}

Default.aspx
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="RadChartLeakTest._Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadScriptBlock ID="Script1" runat="server">
<script type="text/javascript">
</script>
</telerik:RadScriptBlock>
<asp:Panel ID="PanelUpdateThis" runat="server">
<telerik:RadChart runat="server" ID="Chart1" >
<Appearance Border-Visible="false" FillStyle-FillType="Solid" FillStyle-MainColor="#f2f2f2">
</Appearance>
<ChartTitle Visible="false">
</ChartTitle>
<Legend Appearance-Border-Visible="false" Appearance-FillStyle-FillType="Solid" Appearance-FillStyle-MainColor="#f2f2f2">
</Legend>
<PlotArea Appearance-Border-Color="#f2f2f2" Appearance-FillStyle-MainColor="#f2f2f2"
Appearance-FillStyle-FillType="Solid" EmptySeriesMessage-TextBlock-Text="No Sessions Last 24 Hours"
EmptySeriesMessage-TextBlock-Appearance-TextProperties-Color="Black">
<XAxis AutoScale="false" IsZeroBased="true">
</XAxis>
</PlotArea>
<Series>
</Series>
</telerik:RadChart>
<asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1Tick">
</asp:Timer>
</asp:Panel>
</asp:Content>


Danail Vasilev
Telerik team
 answered on 08 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?