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

In web.config I've disabled skins and base stylesheets. Next I copied LinkManager.acxs from samples dir, customized it a bit (set ExternalDialogsPath for editor). When it's loaded it is totally not styled. Most likely control figures out itself about web.config setting and does nothing. I my main master page I use RadStyleSheetManager to manually combine all in one file all the css of controls I use in WebApp.

So question is how to style it?
I've tried using RadStyleSheetManager in LinkManager.ascx, but it failed saying that there is one already used on the page. I know about DialogsCssFile with import feature, but this reverts me back from what I'm trying to escape, I dont want to pull all css files separately for all controls inside LinkManager (plus they will get cached on client, which is another hassle). Would be great it I could use RadStyleSheetManager somehow to get this "all in one" url.
Now I'm trying to embed css directly into control using:

<link class="Telerik_stylesheet" rel="stylesheet" type="text/css" href="<%= Page.ClientScript.GetWebResourceUrl(typeof(Telerik.Web.UI.RadEditor), "Telerik.Web.UI.Skins.Default.Editor.Default.css") %>"/>

approach which is also errorprone cause styles added are not in head of that iframe (maybe, but i dont want to use jQuery to move DOM elements from here to head of iframe for that purpose (if it will even work)).

Another approach would be to take all external resources (from Telerik installation folder) and use them on website, but again, those will get cached (which is a good thing) and when I will update Telerik due new release I will have hard times with the old version cached on clients (which will lead to misc problems unless browser cache is cleared). 

Ideally would be if RadStyleSheetManager could provide a mechanism to access this URL (all in one) which I would like to be able to set as DialogCssHandler (opposite to current DialogCssFile, which will do almost the same), would be great if you could have dictionary based caching (like SquishIt library). That might have solved a lot of problems when it comes to use case where most embedded things are turned off for a certain reason and caching of resources for performance needs is taken into account.
Thanks!
Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 09 Oct 2011
1 answer
96 views
Hello,

How can i force ajax to update a RadPageView from code behind?

Thanks a lot
Iana Tsolova
Telerik team
 answered on 09 Oct 2011
1 answer
128 views
I am using a RadAjaxPanel that utilizes a LoadingPanel. The RadAjaxPanel is wrapped around the ContentPLaceHolder in the Masterpage to run whenever a user postbacks. However, I would like to put a custom message next to the spinning gif. I'm not sure how to do this and I looked all over.
Iana Tsolova
Telerik team
 answered on 09 Oct 2011
5 answers
91 views
Hi Telerik Team

I have been facing issue with pagesize UI display.I have not used any foooter.There are two pages but UI differs though used same properties.

Please revert as soon as possible.For understanding i have attached files.I want that all grid should have Fig.1 (uniform).

Awating for your reply
vajiha
Andrey
Telerik team
 answered on 09 Oct 2011
6 answers
106 views
Hello,
I have an ajaxified grid and RadAjaxManager set up properly on page. When I use default grid edit/update/delete buttons, loadingpanel shows ok. But when I use clientside fireCommand("", ""), page still fires postback event but loadingpanel won't ever show. What can I do about this?
Thank you.
Iana Tsolova
Telerik team
 answered on 09 Oct 2011
1 answer
280 views
Hi,

I have changed the display of ajax loading panel at the center of the page instead showing over the updated control as described in this help link 
http://www.telerik.com/help/aspnet-ajax/ajax-center-loadingpanel.html

It works fine for all the pages except the Rad Window.
Below is the sample code i tried for your reference,

Markup of the Rad Window Popup page:
<asp:Content ID="content" ContentPlaceHolderID="PopupContent" Runat="Server">
<script src="../Scripts/Common.js" type="text/javascript" language="javascript"></script>
    <h1>TestPage</h1>
     <asp:Panel ID="pnlTest" runat="server">
        
        <asp:TextBox ID="txtTest" runat="server"></asp:TextBox>
        <asp:Button ID="btnTest" runat="server" OnClick="btnTest_Click" />
         
    </asp:Panel>
 
    <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnTest">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="txtTest" />
                </UpdatedControls>
            </telerik:AjaxSetting>
<%--      <telerik:AjaxSetting AjaxControlID="btnTest">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlTest" />
                </UpdatedControls>
            </telerik:AjaxSetting>  --%>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
</asp:Content>

Im having the script to center the loading panel and the ajax loading panel at the master page,

Master Page:
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock">
<script language="javascript" type="text/javascript">
 
    function OnRequestStart(sender, args)
    {
        args.set_enableAjax(true);
        centerAjaxLoadingPanel(); 
    }     
