Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
201 views
Hi all,

I have a ComboBox and and ListBox.

After selected at ComboBox, get value from ComboBox and pull data from database then bind to listbox without postback.
How I to do please?
At which event I have to pull data for listbox ?


Naunton
Top achievements
Rank 1
 answered on 11 Jan 2011
13 answers
357 views
Hi

I use the dayrender event to make days that have a event associated to have a different background color. The calender is set to autopostback so when I click a highlighted day, I fetch that days event from a database. But when I click the day and the postback occurs the format of the highlited days disapers, it did not help to set  "if not page.ispostback" for the specific dayrender code either. How can I keep my format for the higlighted days that have an event associated to it?

Best Regards 
Brown
Top achievements
Rank 1
 answered on 11 Jan 2011
3 answers
127 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
150 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
790 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
221 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
53 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
129 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
52 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
61 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?