Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
121 views
Hi,

I tired latest verion Radcontrol Q2 2012 and found out the RadMaskedTextBox doesn't work with RegularExpressionValidator on IE 8 when you put wrong format input  and tab out the RadMaskedTextBox.  TheRegularExpressionValidator  doesn't show the error message even if the input doesn't match with Validation Expression. But works on the Firefox 12.

Note: I mean tab out not click button.

Following is my testing code:
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
 <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" runat="server" Mask="(###)-######">
 </telerik:RadMaskedTextBox>
 <asp:RequiredFieldValidator Display="Dynamic" ID="MaskedTextBoxRequiredFieldValidator"
   runat="server" ErrorMessage="Please, enter a phone number." ControlToValidate="RadMaskedTextBox1"></asp:RequiredFieldValidator>
 <asp:RegularExpressionValidator Display="Dynamic" ID="MaskedTextBoxRegularExpressionValidator"
   runat="server" ErrorMessage="Format is (###)-######" ControlToValidate="RadMaskedTextBox1"
   ValidationExpression="\(\d{3}\)-\d{6}" />
 <asp:Button ID="Button1" runat="server" Text="Postback" OnClick="Button1_Click">
 </asp:Button>
 <asp:Label ID="lblMessage" runat="server"></asp:Label>
 </form>


I also tested on your demo site and same behavior:

http://demos.telerik.com/aspnet-ajax/input/examples/common/validation/defaultcs.aspx

Alan
Vasil
Telerik team
 answered on 19 Jun 2012
1 answer
85 views
Hi,
I have implemented a pager template for for my radgrid as like as this example: RadGrid - pager template
When i enter a number to RadNumericTextBox and press Enter, form default button action is raised. So i disabled form default button action, by body onkeydown event (returning false if keyCode==13). Now all things are OK in FF, i.e entering number to RadNumericTextBox  and pressing Enter, load the requested page.
But...
My  problem is in IE. It Seems, Entering number to RadNumericTextBox  and pressing Enter, does not fire ValueChanged event of  RadNumericTextBox.
what is best way to solve this issue?( how does telerik pager template work correctly? )

Any idea is appreciated.



Regards.
Mohsen
Vasil
Telerik team
 answered on 19 Jun 2012
4 answers
221 views
Hello,

I have downloaded telerik control panel in last week.
Today i tried to update my telerik version by using this.
But when i try it update the their own version at that it gives error to me.

OS : window 7 enterprise, 64 bit.


Thanks,
Jayesh Goyani
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Jun 2012
0 answers
20 views
Hi..
    I'm using RadFilter Control. How can i get the Add Expression or Remove item ID of the RadFilter.

Thanks & Regards
Tamim
Tamim
Top achievements
Rank 1
 asked on 19 Jun 2012
1 answer
129 views
hi
my code is very simple, I just change font size in combo box and it shows very weird line or shadow under combobox as in the screen shot. my telerik for ajax version is 2012.1.215.40

here is my code
<telerik:RadComboBox ID="YearComboBox" Runat="server"  Filter="StartsWith" Font-Size="Medium"
 Width="100px"  Height="150px"   DataTextField="Text" DataValueField="Value"
        DataSourceID="XmlDataSource1" >
</telerik:RadComboBox>
    <asp:XmlDataSource ID="XmlDataSource1" runat="server"
        DataFile="~/Common/year.xml"></asp:XmlDataSource>

This appears in both Chrome and IE9

Many Thanks!
Princy
Top achievements
Rank 2
 answered on 19 Jun 2012
5 answers
278 views
Hi All,
            I am having problem in the AjaxLoading Panel. I want to display the loading panel in whole page rather then the specific control for that i used RadAjaxPanel l in the master page like this:

<telerik:RadAjaxPanel ID="Loadingpanel1"  runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
           <ClientEvents  OnRequestStart="RequestStart()" />
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Loadingpanel1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Loadingpanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings> 
        </telerik:RadAjaxManager>

 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"  Transparency="30"  IsSticky="true" CssClass="MyModalPanel" Skin="" ScrollBars="None">
                 <asp:Image ID="Image1"  runat="server" AlternateText="Wird geladen" Style="" ImageUrl=  "~/App_Themes/WillisDRITheme/Images/Processing.gif"  CssClass="MyLoadingImage"/>
        </telerik:RadAjaxLoadingPanel>   <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
</telerik:RadAjaxPanel>



this will display the Loading panel in the whole page but the image is not display in the center of the page. Like when the page is scrollable i.e. page height is more then the screen height in that case the loading image should be always in the center.But Image appear to the center of the whole page height(screen height).

I use given script to use the loading panel in full page.
function RequestStart() { 
        // the following Javascript code takes care of expanding the RadAjaxLoadingPanel 
        // to the full height of the page, if it is more than the browser window viewport 
 
        var loadingPanel = document.getElementById("<%= RadAjaxLoadingPanel1.ClientID %>"); 
        var pageHeight = document.documentElement.scrollHeight; 
        var viewportHeight = document.documentElement.clientHeight; 
 
        if (pageHeight > viewportHeight) { 
            loadingPanel.style.height = pageHeight + "px"; 
        } 
         
        // the following Javascript code takes care of centering the RadAjaxLoadingPanel 
        // background image, taking into consideration the scroll offset of the page content 
 
        var scrollTopOffset = document.documentElement.scrollTop; 
        var loadingImageHeight = 55
 
        loadingPanel.style.backgroundPosition = "center " + (parseInt(scrollTopOffset) + parseInt(viewportHeight / 2) - parseInt(loadingImageHeight / 2)) + "px"; 
 
        // workaround for RadAjaxLoadingPanel for ASP.NET - there are two elements with the same ID 
        // this is not needed with RadAjaxLoadingPanel for ASP.NET AJAX 
 
        if (loadingPanel.nextSibling.className == loadingPanel.className) // IE, Opera 
        { 
            loadingPanel.nextSibling.style.backgroundPosition = "center " + (parseInt(scrollTopOffset) + parseInt(viewportHeight / 2) - parseInt(loadingImageHeight / 2)) + "px"; 
        } 
        else if (document.getElementsByClassName) // Firefox 
        { 
            var panels = document.getElementsByClassName("MyModalPanel"); 
            for (var j = 0; j < panels.length; j++) { 
                panels[j].style.backgroundPosition = "center " + (parseInt(scrollTopOffset) + parseInt(viewportHeight / 2) - parseInt(loadingImageHeight / 2)) + "px"; 
            } 
        } 
    } 

and use this Style for the Loading Image.
.MyLoadingImage 
    position:relative; 
    top:50%; 
    margin-top:-30px; 
    left:50%; 
    margin-left:-65px; 

Thanks
Wish you new Year!!
Kyaw
Top achievements
Rank 1
 answered on 19 Jun 2012
1 answer
219 views
I want to make a column readonly when editing, but if I am inserting a new entry I don't want the column to be readonly. How can I do this when my columns are generated using an sql datatable?

-Nick
Princy
Top achievements
Rank 2
 answered on 19 Jun 2012
5 answers
424 views
Is there any way to make a Loading Panel cover the whole screen (i.e. a Loading Panel "modal"). During a save operation I would find it much easier to cover the whole screen and block using the save, delete, etc so they are only clicked once. This would also stop the user from accidentally clicking the menu and navigating away from the page during the save operations.

I realize that there are events which I could use to hide/show buttons and etc but that would be a pain in the butt to hide the menu on the Master Page and I am just looking for a simple solution here and I would think that just covering the whole screen with a Loading Panel "modal" would be the best option.

I tried using a RadWindow to accomplish this and it works okay but it just really looks strange.
Kyaw
Top achievements
Rank 1
 answered on 19 Jun 2012
2 answers
109 views
Hi,
I have a grid binded to LinqDataSource  (tablename='Region') that show 2 fields "id" and "description".
I want to display also a field "description" of another table ('State') in relathion with the first by stateID Field ( foreign key).
How can I show this last field in my grid?
Thanks a lot to all
Gaetano


Giancarlo
Top achievements
Rank 1
 answered on 18 Jun 2012
3 answers
291 views
Hi everyone,
I'm very new to ASP.NET.
Currently I'm doing a project that require CommandItemSettings-ShowAddNewRecordButton to be set hidden by default and will be set to visible (myGrid.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = true) after validate the user credentials successful in the code behind C#. However, I encounter the problem where it won't be showed as visible unless there is an action on the page/grid to refresh(like a post back event, etc).
So is there a solution to by pass this problem?

Thanks a lot.
Sayle
Top achievements
Rank 1
 answered on 18 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?