Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
143 views
I have a complex application with hundreds of styles.

I do need them to render in the editor (AJAX version).
I need users to be able to select some of them with the css styles dropdown, but not all of them.

If I include them in CssFiles, then they all go in the dropdown.
If I include them (instead or also) in CssClasses then it only renders the ones I specify.

I DO need users to see their content in context (meaning I need all the styles to be rendered by the editor) but many of them are not appropriate for the dropdown.

Worse, some of the definitions call for styling that look silly within the dropdown (e.g. boxes that have huge dimensions/margins/padding etc). It would be acceptable (but not preferable) for me to include my hundreds of styles in the dropdown as long as they weren't styled in the dropdown.

1) Is there a way to get the editor to render more classes than appear in the dropdown? 

2) If that's not possible, can I get the styles to not render in the dropdown itself?

DK
Day
Top achievements
Rank 1
 answered on 11 Jan 2011
1 answer
167 views
For security reasons I need to disable the right click option for the context menus but have been unsuccessful with the code samples I've used.  I've tried to disable it via client side scripting and server side scripting and neither option has worked.  If there is a server side solution for this could you please point me in the right direction to finding it?

Thanks



<script type="text/javascript">
        // Dynamic positioning override - not guaranteed to work in future versions!
        $telerik.$.popupDialog.prototype._positionForm = function () {
            // This will be called each time the form needs to be repositioned
            var $ = $telerik.$;
            $(this._targetElement).css({ top: "150px", left: "200px" });
        }
  
        function OnClientAppointmentContextMenu(sender, args) {
            sender.get_appointmentContextMenus()[0].set_enabled(false);
        }   
  
    </script>

protected void RadScheduler1_TimeSlotCreated(object sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e)
   {
       //if (!SecurityHandler.CanWrite(SafeValue.SafeInt(Session["UserID"].ToString()), "Scheduler Admin"))
           e.TimeSlot.CssClass = "Disabled";
   }
Brian King
Top achievements
Rank 1
 answered on 10 Jan 2011
5 answers
816 views
Hi,

I am using the sample from Live Demos >> AJAX >> Examples >> Loading Panel >> Loading Images.

When I run the example from your page it shows the loading icon over the Panel controls with a transpent frame.
But in my sample application I am not able to produce the same effect. It shows the icon but hides the background items.

Also the image is always showing in the top center location whereas I specified it to be in BottomRight.

Please help.

 

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

 

    <style type="text/css">

        .module1

        {

            background-color: #dff3ff;

            border: 1px solid #c6e1f2;

        }

    </style>

 

</asp:Content>

 

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

 

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

        <AjaxSettings>

            <telerik:AjaxSetting AjaxControlID="Panel1">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />

                </UpdatedControls>

            </telerik:AjaxSetting>

        </AjaxSettings>

    </telerik:RadAjaxManager>

 

    <br /><br />

   

    <fieldset class="module1">

        <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center" Height="275px">

            <asp:Button ID="Button1" runat="server" Text="Click to see the loading image" OnClick="Button1_Click"

                Style="margin-top: 15px; margin-left: 15px" CssClass="qsfButtonBigger" />

        </asp:Panel>

    </fieldset>

   

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" EnableSkinTransparency="true" BackgroundPosition="BottomRight">

        <img src="images/loading6.gif" />

    </telerik:RadAjaxLoadingPanel>

 

</asp:Content>

Thomas
Top achievements
Rank 1
 answered on 10 Jan 2011
4 answers
261 views
Hi.
I'm sure is very simple but I'm lost at this point.

I have a RadGrid with automatic generation of columns, this RadGrid has several sources of data therefore do not know the types of data displayed in the radgrid, but the RadGrid must have the ability to edit your rows and use the UpdateCommand method within which gets the values of the fields, but when a field has a decimal value (i.e. -0.326267) always returns only with two decimales (i.e.  -0.32)
How do I retrieve the number with all decimals?

P.D. Sorry for my English
Marcelo
Top achievements
Rank 1
 answered on 10 Jan 2011
0 answers
74 views
Hi,

Can someone explain what are the best ways to link localised resources linked in one databinding Datatable sql or Webservices ?. For sample i have one table using default languages and resources to change to others (table or resource files). Some suggestion is add the resources in the main table but need much code to manage many languages. Other solution is load from table the default language and apply the resources files before add to page server side coded. Mixed solutions are possibles?. What are the best? Thanks.
Pierre
Top achievements
Rank 1
 asked on 10 Jan 2011
3 answers
144 views
Hi,

I'm keen on using the RAD controls since they totally rock, but I've got some issues with getting my head wrapped around something..

This is how I want to use it/do:

Get the page to load, have an updatepanel (or whatever RAD control needed for that) load the content of that panel asynchronously after the page is loaded.

Right now if I hook up a RadRotator for example, and an XmlDataSource to that - it takes ages to load and THEN displays the webpage and releases the main UI thread.

So, what I want to do is to load the page and have an update panel async load it's own content just like if you were clicking a button in that updatepanel, but on page load.

To answer a few of your initial questions:
* No, this doesn't apply to only the RadRotator, I know about the Load On Demand functionality. 
* I want to do this for all my pages/applications I create - namely dynamically load the content and displaying a small "loading" gif while it's working. Basically just async loading with an indicator.

Any push in the right direction would rock!

Cheers,
Tobzi
Pero
Telerik team
 answered on 10 Jan 2011
2 answers
68 views
Hi ,

 I am using radcalendar in my app. while click on the date, calling ondateclick function.. in that function returing the value like "2011,1,12"
 but i need to display "January 3, 2011" Tell me how to do?
Brown
Top achievements
Rank 1
 answered on 10 Jan 2011
2 answers
69 views
In the current 2010Q3 version of RadMenu, if a user expands a menu, then moves the mouse out of the menu without clicking an item, the root item remains in its animated hover state.  For example, on:

http://demos.telerik.com/aspnet-ajax/menu/examples/programming/webservice/defaultcs.aspx

1. Hover over the "Purchase" menu item
2. Move the mouse over the "Instructions" button on the right.
3. The menu collapses but "Purchase" remains highlighted.

4. If you highlight "Support", both Purchase and Support will be in highlighted state.

Clicking on whitespace clears the highlight.

In previous versions (at least 2010Q1, which is what my project is being upgraded from) the "Purchase" would have reverted to its normal form.  Is it possible to make the current version of RadMenu behave as it did before?  The current behaviour, whether intended or not, "feels" buggy.
Talys
Top achievements
Rank 1
 answered on 10 Jan 2011
2 answers
196 views
Hi,

Is it possible to have a 3 layer tab strip and if so how do I do it? Are there any examples? I currently have a 2 layer tab strip with tabs being added and removed using javascript but can't see how to make it into a 3 layer.

Cheers
Jon
Jonathan Levy
Top achievements
Rank 1
 answered on 10 Jan 2011
2 answers
71 views
I have a multiday event, start date 1/3/11 00:00:00, end date 1/5/11 23:59:59, below is the date logic for inserting it

odr(

 

"StartDate") = CDate(StartDate.ToShortDateString & " 00:00:00")

 

odr(

 

"EndDate") = CDate(EndDate.ToShortDateString & " 23:59:59")

 


The event shows fine on the 3rd and 4th, but on the 5th it shows up in the day area of the week view instead of the all day event area.  This happens to all of my events.  I have attached an image to show the issue.  I'm sure it is something I'm missing regarding setting up the event, but any help would be appreciated.

Thanks
Chris Trina
Top achievements
Rank 1
 answered on 10 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?