Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
170 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
284 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
89 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
99 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
121 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
95 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
93 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
468 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
1 answer
1.9K+ views
I have wired up an ItemDataBound handler for my radgrid.  Pretty simple standard fare (see code snippet below).  However, I've noticed while stepping through the debugger on this that when the column value that I'm retrieving is an empty string, I'm actually getting back "&nbsp;"... so my code never thinks it's an empty string...  I realize I could code something that looks for "&nbsp;" but that seems fragile.  

So I was wondering how I would access not the value from the radgrid column (which appears to be applying some formatting or whatever), but the actual, true blue underlying value from the data source. 

Any references on how to do so would be greatly appreciated.
 
protected void gvMain_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridDataItem)
       {
           GridDataItem gridRow = (GridDataItem)e.Item;
           bool hasEamil = (gridRow["Email"].Text.Length > 0);
       }
   }
Eyup
Telerik team
 answered on 10 Apr 2012
5 answers
567 views
I have a couple fields that are notes fields that i do not put into my radgrid, but when I export I need to go and get them asn export them as well.  Is there a way to export the radgrids needdatasource?

<CommandItemTemplate>
                                      <table width="100%">
                                          <tr>
                                              <td align="right"><asp:Button ID="btnExport" runat="server" CommandName="ExportToExcel" Text="Export Excel" /></td>
                                          </tr>
                                      </table>
                                  </CommandItemTemplate>

Kevin
Top achievements
Rank 1
 answered on 10 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?