Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
204 views

Hi,

I have a simple RadTextBox and button as follows:

<telerik:RadTextBox ID="txtForename" runat="server" EmptyMessage="<first name>"></telerik:RadTextBox> 
<asp:button ID="btnGo" runat="server" text="Go" /> 

The problem is that .Net framework request validation is invoked on the value of EmptyMessage, as when I click the button I get:

Server Error in '/' Application.  
--------------------------------------------------------------------------------  
 
A potentially dangerous Request.Form value was detected from the client (Energy1_txtForename_text="<first name>").  

This is happening because of the <> in the EmptyMessage, but I thought no actual value would be stored or passed with the input?  How can I work around this without turning off request validation, but still retain my nice EmptyMessage?

Thanks.

Craig
Craig Wallace
Top achievements
Rank 1
 answered on 08 Jun 2010
1 answer
238 views
How to refresh a district that shows the last update from DB  in web page every 30 seconds?
thanks , everyone.
Veli
Telerik team
 answered on 08 Jun 2010
1 answer
215 views
Hello,
I have a WCF service that returns json data. I want to keep the web service generic enough to be called by other applications.

However, on my website, when i call this service and bind to combo box, it fails. The combo box expects the return json to be RadComboBoxData. Is there a reason for this binding. It kind of defeats the purpose of web service.

Can anyone explain if there is a more generic way of binding combo box to any json?
Kalina
Telerik team
 answered on 08 Jun 2010
1 answer
115 views
Hi telerik,

 I am using telerik Version 2009. Q3.
I have issue related to the skins. before this also i posted some issues related to the skin. even though i got replies from you team, my issue was not solved and i found other solution for that.
   now the strange thing is happening to me is , in one of my page i added RadEditor control and from that page all the Rad windows are coming as blurred. ( i attached the pic. pls check).
   the strange thing that, as per my investigation , i found there is a grid in that page and when the grid contains more data ( more than 10 or 15 rows), the skin changes. if very less data, then there is no problem. 
     its very dangorous, coz we the skin of control is changing according to the DATA which user ented. 
    the product is tested and released to the client and from there we are getting some issue like this is very hectic
    
if you can find any solution for this skinn issue, please let me know.  i have to remove the rad controls from application. that is the only solution in front of me now.

when ever we include editor or tree , controls skin will get effected. mainly windows , combo box
Svetlina Anati
Telerik team
 answered on 08 Jun 2010
5 answers
215 views

Attached error is coming while i am trying to upload a image via image manager. This is only happening when image name contains special characters.

The error message is not very user friendly. Is ther something i am doing wrong or its a issue with RAd Editor.

Please let me know if somebody have experienced the same.

Rumen
Telerik team
 answered on 08 Jun 2010
4 answers
379 views
Hi,

In my current project, I have a RadGrid having 2 CheckBoxes similar to the following:


The code is given as follows:

ASPX
<body> 
    <form id="form1" runat="server"
    <div> 
        <telerik:RadScriptManager ID="radScriptManager" runat="server" /> 
        <telerik:RadGrid ID="radGrid" AutoGenerateColumns="false" AllowMultiRowEdit="true" AllowPaging="true" AllowSorting="true" PageSize="10" OnNeedDataSource="radGrid_NeedDataSource" OnPreRender="radGrid_PreRender" runat="server"
            <ClientSettings> 
                <Scrolling UseStaticHeaders="true" /> 
            </ClientSettings> 
            <PagerStyle Mode="NumericPages" /> 
            <MasterTableView DataKeyNames="Name" EditMode="InPlace" TableLayout="Fixed"
                <Columns> 
                    <telerik:GridBoundColumn DataField="Name" DataType="System.String" HeaderText="Name" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowSorting="true" ReadOnly="true" UniqueName="Name" /> 
                    <telerik:GridCheckBoxColumn DataField="Select1" DataType="System.Boolean" HeaderText="Select1" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowSorting="false" ReadOnly="false" UniqueName="Select1" /> 
                    <telerik:GridCheckBoxColumn DataField="Select2" DataType="System.Boolean" HeaderText="Select2" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowSorting="false" ReadOnly="false" UniqueName="Select2" /> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid>     
    </div> 
    </form> 
</body> 

C#
    public partial class RadGridWithCheckBoxes : System.Web.UI.Page 
    { 
        private List<Data> _data; 
 
        protected void Page_Load(object sender, EventArgs e) 
        { 
 
            if (!IsPostBack) 
            { 
                this._data = Data.Load(); 
                Session["DATA"] = this._data; 
            } 
            else 
            { 
                this._data = (List<Data>)Session["DATA"]; 
            } 
        } 
 
        protected void radGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
        { 
            this.radGrid.DataSource = this._data; 
        } 
 
        protected void radGrid_PreRender(object sender, System.EventArgs e) 
        { 
            foreach (GridDataItem item in this.radGrid.Items) 
            { 
                item.Edit = true
            } 
            this.radGrid.Rebind(); 
        } 
    } 
 
    public class Data 
    { 
        public string Name { getset; } 
        public bool Select1 { getset; } 
        public bool Select2 { getset; } 
 
        public Data(string name, bool select1, bool select2) 
        { 
            Name = name; 
            Select1 = select1; 
            Select2 = select2; 
        } 
 
        public static List<Data> Load() 
        { 
            List<Data> data = new List<Data>(); 
            for (int i = 0; i < 25; i++) 
            { 
                data.Add(new Data(String.Format("Data{0}", i), truefalse)); 
            } 
            return data; 
        } 
    } 

As soon as a checkbox in the grid is checked or unchecked, I would like to save the value back into the data object.

Therefore, the sorting and paging will always display the values correctly.

Can you please show me how to do this?

Regards,
Herman Gouw
Veli
Telerik team
 answered on 08 Jun 2010
1 answer
93 views
One of our clients has an issue with image and document management in the editor, I have attached a screenshot which demonstrates the issue. This happens in both IE8, Firefox and Chrome for them. I have the exact same version of IE8 however, and it works fine on my end. Firefox and Chrome also work for me

Does anyone know what may cause this issue? Could it be a port or security setting?

Best,

Evan
Rumen
Telerik team
 answered on 08 Jun 2010
1 answer
107 views
Hi,
    I find that if I create page with RadControl, the page size will be very larger, even though a few controls on it, the size will be reach to 1M or more.

    Why??????????
Sebastian
Telerik team
 answered on 08 Jun 2010
1 answer
171 views
Hello,
I have a situation where I need to format decimal numbers in a grid to Feet and Inches.  ie: 2.5 = 2' 6" I have an extension written to the decimal type that takes care of this, and it works fine.  However, now we are getting into wanting to sort, and sum, etc.. I implemented custom aggregates that work fine, but the code is getting more and more convoluted.  I am taking a step back, and it seems that if I could just implement a custom IFormatProvider and use the formatting within the grid control DataFormatString that all my problems would go away.  I was thinking something like DataFormatString="fi{0}" and within my format provider, I could check that it starts with "fi" and format it the correct way. 

Is this even possible, or am I barking up the wrong tree?

Thanks
Lance
Yavor
Telerik team
 answered on 08 Jun 2010
1 answer
80 views
Is there a Telerik skin that matches any Sharepoint 2010 skins/themes? And/Or is there a way that I can dynamically change the Telerik control skin to match the current Sharepoint skin?
Vasil Yordanov
Telerik team
 answered on 08 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?