Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
125 views

Hello

i have added one Add Note' - link button, dropdown box and, 'Remove Note' - link button as Custom fields. when user clicks the 'Add Note' new textarea is displayed.  i have added these fields with OnClientAdded method to the Radupload control. i have RadCaptcha control on my page too. which is above the RadUpload control. when user enters the wrong Captcha value Error message displayed like 'Please Enter Correct word'. so first user enters the captcha value and then selects the file to upload. he adds note and select the value from the dropdown. but as he has entered the wrong captcha value error message is displayed. but the note is disappeared and dropdown box loses its selected value. i'm aware that at this time file selected is lost. and user have to select the file again. its a known limitation of the radupload. but i'm not aware that how the custom field will work.

Please help me to resolve the issue.

Thanks
Sweta
MJ
Top achievements
Rank 1
 answered on 25 Jan 2012
5 answers
108 views
HI TO ALL
I wanna use File Explorer control in asp.net web form smilar like given in example "File Selector Dialog" but in my case i am using a textbox control located inside Formview1 control and i need some help to modify following code to find my textbox control inside formview1. the code is like below:
//This function is called from a code declared on the Explorer.aspx page function
OnFileSelected(fileSelected) {
var textbox = $find("<%= fileName.ClientID %>");
textbox
.set_value(fileSelected); }

So how do i modify this script ?

thanx in Advance
rgds Armend
Armend
Top achievements
Rank 1
 answered on 25 Jan 2012
3 answers
62 views

I am using the Ajax Rad Menu from Q3 2010 in Visual Studio 2010 on Windows 2008 Enterprise Server
This error happens in my development environment on Windows 7 and in production on Windows 2008 Server

Put the Rad Menu into your project and configure it to look something like this:

<telerik:RadMenu ID="RadMenu1" Skin="Windows7" EnableEmbeddedSkins="False" OnClientItemClicking="myClickFunction" runat="server">
    <ExpandAnimation Type="InOutQuad"></ExpandAnimation
</telerik:RadMenu>

 

Add your own Menus and sub menus as you see fit.  Run the application out of VS2010.  Notice that when you run the page you created and pass the mouse over the menus the menus drop down and slide out normally.

In the browser (IE8) go to the Tools | Internet Options menu.  When the Internet Options dialog box comes up, click the Security tab.  Select the Trusted Sites zone and click the Sites button.  Uncheck the "Require server verification" check box and add the http://localhost to the Websites list.  Click Close then click OK on the Internet Options diaolog box.

Pass your mouse back over the menus and you should get a javascript error that shows in VS2010.  In the Telerik.Web.UI.WebResource_2.axd?... file you get this error in this function: " 'type' is null or not an object "

 

Sys.UI.DomEvent=function(e){var a=e,b=this.tyle=a.type.toLowerCase();this.rawEvent=a;this.altKey=a.altKey;

where    b=this.tyle=a.type.toLowerCase()   is hghlighted in yellow showing the statement that failed

Go ahead and click the Continue button on the error dialog until the error clears and passes execution on to the browser.  Now refresh your browser by hitting F5.  Pass your mouse over the menus and the error no longer happens.

Can anyone tell me why this might be happening?

Ralph

Helen
Telerik team
 answered on 25 Jan 2012
1 answer
99 views
Hi all:

Is it possible to provide some users with a link to the radscheduler so that they can view it inside outlook (for example)??
Plamen
Telerik team
 answered on 25 Jan 2012
5 answers
138 views
Hello

I'm writing some javascript that will allow our users to navigate through the fields of a webpage using their keyboard and either the enter or down arrows in addition to the default tab keystroke. This is working great however there are some quirks when it comes to the combobox, as hitting down it should select the next item and not jump out.  Instead it is doing both and even after switching fields it leaves the combobox open.  Much like I did for the radiogroup I wanted to make it so down would cycle through each option until the last when it would break out of the combobox and onto the next control.  I have been unable to do this as the javascript type is always returned as text, I assume this is because behind the scenes the rad combobox is actually a set of stacked text fields. That's all fine and dandy however I need a way to distinguish this control from other control types.

Here's some sample code:

    document.onkeydown = function (e) {
        e = e || window.event;
        if (typeof e != 'undefined') {
            var tgt = e.target || e.srcElement;

            // If the keypress was ENTER (13) or DOWN (40)
            if (e.keyCode == 13 || e.keyCode == 40) {
                // Determine which element we're currently on
                currentField = e.target;
                 alert(currentField.type);
            }
      }
   }

I stripped out most of the logic here, all it's doing is listening for a keypress and if it's enter or down it will show the control type.  As already said I'm getting "text" for a combobox which leave same with no way to identify it (without knowing the name ahead of time,which isn't an option here). 

So my questions is: is there a way to get the type of the combobox control through JavaScript? Or is this a bug in the telerik controls that needs to be fixed?

Thanks in advance :)
Ivana
Telerik team
 answered on 25 Jan 2012
1 answer
89 views
Hi There,I would like to use read only RadScheduler to display data from Oracle DB which i am going to consume through WCF service in sharepoint 2007 but i have lots off other fields besides startDate,End Date and Subject so how i can bind all those fields to Appointment object.

Please advise
Thanks
Ronak
Kalina
Telerik team
 answered on 25 Jan 2012
6 answers
188 views
Hello,

I've a RadPanelBar on a dynamiclly loaded UserControl. In that UserControl I've placed a RadScriptBlock where my javascript functions are defined. I'm trying to execute the get_element() and/or get_items() functions but I always get the error that the function is not supported.
var $ = $telerik.$;
 
