Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
338 views
Hi,

I have a number of RadNumericTextboxes that all link to the same ValueChanged clientside event.
In this event I want to get the parent element of this RadNumericTextbox (a table cell) and change its background color.
However I have trouble getting the parent element. The RadNumericTextbox doesn't support the regular javascript 'parentNode' property so I can't use that. And I also have trouble selecting the RadNumericTextbox as a 'regular' DOM element because it's in a page with a masterpage, so the ID is useless.

Can anyone help?

Cheers,
CJ
Eyup
Telerik team
 answered on 25 Jun 2013
1 answer
323 views
Good day,

We're using one fileexplorer in a page.
When we press the 'Upload' button of the file explorer, a window appears with file selector open button, overwrite flag, filter label, etc.
We are unable to understand how to position and size the Upload window.

How can we change size and position when opening the Upload window?

We'd like to also know:
- Is it possible to change the 'Filename' and 'Size' labels of the file explorer?
- Is it possible to set size and position of the -file open- window (the one that appears when pressing 'Select' in the upload window)?

Thanks in advance
Ivaylo
Telerik team
 answered on 25 Jun 2013
8 answers
429 views
Hi.  I'm using an AjaxPanel for async postbacks.  Within that, I have a Rad File Upload control.  For file uploads, I turn off Ajax via set_enableAjax(false).  The file upload works correctly -- a full postback occurs.

After the full postback, if I then make some async postbacks within that AjaxPanel (which hides and unhides controls), when the Rad File Upload control becomes visible again, the styling for the Rad File Upload has disappeared.

I can see in Firebug that the first time the File Upload control appears, there are about 6 <link> tags in the <head> section for Telerik WebResource files.  When the styling is missing for the File Upload control, there is only about 1 WebResource <link> tag in the <head> section.  These missing WebResource files are causing the styling issues.

If I never upload a file (meaning there is no full postback), and I do several ajax postbacks, each time the File Upload control appears again, it is styled correctly everytime.  So it's only after a full postback, and then when I make a subsequent partial postback to make the File Upload control appear again, is this problem occurring.

I'm using Q1 2010.  Same problem is occurring in IE and Firefox.  I'm not seeing any errors in the Firefox Error Console.  I think this is a problem on the server side code not injecting the WebResource files in this scenario.  Any help is appeciated -- thanks.
Hristo Valyavicharski
Telerik team
 answered on 25 Jun 2013
1 answer
269 views
Hello friends,

I am using a RadTextBox, laying on a RadWindow and I want to make an ajax request from that control when the OnTextChange event is triggered. I am trying to use the following :
ScriptManager : This is the content page and the master page has got a script manager as below:
  • <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="scriptSchMaster" runat="server" EnablePartialRendering="true"
            EnableScriptCombine="true" OnAsyncPostBackError="scriptSchMaster_AsyncPostBackError">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
                </asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
        </telerik:RadStyleSheetManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server">
            <TargetControls>
                <telerik:TargetControl ControlsToApplySkin="<Rad Controls>" Skin="<some valid skin name>" />
                <telerik:TargetControl ControlsToApplySkin="<Rad Controls>" Skin="<some valid skin name>" />
                ...
.aspx code snippet

<label>Product #</label><br />
<telerik:RadTextBox ID="tbProductNumber" runat="server" Width="250" CssClass="upperCase"
        AutoPostBack="true" MaxLength="30" OnTextChanged="tbProductNumber_OnTextChanged"
        EmptyMessage="Required" EnableViewState="true"
        EmptyMessageStyle-CssClass="validatorText">
 
            <ClientEvents OnBlur="jsfun_tbProductOnBlur" />
 
</telerik:RadTextBox>
 
<asp:UpdatePanel ID="upCheckProductNumber" runat="server" UpdateMode="Always">
     <ContentTemplate>
        <asp:Label ID="lblCheckProductResult" runat="server"></asp:Label>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="tbProductNumber" EventName="TextChanged" />
    </Triggers>
</asp:UpdatePanel><br />
<label id="lblProductNumValidator"></label>


.js code

function jsfun_tbProductNumberOnBlur(sender, args) {
    elem_ProductNumber = $find('<%=tbProductNumber.ClientID %>');
    if (
            elem_ProductNumber.get_value() != null &&
            elem_ProductNumber.get_value() != undefined
        )
                ProductNoEmpty = false;
            else
                ProductNoEmpty = true;
 
            showErrors();
 
            //__doPostBack('', '');
}


.aspx.cs code snippet: (This is not being called)

protected void tbProductNumber_OnTextChanged(object sender, EventArgs e)
{
        lblCheckProductNumberResult.Text = "Hello Ajax!";
}


I tried something in a separate sample application and it seemed to be working for textbox and radtextbox, both ...

