Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
RadGrid Context menu not working for first 6 row, Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: Handler was not added through


Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.
Eyup
Telerik team
 answered on 22 Dec 2014
1 answer
99 views
Hello I am using Telerik.Web.UI  version 2014.1.403.40.
Buy i can not use the RadMap in my page.
getting 'Radmap' is not a Know element

what version do i have to use Radmap?

Thank you
Niko
Telerik team
 answered on 22 Dec 2014
1 answer
55 views
Hi,
 
 I am using RAD Grid for displaying and inserting records.

Each row I have one textbox and add button .Using button user can add N number of records.

Let us suppose that user is inserted 4 records(rows).In that 1st and 4 th row data is there 2nd and 3rd empty .If user submit that it shoud throw validation error message.
Let us suppose that in 4 records in that 1nd and 2nd data is there and 3rd and fourth empty ,but in this case it should allow to submit data.

so if there is any empty rows in between it should not allow to submit.But if there are empty rows in last(more than one) user can submit.

Please help me like how i can build the logic

Thanks
siddartha
Eyup
Telerik team
 answered on 22 Dec 2014
1 answer
178 views
Hello Expert,

I am getting an issue in disable auto correction of html element. 
I have a RadEditor where I want to get and set any none valid/formatted html element as like "<noclick> Somethings".
I tried to do this, my code taking none valid/formatted html element as like "<div>Hello World" and giving this same value in server side and I can save this value in database. Then I retrieve this html element from database and bid this html element to RadEditor.Content. But when I browse this page; I can see this value are showing as  <div>Hello World</div> in RadEditor . That's mean its adding end tag to correct html format. But I don't need to add this end tag in my html elements.

Here is my code:

<telerik:RadEditor ID="txtTextScript" runat="server" Font-Size="Larger" EditModes="Html" ContentAreaMode="Div" ContentFilters="None" Height="100" Width="349px">
     <Tools>
              <telerik:EditorToolGroup >
              </telerik:EditorToolGroup>
      </Tools>
</telerik:RadEditor> 

protected void Page_Load(object sender, EventArgs e){
        txtTextScript.DisableFilter(Telerik.Web.UI.EditorFilters.ConvertToXhtml);
}
 
I tried by following this link but still not working
http://www.telerik.com/forums/how-to-disable-auto-correction-of-html-elements?actionMode=replyThread


I am waiting for a quick response from someone.

Thanks
Aminul

 








Niko
Telerik team
 answered on 22 Dec 2014
1 answer
152 views
Hi guys, I've a problem with an ajax request and a user control
I've this aspx page
01.<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
02.<%@ Register Src="~/res/controls/gen/combo_missions.ascx" TagName="combo_missions" TagPrefix="ias" %>
03.<%@ Register Assembly="Integra" Namespace="Integra" TagPrefix="cc1" %>
04. 
05.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
07.<head id="Head1" runat="server">
08.    </head>
09.    <body>
10. 
11. 
12.<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
13.    <script type="text/javascript">
14.        function responseEnd(sender, eventArgs) {
15.            alert("response");
16.            }
17.    </script>
18.</telerik:RadCodeBlock>
19.<form id="form1" runat="server">
20.    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
21.        <Scripts>
22.            <asp:ScriptReference Path="~/res/scripts/ias.js" />
23.        </Scripts>
24.    </telerik:RadScriptManager>
25.    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all"
26.        ControlsToSkip="Scrollbars"></telerik:RadFormDecorator>
27.    <telerik:RadAjaxManager ID="RadAjaxManager" runat="server"
28.        DefaultLoadingPanelID="RadAjaxLoadingPanel1">
29.        <AjaxSettings>
30.            <telerik:AjaxSetting AjaxControlID="RadAjaxManager">
31.                <UpdatedControls>
32.                    <telerik:AjaxUpdatedControl ControlID="ddlPartNumber" />
33.                    <telerik:AjaxUpdatedControl ControlID="ddlMission" />
34.                </UpdatedControls>
35.            </telerik:AjaxSetting>
36.            <telerik:AjaxSetting AjaxControlID="ddlPartNumber">
37.                <UpdatedControls>
38.                    <telerik:AjaxUpdatedControl ControlID="ddlPartNumber" />
39.                </UpdatedControls>
40.            </telerik:AjaxSetting>
41.            <telerik:AjaxSetting AjaxControlID="ddlMission">
42.                <UpdatedControls>
43.                </UpdatedControls>
44.            </telerik:AjaxSetting>
45.        </AjaxSettings>
46.        <ClientEvents OnResponseEnd="responseEnd" />
47.    </telerik:RadAjaxManager>
48.    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" EnableEmbeddedSkins="false" Skin="custom" />
49. 
50.    <ias:combo_missions ID="ddlMission" Required="true" ValidationGroup="vgForm" runat="server"
51.        AutoPostBack="true" IdAircraft="6"></ias:combo_missions>
52.    <telerik:RadButton runat="server" ID="ddlPartNumber" OnClick="ddlPartNumber_Click"></telerik:RadButton>
53.     
54.    <telerik:RadWindowManager ID="rwm" RegisterWithScriptManager="true" VisibleOnPageLoad="true"
55.        KeepInScreenBounds="true" VisibleStatusbar="false" Modal="true" Behaviors="Close,Move, Resize"
56.        runat="server" EnableShadow="true">
57.    </telerik:RadWindowManager>
58.</form>
59.</body>
60.</html>

