Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
172 views

I am using the Combo Box (latest version of ASP.NET AJAX components) and catching the control when the user selects a new item in the list.  I need the Value the user selected, NOT the Text, but the new Text appears to be the only I can capture.  When the user selects a new item, my code fires properly and I capture e.text, e.oldtext, e.value, and e.oldvalue.  When I do this, the e.text and e.oldtext accurately reflect the results, but the e.value and e.oldvalue are identical -- they are both the OLD value. 

I have attached a screen capture that shows the results, plus it also shows the contents of the Text/Value pairs that the combo box was loaded with.

The code for the .aspx file is:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LanguageSelector.ascx.cs" Inherits="HomesOnlineNetwork100.UserControls.LanguageSelector" %>
  
<telerik:RadComboBox ID="LanguageSelectorComboBox" runat="server" AutoPostBack="true"
    onselectedindexchanged="LanguageSelectorComboBox_SelectedIndexChanged" ></telerik:RadComboBox>
  
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="e.Text:"></asp:Label>   <asp:Label ID="etext" runat="server" Text="UserLanguageKey"></asp:Label>
<br />
<asp:Label ID="Label2" runat="server" Text="e.OldText:"></asp:Label>   <asp:Label ID="eoldtext" runat="server" Text="UserLanguageKey"></asp:Label>
<br />
<asp:Label ID="Label3" runat="server" Text="e.Value:"></asp:Label>   <asp:Label ID="evalue" runat="server" Text="UserLanguageKey"></asp:Label>
<br />
<asp:Label ID="Label4" runat="server" Text="e.OldValue:"></asp:Label>   <asp:Label ID="eoldvalue" runat="server" Text="UserLanguageKey"></asp:Label>
<br />
<br />
<br />
<asp:Label ID="Label5" runat="server" Text="Loaded Text/Values:"></asp:Label>
<br />
<asp:Label ID="Label6" runat="server" Text=""></asp:Label>

The applicable code for the SelectedIndexChanged is:

protected void LanguageSelectorComboBox_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    Session["a"] = e.Value;
    Session["b"] = e.OldValue;
    Session["c"] = e.Text;
    Session["d"] = e.OldText;

The applicable code for the Page_Load event is:

protected void Page_Load(object sender, EventArgs e)
{
        this.evalue.Text = Convert.ToString(Session["a"]);
        this.eoldvalue.Text = Convert.ToString(Session["b"]);
        this.etext.Text = Convert.ToString(Session["c"]);
        this.eoldtext.Text = Convert.ToString(Session["d"]);
}

Can anyone please tell me why this is happening?  I need the new VALUE that the user selected because that is the key to the related database record.  Why doesn't the new VALUE come through the event?

My thanks in advance!

Lynn

Lee
Top achievements
Rank 1
 answered on 11 Jan 2012
2 answers
99 views
Hello,

I experienced all kinds of javascript errors after configuring 2 RadEditors on an Aspx page where in the 2nd one the ToolProviderID was set (to the first) and also the ToolbarMode property was set.

First Error (more errors after that, but related to this) in

File:  RadRibbonBarScripts.js
Line: this._groupContainer.css("visibility","hidden");
Error: Microsoft JScript runtime error: Object doesn't support property or method 'css'

Aspx error causing markup:
<telerik:RadEditor ID="RadEditor2" runat="server" ToolbarMode="RibbonBar" ToolsFile="Tools.xml"
    Width="98%" Height="300" OnClientLoad="ResizeEditor" Language="nl-NL" AutoResizeHeight="False"
    OnClientModeChange="editorModeChanged" LocalizationPath="~/Resources/" ExternalDialogsPath="~/Resources/EditorDialogs/">
    <FontNames>
        <telerik:EditorFont runat="server" Value="Verdana" />
    </FontNames>
    <SpellCheckSettings AllowAddCustom="True" DictionaryLanguage="nl-NL"></SpellCheckSettings>
    <MediaManager UploadPaths="~/Media/" ViewPaths="~/Media/" DeletePaths="~/Media/"
        MaxUploadFileSize="10240000"></MediaManager>
    <ImageManager UploadPaths="~/Media/" ViewPaths="~/Media/" DeletePaths="~/Media/"
        EnableImageEditor="False" MaxUploadFileSize="10240000" EnableThumbnailLinking="True">
    </ImageManager>
    <DocumentManager ViewPaths="~/Documents/" UploadPaths="~/Documents/" DeletePaths="~/Documents/" />
</telerik:RadEditor>
 