// Invoke the centerElementOnScreen method to center the ajax loading panel in the screen
    function centerAjaxLoadingPanel() {
        centerElementOnScreen($get("<%= PopupAjaxLoadingPanel.ClientID %>"));
    }
 
    // Center the ajax loading panel in the screen
    function centerElementOnScreen(element) {
 
        var scrollTop = document.body.scrollTop;
        var scrollLeft = document.body.scrollLeft;
        var viewPortHeight = document.body.clientHeight;
        var viewPortWidth = document.body.clientWidth;
         
        // Check for BackCompat or CSS1Compat ( to display correctly in the older versions of Internet explorer)
        if (document.compatMode == "CSS1Compat") {
            viewPortHeight = document.documentElement.clientHeight;
            viewPortWidth = document.documentElement.clientWidth;
        }
        var topOffset = Math.ceil(viewPortHeight / 2 - element.offsetHeight / 2);
        var leftOffset = Math.ceil(viewPortWidth / 2 - element.offsetWidth / 2);
        var top = scrollTop + topOffset - 40;
        var left = scrollLeft + leftOffset - 70;
        element.style.position = "absolute";
        element.style.top = top + "px";
        element.style.left = left + "px";
    }
 
</script>
</telerik:RadScriptBlock>
 
   <telerik:RadScriptManager ID="PopupMasterScriptManager" runat="server" AsyncPostBackTimeout="300" />
 
    <telerik:RadAjaxManager ID="RadAjaxManagerPopup" runat="server" DefaultLoadingPanelID="AjaxLoadingPanel">
         <ClientEvents OnRequestStart="OnRequestStart" OnResponseEnd="OnResponseEnd" />
    </telerik:RadAjaxManager>
 
    <telerik:RadAjaxLoadingPanel ID="PopupAjaxLoadingPanel" runat="server" Height="60px" Width="130px" IsSticky="true" Transparency="1">
        <asp:Image ID="imgPopupLoadingPanel" runat="server" AlternateText="Loading..." ImageUrl="~/Images/loading.gif" />
    </telerik:RadAjaxLoadingPanel>

The control is getting updated but im not getting the ajax loading image.
I got that default z-index for Ajax loading panel is 90000 and for Rad Window is 3000.
Even i tried to set the the z-index explicitly for Ajax loading panel and Rad Window.

Please help me on this.

Thanks,
Meenakshi.
Meenakshi Nagalingam
Top achievements
Rank 1
 answered on 09 Oct 2011
4 answers
107 views
I have a basic RadGrid that is configured to use a Custom Skin that I created (it is basically a copy of the Office2010Silver skin.)  Everything looks great, except the combox boxes that open when you click the Filter button at the top of a column.

I added the Combobox CSS to my custom skin css and added the comboxbox images folder, but it still does not style (see attached screenshot).

I assume I need to configure the combobox inside the RadGrid to use a custom skin, but I cannot figure out how.

Has anyone dealt with this?

Thanks,
Deano


Iana Tsolova
Telerik team
 answered on 09 Oct 2011
5 answers
203 views
Hello,

I would like to get some help on how should I enable a combobox which has initial property Enable="false" in markup.

combo.enable(); throw an exception: Object doesn't support this property or method.

Thanks,

Alon
Alon
Top achievements
Rank 1
 answered on 09 Oct 2011
1 answer
146 views

I am trying to clear the scheduler from codebehind but I am having problems.
RadScheduler1.Appointments.Clear()
looks like it should do what I want, but it does not. If i check RadScheduler1.Appointments.Count before clearing, it says 5. If I check it again AFTER clearing the items, it sais 0. So the items are cleared. But they are still displayed in the scheduler. If I change the viewState of the scheduler from day to week, the items are still there. I do not use a datasource but fill the items from a function. This function does not run after the .Appointments.Clear(). But still the items are there. How do I remove the visible items???


Made a horrible workaround for this. It works, but cannot possibly be the way to do it:


        Dim col As New Collection

        For Each o As Telerik.Web.UI.Appointment In RadScheduler1.Appointments
            col.Add(o)
        Next
        For Each i As Telerik.Web.UI.Appointment In col
            RadScheduler1.DeleteAppointment(i, True)
        Next
        RadScheduler1.SelectedView = RadScheduler1.SelectedView

Peter
Telerik team
 answered on 09 Oct 2011
4 answers
631 views
Hi,

How can i change radwindow title color and font size of outlook skin? I am using an older version 1.5.2.0.

Thanks in advance!

Fakhrul
eugen100
Top achievements
Rank 1
 answered on 09 Oct 2011
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?