With this cs
01.using System;
02.using System.Collections.Generic;
03.using System.Linq;
04.using System.Web;
05.using System.Web.UI;
06.using System.Web.UI.WebControls;
07. 
08.public partial class Default2 : System.Web.UI.Page
09.{
10.    protected void Page_Load(object sender, EventArgs e)
11.    {
12. 
13.    }
14. 
15.    protected void ddlPartNumber_Click(object sender, EventArgs e)
16.    {
17. 
18.    }
19.}

Now I would like to catch the onResponseEnd ajax request event, but if i click on the button the event occur, instead if I use the user control "combo_mission" the request start but the event is not raised

There is a reason?


P.S.: Sorry for my very poor english
Angel Petrov
Telerik team
 answered on 22 Dec 2014
2 answers
140 views
Hello,

I am uploading files using radfileexplorer, images are uploaded in folder, but all images are not visible in fileexplorer even they are uploaded.

any suggestions?

Vessy
Telerik team
 answered on 22 Dec 2014
6 answers
110 views
Hey Telerik,

this has probably been answered before but none of the fixes I found seemed to work.

Basically I have a 3 grids in one page and they have quite a bit of data. When I sort/filter a certain column or update a row, 
the page does a postback and goes all the way to the top.

I tried MaintainScrollPositionOnPostback in the aspx page, I tried to set it in the page load and also in the web.config but that didn't work.
I also tried using javascript by having a 'onscroll' event. I tried that on document, window and the wrapping div and the event never got triggered.

The event gets triggered with onmousewheel though, but that wont work with the scrollbar/touchscreen, which I also need.

Is there a way to do a local postback or maybe change something in the grids to prevent going back to the top?

Thanks!
Eyup
Telerik team
 answered on 22 Dec 2014
1 answer
89 views
Hi,
I populated my treeview like this
<telerik:RadClientDataSource runat="server" ID="TreeViewDataSource">
                          <DataSource>                              
                              <WebServiceDataSourceSettings BaseUrl="PivotAndChartsReportWebService.asmx/">
                                  <Select Url="GetTreeViewList" DataType="JSON" RequestType="Post" ContentType="application/json; charset=utf-8" />
                              </WebServiceDataSourceSettings>
                          </DataSource>
                          <ClientEvents />
                          <Schema DataName="d">
                          </Schema>
                      </telerik:RadClientDataSource>

<telerik:RadTreeView ID="RadTreeView1" runat="server" ClientIDMode="AutoID" OnClientTreePopulated="ExpandNodes"  
  
                        CheckBoxes="True" CheckChildNodes="True" ResolvedRenderMode="Classic" TriStateCheckBoxes="False"
                           ClientDataSourceID="TreeViewDataSource"
                           DataFieldID="Id" DataFieldParentID="ParentId" DataTextField="Text" DataValueField="Id" PersistLoadOnDemandNodes="false" Height="300px" Width="100%">

How can I find the checked nodes on server side?

Thanks
Plamen
Telerik team
 answered on 22 Dec 2014
1 answer
69 views
I want to filter time duration column in my Grid, which is displayed using toHHMMSS().

The default filter requires input in seconds, so the user have to type 4810  instead of  01:20:10 to represent   1 hour 20 min and 10 secs.

How can I change it to be user friendly?

Thanks.
Konstantin Dikov
Telerik team
 answered on 22 Dec 2014
0 answers
54 views
Hello,I want to add an item to a Radcombox by Javascript.
Here is my code

        function get_data(combobox) {

            var hdcatvalue = document.getElementById("hdcatvalue");
            var combo = $find(combobox);
            combo.trackChanges();
            var comboItem = new Telerik.Web.UI.RadComboBoxItem();

            var request = new XMLHttpRequest();  // Create new request
            request.open("GET", "getvalue.aspx", false);     // Pass false for synchronous
            request.send(null);
            var textval = request.responseText; // '<%=Session["catvalue"] %>';
            var mySplitResult = textval.split("|");
            var gText = mySplitResult[0];
            textval = mySplitResult[1];

            if (hdcatvalue.value != gText && gText != "") {
                comboItem.set_text(gText);
                comboItem.set_value(textval);               
                combo.get_items().add(comboItem);
                combo.commitChanges();
            }
           hdcatvalue.value = gText;
   }
I call the prevous function through OnClientFocus client event

When I try to open the dropdownlist nothing populate (not opened ), but  when I remove:
* combo.trackChanges();
* combo.get_items().add(comboItem);
* combo.commitChanges();

The combobox works fine. Please advice.

Thank you

     







Ahmed
Top achievements
Rank 1
 asked on 20 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?