Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
151 views
I have a radcombox which is configured with

OnClientSelectedIndexChanging

 

 

="AllowSelectionChange"

In the AllowSelectionChange() javascript method....

 

    text = eventArgs.get_item().get_text();

appears to get the newly selected value...

How can I get the previously selected value?

G.
Top achievements
Rank 1
 answered on 10 Apr 2012
0 answers
135 views
We have been using radGrid extensively in our application. We have found content of the viewstate size is around 5 MB for radGrid and size is not changed even we set ViewState =false. any other reason behind this ?  Please help us to reduce the viewstate size for the grid.

Thanks
Venkat
Venkatakrishna
Top achievements
Rank 1
 asked on 10 Apr 2012
2 answers
189 views
Hi!

Is there a way to show an icon or highlight these controls somehow when a filter is set on a paticular column? (See attached)

Thanks!
Michael O'Flaherty
Top achievements
Rank 2
 answered on 10 Apr 2012
1 answer
302 views
In javascript, $find returns a reference to a Telerik object's exposed client API (e.g., set_enabled, set_autoPostBack, etc.)

Right now, I use this script to get it by the suffix of the id:

var $findByBaseId = function (baseId) {
        return $find($('[id$=' + baseId + ']').attr('id'));
};

Works ok, but seems a little roundabout.  Is there a built in Telerik function that does this?  It seems like I'm scanning the DOM twice.

I'm avoiding the <%%> tags to allow the scripts to be moved to separate files.
Antonio
Top achievements
Rank 1
 answered on 10 Apr 2012
1 answer
100 views

Using the Telerik demo Scheduler / Resource Availability on http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx, I am trying to figure out how to detect the group in which an appointment is a member. This demo has 2 groups:

  • Meeting room 101
  • Meeting room 201

If I take the existing appointment labeled Security overview meeting and drag it from group 201 and drop it into group 101, how do I programmatically detect that this appointment is now in group 101? I would like to be able to detect this within the scheduler's AppointmentUpdate event, I am currently trying to use e.Appointment.Resources[0].Key to extract the new group value, but this always returns the old group value (201), instead of the new group value (101).

How do I accomplish this?

Thank you,
Steven

Peter
Telerik team
 answered on 10 Apr 2012
3 answers
105 views
Looking for a recommendation of the best way to accomplish this: I have a RadWindow that users can use to navigate between a few different pages within the RadWindow. They navigate by clicking ASP HyperLinks.

What I would like to be able to do is put a "back" button on each page that allows them to return to the previous page. I thought using ViewStates might be a solution, but I'm not sure how to implement it. 

I appreciate any feedback.
Marin Bratanov
Telerik team
 answered on 10 Apr 2012
5 answers
138 views
Is it possible to allow users to upload an entire folder using the built-in document manager?  I have a case where a user is responsible for uploading new video tutorials, and those tutorials have many "chapters", so each set of videos are approximately 15 files each per folder.  Ideally I'd love to allow the user to just dump the folder, and not each file by file.  Is this possible? 
Terri-Lynn
Top achievements
Rank 1
 answered on 10 Apr 2012
1 answer
102 views
Hi friends,


We are using RadEditor in our application.Our client wants add his signature from RadEditor(just like we add signature while sending mail).
Can any body help me, how can i do this.
Please provide me some sample code.

Thanks in Advance
Anwar
Rumen
Telerik team
 answered on 10 Apr 2012
1 answer
99 views
Hi
I using Telerik version 2011.3.1122.40 

Please run this Codes:

MasterPage.master:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!doctype html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <Telerik:RadScriptManager ID="scriptManager" runat="server" />
        <Telerik:RadAjaxManager ID="ajaxManager" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="ajax">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="ajax" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </Telerik:RadAjaxManager>
        <asp:Panel ID="ajax" runat="server">
            <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
        </asp:Panel>
    </form>
</body>
</html>

Default.aspx:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <telerik:RadCaptcha ID="captcha" Runat="server"
        CaptchaLinkButtonText="refresh"
        EnableRefreshImage="true">
    </telerik:RadCaptcha>
</asp:Content>

when I click on refresh link, RadCaptcha will be hidden!
Slav
Telerik team
 answered on 10 Apr 2012
8 answers
504 views
I have a question regarding how to find and get the value of asp.net controls that are located within a RadPageView using Javascript.  I have a form where I use the RadTabStrip in conjunction with the RadMultiPage.  Each tab and RadPageView contain a User control which contains several asp.net label controls that display various data. 

I need to access the values of several of these fields using Javascript.  To do so, I had a javascript routine that got a reference to the PageView on the currently selected tab as follows:

// This function returns a reference to the pageview of the currenlty selected tab.
function GetCurrPageView() {
    var rtabCarrLoc = $find("<%= rtabCarrierInfo.ClientID %>");
    var rselectedtab = rtabCarrLoc.get_selectedTab();
    if (rselectedtab) {
        var rpageview = rselectedtab.get_pageView();
        return rpageview;
    }
}

The plan was then to use that reference to find, for example, a label control and extract its value.  This proved difficult since the RadPageView does not seem to provide any methods to find controls contained within it.

I opened a support ticket with Telerik to solve this problem.  They provided a solution to extract the contents of a label by using a unique CSS class by which I could find the label and get the contents.  See the following for an example:

// Get and set the location name.
var rpageview = GetCurrPageView();
if (rpageview) {
    var lblLocName = $telerik.$(".cdhdr-carrlocationheader", rpageview._element).html();
    if (lblLocName) {
        var DULocName = document.getElementById("<%= lblDataUpdLocName.ClientID %>");
        DULocName.innerText = lblLocName;
    }
}

The ".cdhdr-carrlocationheader" is the custom css class assigned to the label control that I extracted the value for.  This works althought they never did explain exactly how.  I have no idea what the "$telerik.$" function is, the parameters it offers, or how it works.

Anyway, my problem now is that I would also like to be able to find some "HiddenFields" on the pageview and extract their values.  The above solution will not work for them since you cannot assign a CSS class to a Hiddenfield. 

Does anyone know how I could do this?  Any help would be greatly appreciated.
msigman
Top achievements
Rank 2
 answered on 10 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?