var categoryPanelBar = $(this).find("<%=RadPanelBar1.ClientID%>");
 
alert(categoryPanelBar.get_items());

With this code the PanelBar object can be found only the function get_items() will not be excuted because it tells me that this function is not support for the element.

Can someone help me with this?

Regards,
  Jos Meerkerk,
Ivana
Telerik team
 answered on 25 Jan 2012
1 answer
176 views
I have a RadWindow configured to be opened via a "username" hyperlink on my master page - this RadWindow is setup to allow impersonation of other users for the purpose of troublshooting issues.  The first RadComboBox is populated server side while the second combo box is dynamically populated but is tied to the selected value from the first RadComboBox.  For some reason when I change the selected value in the first RadComboBox that value is not being transferred back to the server but dynamic data I type into the second RadComboBox which has EnableLoadOnDemand set to true does - since both controls are on the RadWindow I can see no reason why the updated selected value (altered from when combo was first loaded) is not - below you will find the markup for the RadWindow and the server side event for the second RadComboBox that is using the selected value from the first - any thoughts/help would be much appreciated as I am pulling my hair out - please note that I've stepped through the code and the code that loads the first combo box is not being called on postback (which would reset the combobox) so I don't think that is the issue.

<telerik:RadWindow ID="ImpersonationWindow" runat="server" Height="200px" Width="500px" IconUrl="/Content/Images/user16.png"
					Animation="Fade" Modal="true" Title="User Impersonation" Behaviors="Close" KeepInScreenBounds="true" 
					ReloadOnShow="false" DestroyOnClose="false">
					<ContentTemplate>
						<div class="row">
							<span class="label" style="width30%;">
								<span class="small-red-bold-label">Business Unit:</span>
							</span>
							<span class="field" style="width65%;">
								<telerik:RadComboBox ID="ImpersonatedBusinessUnitRadComboBox" runat="server" Width="275px" CausesValidation="false"
									DataTextField="FormalName" DataValueField="CentralBusinessUnitNo">
								</telerik:RadComboBox>
							</span>
						</div>
						<div class="row">
							<span class="label" style="width30%;">
								<span class="small-red-bold-label">Employee:</span>
							</span>
							<span class="field" style="width65%;">
								<telerik:RadComboBox ID="ImpersonatedEmployeeRadComboBox" runat="server" Width="275px" Height="200px" CausesValidation="false"
									DataValueField="EmpID" DataTextField="FullName" 
									ShowDropDownOnTextboxClick="false" EnableLoadOnDemand="true" MarkFirstMatch="false" ItemRequestTimeout="500"
									EmptyMessage="Type Employee Name..." MinFilterLength="2" OnItemsRequested="ImpersonatedEmployeeRadComboBox_ItemsRequested">
								</telerik:RadComboBox>
							</span>
						</div>
						<div class="row"><span class="label"></span><span class="field"></span></div>
						<div class="row">
							<span class="label" style="width48%;">
								<asp:Button ID="ImpersonateButton" runat="server" Text="Impersonate" Width="100px" OnClick="ImpersonateButton_Click" />
							</span>
							<span class="field" style="width48%;">
								<asp:Button ID="ResetButton" runat="server" Text="Reset" Width="100px" OnClick="ResetButton_Click" />
							</span>
						</div>
					</ContentTemplate>
				</telerik:RadWindow>


protected void ImpersonatedEmployeeRadComboBox_ItemsRequested(object sender,RadComboBoxItemsRequestedEventArgs e)
        {
            if(!string.IsNullOrEmpty(e.Text))
            {
                if(e.Text.Length >= 2)
                {
                    List<FindEmployeeView> employees = new List<FindEmployeeView>();
                    // get data from data context
                    using(CommonDataContext context = new CommonDataContext(ConfigurationManager.ConnectionStrings["CEO"].ConnectionString))
                    {
                        employees = 
                            context.FindEmployeesByFullName(
                                0,
                                e.Text,
                                AnyOrganizationFilter,
                                "|" + ImpersonatedBusinessUnitRadComboBox.SelectedValue + "|",
                                AnyOrganizationFilter,
                                1).ToList();
                    }
                    // databind
                    ImpersonatedEmployeeRadComboBox.DataSource = employees;
                    ImpersonatedEmployeeRadComboBox.DataBind();
                }
            }
        }
Michael
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 25 Jan 2012
0 answers
135 views
Edit: Ignore me...It wasn't mention in the documentation, but I was missing the true parameter in the  eventArgs.set_cancel function, thus the error.
Colin
Top achievements
Rank 1
 asked on 25 Jan 2012
1 answer
116 views
Currently I am trying to format and style a chart legend according to the design given to me by the design team on the project.

*see attached image ChartDesign.PNG*

However I am sofar unable to even put the chart Legend in the correct position, let alone divide the markers.

The code below would logically do the trick to position the block to bottom left but it stays at bottom CENTER.
chart.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.BottomLeft;

*edit*
I just found out by trial and error that the line
chart.AutoLayout = true;
Prevents the legend from being aligned to the left.. I still find this quite strange and would expect other behaviour.
*/edit*

Can anyone give me some tips or hints on how to move the legend to bottom left and divide the items so that it won't be just a long vertical list?

Cheers,

Maarten
Maarten Bos
Top achievements
Rank 1
 answered on 25 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
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
Bronze
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?