.aspx content page

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager runat="server">
    </asp:ScriptManager>
    <br />
    <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" OnTextChanged="txtChanged"></asp:TextBox>
    <telerik:RadTextBox ID="radTextBox1" runat="server" AutoPostBack="true" OnTextChanged="txtChanged">
    </telerik:RadTextBox>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="TextBox1" EventName="TextChanged" />
            <asp:AsyncPostBackTrigger ControlID="radTextBox1" EventName="TextChanged" />
        </Triggers>
    </asp:UpdatePanel>
    <br />
    <input id="Text1" type="text" /><br />
    <br />
    <asp:Button ID="Button1" runat="server" Text="Button" />
    <br />
</asp:Content>


code behind
public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
        protected void txtChanged(object sender, EventArgs e)
        {
            Label1.Text = DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss.fff tt");
            
        }
    }

Any help 'd be appreciated ...

Thanks,
-Aarsh
Vasil
Telerik team
 answered on 25 Jun 2013
2 answers
483 views

#1.My issue: I am using telrick image editor in my aspx web page.It is not loading .tiff/.tif images.
  so am not able to Edit .tiff/.tif images in my editor.

#2.I haven't see the doc for the supported file formats by telrik radimage editor.
     I have go through the Dev docs.But the are used only(jpg, bmp, png, gif). Any one have any idea.

#3.I need a Dev doc clearly specify the list of supported image format by telrik image editor

Arun
Top achievements
Rank 1
 answered on 25 Jun 2013
7 answers
235 views
I was looking forward to seeing some changes to the ODataDataSource - Filtering, Sorting and Paging with RadGrid demo after this latest update to fix some glitches.  However, this demo and two of the others are now broken and have been down for several days.  The service on odata.org seems to have moved.  Using Fiddler on the demo page, I get:

HTTP/1.1 302 Found
Connection: Keep-Alive
Content-Length: 321
Date: Tue, 18 Jun 2013 19:26:16 GMT
Location: /(S(1z3r2a0jbjtlcjtx4j00pwta))/Northwind/Northwind.svc/Orders?$callback=jQuery19107677443233304048_1371583576801&%24format=json&%24inlinecount=allpages&%24top=20&%24filter=&%24orderby=
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET
Access-Control-Allow-Headers: Accept, Origin, Content-Type, MaxDataServiceVersion
Access-Control-Expose-Headers: DataServiceVersion
 
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/(S(1z3r2a0jbjtlcjtx4j00pwta))/Northwind/Northwind.svc/Orders?$callback=jQuery19107677443233304048_1371583576801&%24format=json&%24inlinecount=allpages&%24top=20&%24filter=&%24orderby=">here</a>.</h2>
</body></html>
Kate
Telerik team
 answered on 25 Jun 2013
4 answers
495 views
Hello - we are using the latest download Version=2013.2.611.40

I am trying to use the RadAutoCompleteBox with the control defined like this:
<telerik:RadAutoCompleteBox ID="racFromUser" runat="server"
                Width="250" DropDownHeight="150" DropDownWidth="250"
                TextSettings-SelectionMode="Single"
                InputType="Token"
>
</telerik:RadAutoCompleteBox>

Issues:
1) The control is not rendering any colors or icons.  The box & the dropdown is completly transparent.  The dropdown does not hide the junk on the page behind the drop down, so that the list in the drop down get mingled with whatever it is dropping down over making it almost impossible to read the contents of the drop down.

2) The control allows multible items to be slected even though Single selection mode is set in wither token or text mode.

3) In token mode no red x is displayed to delete a token ( the space is still there and hover text still activates )



Magdalena
Telerik team
 answered on 25 Jun 2013
3 answers
496 views
I'm using SelectedDate from the RadCalendar to display local events from a database using a listview and sqldatasource.  It works fine unless I click the same date twice.  The SelectedDate is then set to 1/1/0001 12:00:00 AM and I get the error "SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM".

I read that selecting one date causes the previously selected date to become unselected, so I understand why it's happening, I just can't find a workaround.  

Is there a way to make the currently selected date inactive (unclickable)?  Or, can I check if the user selected the same date?

I tried using Calendar1_SelectionChanged but can't find a way to get the SelectedDate which is really unselected.  The FocusedDate is set to today's date, so I can't use it.

<telerik:RadCalendar ID="Calendar1" runat="server" EnableMultiSelect="false" ShowRowHeaders="false" AutoPostBack="true" Skin="MetroTouch" RenderMode="Lightweight"> </telerik:RadCalendar>
 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnString %>">
    <SelectParameters>
        <asp:ControlParameter ControlID="Calendar1" Name="calendar1" PropertyName="SelectedDate" />
     </SelectParameters>
</asp:SqlDataSource>


Shinu
Top achievements
Rank 2
 answered on 25 Jun 2013
5 answers
160 views
Hi All

I am in the process of developing some functionality that uses the RadList and RadWindow.

The requirement is....

When an item is selected in the List control I need to open a RadWindow to display and edit the selected record.

Once editing completed close the Window and then the List control to be refreshed...

Anyone have any pointers on how to achieve this?

Any help greatly apprecaited.

Thanks

Eyup
Telerik team
 answered on 25 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?