Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
656 views
Hello,

I want to center the radAjaxLoadingPanel in my browser (adaptable to the size of the window).

I try to do something like that :

<telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel" runat="server" Transparency="20" BackColor="#E0E0E0">  
    <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>' 
            alt="Loading..." style="margin: 383px 500px 383px 500px" /> 
</telerik:RadAjaxLoadingPanel> 

When this is the radajaxmanager that starts the radajaxloadingpanel, it is almost centered...
but when this is another control in the page that starts the radajaxloadingpanel, it is not centered at all.

How can I do that ?

Thanks,

Sabrina
Manuel Ortiz
Top achievements
Rank 1
 answered on 30 Mar 2010
2 answers
163 views
Hi,
I've tried to set the HorizontalAlign of the "Size" column to "Right":
GridColumn c = theExplorer.Grid.Columns.FindByUniqueNameSafe("Size");  
if (c != null)  
{  
  c.ItemStyle.HorizontalAlign = HorizontalAlign.Right;  
  c.HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
} 
It works but... up to the 11th row (starting with 1). The 12th row is an invisible "No record to display" row and starting from the 13th row the alignment is "Left". It is so in the case of any column, not "Size" only.
See the attached print-screens of the markup and its result.
Could you do something with it :-) ?

Regards
Tomasz

PS. I'm using 2009 Q3 and "Simple" skin - if it matters.
Tomasz M.Lipiński
Top achievements
Rank 1
 answered on 30 Mar 2010
1 answer
351 views
I have a radajaxpanel and a radscriptmanager in the master page. So all my content pages inherits them.

<body id="bodymaster" runat="server" style="background-image:url(../../img/titlebg.jpg); background-attachment:fixed"> 
    <form id="frm01" runat="server"> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"> 
            <Scripts>  
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />  
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
            </Scripts>          
        </telerik:RadScriptManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
        <telerik:RadAjaxPanel ID="radAjaxPanel01" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnRequestStart="onRequestStart">             
            <div style="width: 100%; height:20px;top:0px; left:auto;" class="div03"> 
                <table class="tbl12"> 
                    <tr> 
                        <td width="50%" style="text-align:left"> 
                            <asp:Label ID="lblMessage" runat="server" CssClass="txt08r" Visible="false" EnableViewState="false" /> 
                        </td> 
                        <td width="50%" style="text-align:right"> 
                            <asp:Label ID="lblApp" runat="server" style="color:#FFFFFF" /> 
                            <asp:Image ID="imgApp" runat="server" ImageUrl="~/img/spacer.gif"/>&#160;&#160;<asp:Label ID="lblAppTitle" runat="server" CssClass="txt09s" />                                 
                        </td> 
                    </tr> 
                </table> 
            </div>            
            <div id="pnlContentMain01_01" name="pnlContentMain01_01" style="PADDING-RIGHT: 0px;PADDING-LEFT: 0px;PADDING-BOTTOM: 0px;OVERFLOW: auto;WIDTH: 100%;PADDING-TOP: 0px;moz-box-sizing: border-box;box-sizing: border-box">  
                <asp:contentplaceholder id="mpContentMain01_01" runat="server" />                     
            </div> 
        </telerik:RadAjaxPanel>   
    </form> 
</body> 
</html> 
 

After each callback all the contentplaceholder elements from each of the content pages are included in the callback refresh. Is it possible to have an nested radajaxpanel in the content page, so in some cases refresh just some controls inside the contentplaceholder instead of the whole content page?



robertw102
Top achievements
Rank 1
 answered on 30 Mar 2010
2 answers
136 views
Hello,

If anyone can guide me what the best solution I should do to achieve the following:

I have a master page.
In the master page I have a dropdownlist and a textbox
I wannna be able to select an item from the dropdownlist and type the text to search for according to the selected item

then pass that select statement to the RadGrid in the ContentForm.

Musab Alghzawi
Top achievements
Rank 1
 answered on 30 Mar 2010
1 answer
89 views

Hi

I have a RadGrid, I have now been tasked with putting a Right Click Context menu in place. What I need to figure out is:


1)     How can I get a value from the either the DataItem or the DataKeyValues from client side for the row that has fired off the
        context menu?   

    
Any thoughts / pointers most appreciated

Shinu
Top achievements
Rank 2
 answered on 30 Mar 2010
1 answer
125 views
Hi,

I have a scheduler that I am using to display quite a lot of information and frequently find that the "more..." text is shown in a day cell.  Is there a way to allow more rows of data before "more..." appears?  If there isn't a way to increase the number of rows please can I request that it be added as a feature request for a release asap?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 30 Mar 2010
2 answers
116 views
I have a GridHyperLinkColumn in my RadGrid and I need to save the filter state across server requests (in a session) so that when the user returns to the page the grid is in the same state as it was left.  I have studied the code at

http://www.telerik.com/help/aspnet-ajax/grdsavingsettingsonperuserbasis.html 

and I see the comment to "call SaveSettings at Render."  I believe I want to call SaveSettings went the client request is fired by clicking on a hyperlink - how do I capture that event in the code-behind?

tia,
Mark
Yavor
Telerik team
 answered on 30 Mar 2010
1 answer
106 views
I was trying to include the javascript for client events for RadNumericTextBox, however eveytime I use the custom control i get error saying undefined function name.

 

public class CustomRadNumericTextBoxControl : RadNumericTextBox, IPostBackEventHandler, INamingContainer

 

{

 

private string OnKeyPressFunctionName = "OnKeyPress";

 

 

protected override void OnPreRender(EventArgs e)

 

{

RegisterJavascripts();

 

this.Type = NumericType.Currency;

 

 

this.Culture = CultureInfo.CurrentCulture;

 

 

this.DataType = System.Type.GetType("System.Decimal");

 

 

this.NumberFormat.AllowRounding = true;

 

 

this.ClientEvents.OnKeyPress = OnKeyPressFunctionName;

 

 

base.OnPreRender(e);

 

EnsureChildControls();

}

 

public void RegisterJavascripts()

 

{

Page.ClientScript.RegisterClientScriptInclude(

Guid.NewGuid().ToString(),

 

Page.ClientScript.GetWebResourceUrl(GetType(),

"<<Embedded javascript resource file name>>"));

 

 

}

}

}

Dhinesh Muthuvel
Top achievements
Rank 1
 answered on 30 Mar 2010
5 answers
151 views
I have added a custom skin to the RadGrid. I have made all the modifications to the Grid.CustomSkin.css file and my grid looks good. I am working on changing the combobox in the Pager. I am modifying ComboBox.CustomSkin.css but not all of my changes are working. I used the IE Developer toolbar and noticed that it is still pulling the css from Telerik.Web.UI.WebResource.axd. How do I prevent it from doing that?
Dimo
Telerik team
 answered on 30 Mar 2010
10 answers
334 views
Trying to do the Navigation demo.of the card catalog style interface. Found the other 6 .png files, but not this one ?
am I looking in the right place ?
thanks
Veselin Vasilev
Telerik team
 answered on 30 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?