Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
512 views
Hi Team

I need to report an issue. I'm using Telerik.Web.UI.RadGrid control in my app. I have some special characters to be rendered in the grid (e.g. ', <, >, \, :, _ etc). When I'm saving these in DB I HTML Encode them. And when rendering back in UI, I HTML Decode them. I found that while HTML Encoding special characters, if there is this combination of characters &# in the encoded string (e.g. for ' [single quote] which becomes &#39;), there is a java script alert message with error "An unknown error occurred while processing the request on the server. The status code returned from the server was: 500". If I remove this &# in the string from back end then it works fine. 

I really need help on this as the special characters are really required in the strings and I cannot go in the entire database remove this &# string combination and thus make the data invalid. Below is more details from the metadata of the control I'm using in my app.

namespace Telerik.Web.UI
{
    [ClientScriptResource("Telerik.Web.UI.RadGrid", "Telerik.Web.UI.Grid.RadGridScripts.js")]
    [ControlValueProperty("SelectedValue")]
    [DefaultEvent("NeedDataSource")]
    [DefaultProperty("")]
    [Description("Telerik RadGrid")]
    [Designer("Telerik.Web.Design.RadGridDesigner, Telerik.Web.Design, Version=2012.3.1016.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4")]
    [EmbeddedSkin("Grid")]
    [EmbeddedSkin("Grid", "Default")]
    [TelerikToolboxCategory("Telerik AJAX Data Components")]
    [ToolboxBitmap(typeof(RadGrid), "Telerik.Web.UI.Grid.png")]
    [ToolboxData("<{0}:RadGrid runat=server></{0}:RadGrid>")]
    public class RadGrid : GridBaseDataList, INamingContainer, IPostBackDataHandler, IPostBackEventHandler, IRadFilterableContainer
    {
........
........
}
Konstantin Dikov
Telerik team
 answered on 20 May 2014
1 answer
162 views
Hi,

i have to develop a webpage for a restaurant. Is it possible to create a virtual menu with telerik controls?

Thanks a lot
Best Regards
Rene
Vessy
Telerik team
 answered on 20 May 2014
4 answers
541 views
Hi All,

I want to cancel the post back when calling "OnClientIndexChanged" event.
I tried to set AutoPostBack="false", but the page still posts back.
I tried to cann eventArgs.set_cancel(true) for "OnClientIndexChanging", but then the client selection is not shown.

How can I solve this problem?
I just don't want the page to posts back...

Thanks for your help..
THANGARAI
Top achievements
Rank 1
 answered on 20 May 2014
2 answers
191 views
Hi All
Why am i not getting answered?

is there something that i am missing?
I try to set the value of radnumeric textbox inside a grid cell templatecolumn
ı try this and it doesnt work.

why?
     function RowSelected(sender, eventArgs) {
            var grid = sender;
            var MasterTable = grid.get_masterTableView();
            var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
            row.findElement("Numeric1").set_value(15);
        }
THANGARAI
Top achievements
Rank 1
 answered on 20 May 2014
4 answers
174 views
Folks
using RadControls for ASP.NET AJAX Q3 2013 with VStudio 10. I am using below link as Prototype.

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultcs.aspx

My Radgrid has Filter enabled.  Below are my steps to reproduce the error:

1) Filtered the Grid with some condition; Grid has no Rows.
2) Clicked Add New Command Item link Button.
3) Now can't Cancel Insert operation from Form Template.  Edit Form Stays open.
4) But if Grid has some rows, Cancel Insert operation works perfectly.

Below is my Code. Any help will be appreciated.

Thanks

Gc_0620

_________

01.protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
02.   {
03.       if (true && e.Item.OwnerTableView.Name == "MainClient") //validated
04.       {
05.           switch (e.CommandName)
06.           {
07.               case "Cancel":
08.                    
09.                   if (HiddenField1.Value == "false")
10.                   {
11.                       e.Canceled = true;
12.                       Session["savedIndex"] = e.Item.ItemIndex;
13.                       RadWindowManager1.RadConfirm("Continue with Cancel? Warning, you will loose any unsaved work!!!",
14.                           "confirmCancelBackFnMain", 350, 150, null, "Cancel Confirm");
15.                   }
16.                    
17.                   break;
18.               case "CancelConfirmed":
19.                   foreach (GridEditableItem item in RadGrid1.MasterTableView.GetItems(GridItemType.EditFormItem))
20.                   {
21.                       if (item.IsInEditMode && item.ItemIndex == (int)Session["savedIndex"])
22.                       {
23.                           item.FireCommandEvent("Cancel", String.Empty);
24.                       }
25.                   }
26.                   HiddenField1.Value = "false";
27.                   break;
28.           }
29.       }
30.   }
31.        
32.   __________
33.    
34.   function confirmCancelBackFnMain(arg)
35.   {
36.       var grid = $find("<%= RadGrid1.ClientID %>");
37.       if (arg)
38.       {
39.           //alert(document.getElementById('<%=HiddenField1.ClientID%>').value);
40.           document.getElementById(
41.           '<%=HiddenField1.ClientID
42.           %>').value = "true";
43.           grid.get_masterTableView().fireCommand("CancelConfirmed", String.Empty);
44.       }
45.       else
46.       {
47.           document.getElementById(
48.           '<%=HiddenField1.ClientID
49.           %>').value = "false";
50.       }
51. 
52.       document.getElementById(
53.       '<%=HiddenField1.ClientID
54.       %>').value = "false";
55.   }

Princy
Top achievements
Rank 2
 answered on 20 May 2014
1 answer
193 views
Hi, I am writing the statement like,
 int value=Convert.ToInt32(objRadDropDowmTree.EmbadedTree.Nodes[1].Value);

But its showing an error "Input string was not correct"
 Please tell me, how to access any specific node value? 

Please also help me, how to assign tooltip in RadDropDowmTree Nodes .
Shinu
Top achievements
Rank 2
 answered on 20 May 2014
6 answers
1.4K+ views
Hi,

   how to create 1 or more radgrid dynamically in page load and grid needdatasource grid bind also databound use............

Advance & Thanks,
Ansari.
Princy
Top achievements
Rank 2
 answered on 20 May 2014
1 answer
178 views
Hi All,

I am using a RadGrid with "Batch" Edit mode. Any individual
change on a cell is working fine. My problem is when I made changes to a
column values from code behind (ex. Increasing a salary). Any changes
are not "marked" as changed, not saved when I press the "Save Changes"
values and after refreshing the grid I get the old ones. Any
suggestion?

Thanks!
Kostadin
Telerik team
 answered on 20 May 2014
4 answers
156 views
Do you have an example of deleting a node by keyboard button click?

Vsoni
Top achievements
Rank 1
 answered on 20 May 2014
4 answers
757 views
Hi,

i tried out your Rating-Example "Rating - Rate and Leave a Comment" which works great, but how do
i get the Rating Object in the "btnPostComment_Click" Event?

Thanks
Best Regards
Rene
Shinu
Top achievements
Rank 2
 answered on 20 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?