<telerik:RadEditor ID="RadEditor1" runat="server" ToolbarMode="RibbonBar" ToolProviderID="RadEditor2"
    Width="98%" Height="500" OnClientLoad="ResizeEditor" Language="nl-NL" AutoResizeHeight="False"
    OnClientModeChange="editorModeChanged" LocalizationPath="~/Resources/" ExternalDialogsPath="~/Resources/EditorDialogs/">
    <FontNames>
        <telerik:EditorFont runat="server" Value="Verdana" />
    </FontNames>
    <SpellCheckSettings AllowAddCustom="True" DictionaryLanguage="nl-NL"></SpellCheckSettings>
    <MediaManager UploadPaths="~/Media/" ViewPaths="~/Media/" DeletePaths="~/Media/"
        MaxUploadFileSize="10240000"></MediaManager>
    <ImageManager UploadPaths="~/Media/" ViewPaths="~/Media/" DeletePaths="~/Media/"
        EnableImageEditor="False" MaxUploadFileSize="10240000" EnableThumbnailLinking="True">
    </ImageManager>
    <DocumentManager ViewPaths="~/Documents/" UploadPaths="~/Documents/" DeletePaths="~/Documents/" />
</telerik:RadEditor>

After you remove ToolBarMode="RibbonBar" from the second RadEditor, everything works again.
With regards,

Edit: Using 2011.3.1305.40

Yeroon
Dobromir
Telerik team
 answered on 11 Jan 2012
2 answers
163 views
Hello,
I am using radContextMenu on right ckick on a RadTreeNode.

The context menu closes when you click elsewhere on the screen as you would expect, except when you click on an iframe - then the contect menu stays in place.

I have found some code that will detect a click on the iframe:
http://stackoverflow.com/questions/2381336/detect-click-into-iframe-using-javascript

Could I ask then I how I would obtain a reference / test if the context menu is visible from javascript and then close it when a user clicks on the Iframe?

Many thanks
Richard


Kate
Telerik team
 answered on 11 Jan 2012
2 answers
70 views
We are using ASP.NET AJAX 2010 and have a page that has a RadGrid with fixed headers and a RadSlider that is being used to filter records in the grid.  It works great in IE9, firefox, chrome, safari.  But in IE8 and below it takes 30 seconds to render the page.  We have narrowed the problem down to the RadSlider, and even further we have narrowed it down to browser- mode/document-mode.  If we don't set a X-UA-Compatible meta tag, or if we use IE=8 or IE=edge, then the delay occurs.

If we use IE=7 it loads quickly, but when we use that the radgrid is screwed up because the header columns don't match the width of the body columns.

Do you have any recommendations on getting these to work together?
Slav
Telerik team
 answered on 11 Jan 2012
6 answers
484 views
I have 2 Rad notification in my project. One i'll show on success and i set it to auto close in 5 seconds. The other one i want it to show the error message and only close if the client did it manually, like this:

ErrorNotification.Text = msg;
ErrorNotification.Title = "Error";
ErrorNotification.ContentIcon = "warning";
ErrorNotificaton.ShowCloseButton = true;
ErrorNotification.Show();

but when i test this, the notification appears for about 3/4 seconds then closes itself. I then noticed that if the mouse is over the notification, it doesn't disappear...

Thanks in advance!
Miguel
Top achievements
Rank 1
 answered on 11 Jan 2012
2 answers
159 views
Hello All,
     I have RadTreeList with Checkboxes, i wanted handle AllowRecursiveSelection functionality at the client side. But one condition there Please find Image for that "radtreelistcheckissue.png".


Thanks In advance
Abhishek K
Abhishek
Top achievements
Rank 2
 answered on 11 Jan 2012
3 answers
51 views
Hello,
I have recently just upgraded my project to the latest version of the telerik asp.net controls and am running into a problem with the page buttons on the grids.  The buttons are not visible.  They are still there and will function, but they don't show up.  If I click where they are, I see the outline from the hyperlink and the functions fire.  I am seeing this behavior on my Android phone running from desktop in IE, Safari, Firefox everything is fine. 
Any  help would be appreciated.

Thanks,
Bob
Marin
Telerik team
 answered on 11 Jan 2012
1 answer
97 views
I have a strange issue with working with the wizard to create some charts. Changing tab on the wizard seem to reset the chart completely and I need to repopulate the series. 
If I create a series I want and click OK or Apply and debug the solution I see the chart I wanted but then when I stop and restart it is reset. What causes this behaviour?

Thanks!
Ves
Telerik team
 answered on 11 Jan 2012
1 answer
126 views
Hello,

I am using telerik rad scheduler and RadSchedulerRecurrenceEditor. While creating/updating a recurring appointment with a recurrence type as 'Daily'. It is blocking an appointment as 'All day' even if we set 'EndTime' as 1 hr to an appointment.

Could you please let me know how to block an appointment for 1 hr duration and not as a 'All Day' for daily recurrence type of schedule.

Thanks and Regards,
Deepti
Peter
Telerik team
 answered on 11 Jan 2012
1 answer
42 views
As you can see in the image (RadGrid) I have limited the size of the detail table so it's not as wide as the master table.  How do I change the background color of the space to the left of the detail table? 
Daniel
Telerik team
 answered on 11 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?