Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 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
130 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
106 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
64 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
51 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
2 answers
244 views
Hi Telerik, 

I have a page with 3 RadGrids. Each row contains information about an order and has a LinkButton.
Once you click on the LinkButton, some code behind gives parameters and opens a RadWindow from the RadWindowManager.

It might not be the perfect way to do it but I did need to access certain values with code behind.

The problem is that when I scroll down on the list, the RadWindow opens at the top of the page (at the initial scroll position) and since I am using RadAjaxManager, the page does not postback (which is what I want). 

So if I scroll too far, I can't see the RadWindow displayed. I need to have the RadWindow opened in the middle of the current position of the screen.

Thanks !
Mark
Top achievements
Rank 1
 answered on 19 Dec 2014
3 answers
60 views
Hi Team,

I have a Radial gauge in my page whenever I set the value of the pointer, it jumps to the value but what I want is pointer move smoothly to the value.
Does anyone know how to achieve this?

Thanks
Danail Vasilev
Telerik team
 answered on 19 Dec 2014
2 answers
455 views
I would like to set my FilterControlWidth on all columns so that it equals [Column Width] - [Filter Icon Width.  The goal is to fill up the whole space above the column using the textbox and the filter icon.

Presently I am using FilterControlWidth="80%", but it's inconsistent spacing left over.

All filters are textboxes except for one which is a radCombBox
Rick
Top achievements
Rank 1
 answered on 19 Dec 2014
1 answer
154 views
Is it possible to auto-generate columns in a DataForm? In my application, I don't know which fields to bind until runtime. I not only need to be able to auto-generate fields but also loop through these fields and specify which of the fields is editable. I'd hate to resort to a DetailsView control to do this.
Konstantin Dikov
Telerik team
 answered on 19 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?