Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 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
250 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
40 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
139 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
320 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
245 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
490 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
126 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
337 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
1 answer
280 views

I have a RadGrid which has a linkbutton for deleting a row from the grid and I use RadConfirm to display message to user to confirm the delete, if user chooses yes/ok then the record should be deleted.

However before the radconfirm is being called the record from the grid is deleted and then the confirm dialog box appears.

The version I am using version 2012.1.411.40 of teleik and facing issue in this version, can you please help or let me know where am I going wrong?

Updating with additional information:

 

In the grid we are adding a link button using the Command Template on the bottom of the grid and onclientclick,  we have a javascript to check whether any row is selected in the grid and based on that, we display message (ALERT) asking the user to select the record to be deleted. If the row is already selected then we display the (CONFIRM) to check if the user really wants to delete the row. And based on the user choice yes/no the record is deleted.

 

However, using RADConfirm in this scenario works differently, the row is first deleted and then the message is displayed. This is the issue.

 

 

Eyup
Telerik team
 answered on 18 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?