Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
149 views
Hi!

I can add AppointmentContextMenus rows programmatically like this:

foreach (Resource resourceUser in RadScheduler1.Resources.GetResourcesByType("Employee"))
{
    string availEmployee = resourceUser.Text;
    RadMenuItem resourceItem = new RadMenuItem(availEmployee);
    resourceItem.Attributes["Key"] = resourceUser.Key.ToString();
    resourceItem.Value = "CommandAddAppointment";
    resourceItem.ImageUrl = "/i/Toolbar/Custom/personal.png";
    RadScheduler1.AppointmentContextMenus[0].Items.Add(resourceItem);
}

How can I put them into a submenu?
See my attached picture (a screen dump from Telerik Context Menu Demo), I want my list of employees to end up inside the "Categorize" menurow.

I'm using v.2011.2.915.40

Sincerely, Thomas
Thomas
Top achievements
Rank 1
 answered on 20 Oct 2011
2 answers
404 views
hi,
I added multiple file and I unable to get full file path in server side using RadAsyncUpload.
Its one of my urgent requirement Please help me on this.


Thanks & Regards
Manikandan Kumar
Dimitar Terziev
Telerik team
 answered on 20 Oct 2011
1 answer
144 views
Hello,

I have small question...

I have 4 appointments, all at the same time (from-, to-, hours), one slot.

What is the key to sorting these appointments in RadSchedulers or how I can it set up?

Thanks!
Lukasz Kalbarczyk
Top achievements
Rank 1
 answered on 20 Oct 2011
3 answers
157 views
As the thread title suggest when I have the AutoResizeHeight="true" property set on a RadEditor field and press the toggle full screen mode with content's height that exceeds the height of the screen, the scroll on the RadEditor does not appear.
If i do not have this property set the full screen works correctly. I can also replicate this on the online demo here

http://demos.telerik.com/aspnet-ajax/editor/examples/autoresizeheight/defaultcs.aspx

Any assistance would be appreciated.

 

Rumen
Telerik team
 answered on 20 Oct 2011
10 answers
216 views
Hello,
when I click on button "Nuovo"  and then on checkbox "Attiva", nothing happens.
 
URL
http://www.swistel.ch/gestione/liste_distribuzione.aspx
 
DLL VERSION
14.1.2010
 
I would like to use my dll version without making an upgrade.
 
Thank you
 
Alberto
AB
Top achievements
Rank 1
 answered on 20 Oct 2011
0 answers
174 views
Hi,

I have a problem with the tabindex property.
Attached a screen-shot of a sample form which is based on the demo http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx (But with addional field that are not related to the RadGrid control and colored in Green).
I need set the tabindex attribute for all fields in the user control (Colored in Red), so clicking on the tab key in the keyboard won't move the cursor out of the user control.

By the way all fields out of the RadGrid control has thier own tabindex property, so I want to create a two tabindex groups:
1) Fields out of the RadGrid control.
2) Fields inside the user control edit form.

It is possible?
Please, I need your help in order to solve the a bove problem.

Regards,
Bader
Bader
Top achievements
Rank 1
 asked on 20 Oct 2011
3 answers
144 views
I have 2 RadDateTimePicker controls on the page and after user changes time on the first control I want to set another control to display time shown in 1st control (and plus 30 minutes). I've tried using <ClientEvents OnDateSelected="changeEndDate" /> and this javascript but it does not seem to work. Both controls are located inside of an AdvancedInsertTemplate of RadScheduler. 

function changeEndDate(sender, eventArgs) {
      var endDate = $telerik.$("[id$='EndInput']");
      var newDate = eventArgs.get_newValue();
      endDate.set_selectedDate(newDate);
}

What am I doing wrong? Thanks
Maria Ilieva
Telerik team
 answered on 20 Oct 2011
3 answers
137 views
Howdy,

I seem to be stuck on something that is prolly simple. I am using the RadRotator and want to show a series of images in a specific order. For example: an image that says Step 1, followed by an image that says Step 2, followed by an image that says Step 3. If I am on Step 1's image and I hit the previous button, Step 3's image should appear. I currently override the control buttons and use my own Left and Right button. If I use XML and load all the images from XML everything works fine.

However, I now need to be able to add dozens of steps and I don't want the user to wait for all the images to download. So I want to switch to the Load on Demand pattern. I have a web service method that creates the RadRotatorItemData on the fly and is working but not in the way I want. I am using the itemIndex parameter to determine what the next image that needs to be built is. However, since I don't know which direction the user is going (Left or Right) I build the wrong image if the user goes Left.

What I don't see in the documentation is how to specify how many items get created on demand and what the scope of those new items should be (ie. Steps 1 - 5 or Steps 15 - 20), The demo is loading 5 items at a time, but I don't see how that is configured. Also, if I have loaded the first 5, and I need the 2nd 5 items, how do I tell the web service method what batch of 5 I need, since I can only pass in the itemIndex parameter. And if my current index is 0, and the user clicks on the Left button, I need to load the last five steps (which may be Steps 18 - 23).

In summation, I want this slideshow demo merged with the Load on Demand functionality.

Hope this makes sense...

Thanks,
Seth
Slav
Telerik team
 answered on 20 Oct 2011
1 answer
97 views
In the online demos, there is a nice demonstration of how to use client-side binding with page methods.  However, I would like to take this a step further and use a WCF service to provide the data and call the service methods via jQuery.  Is there an article or a post that shows me how to accomplish this or how to move from the aforementioned sample code to code that I am trying to put together?
Iana Tsolova
Telerik team
 answered on 20 Oct 2011
1 answer
229 views
Hi,

I'm very new to Telerik controls. Today I tried to get RadAjaxPanel to postback part of the page but cound't get it to do so. Can anyone please indicate what I am doing wrong. For the sake of simplicity I've added some text to the top of the page so as to make the page refresh more visible.

Below is the code using controls that come with .NET

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <script runat="server">
        protected void ReadOnly_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ReadOnly.SelectedItem.Value == "Yes")
                Details.ReadOnly = false;
            else
            {
                Details.Text = "";
                Details.ReadOnly = true;
            }
        }
    </script>
    <title></title>
</head>
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
    <form id="Form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        Read Only:
        <asp:DropDownList ID="ReadOnly" runat="server" OnSelectedIndexChanged="ReadOnly_SelectedIndexChanged"
            AutoPostBack="True">
            <asp:ListItem Selected="True">No</asp:ListItem>
            <asp:ListItem>Yes</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        Details:
        <asp:TextBox ID="Details" runat="server" Columns="60" Rows="5" TextMode="MultiLine"
            ReadOnly="True"></asp:TextBox>
</ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>

What follows is the Telerik equivalent that isn't working.

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RadAjaxPanel2.EnableAJAX = false;
            }
        }
 
        protected void ReadOnly_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ReadOnly.SelectedItem.Value == "Yes")
                Details.ReadOnly = false;
            else
            {
                Details.Text = "";
                Details.ReadOnly = true;
            }
        }
    </script>
    <title></title>
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
    <form id="Form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        Read Only:
        <asp:DropDownList ID="ReadOnly" runat="server" OnSelectedIndexChanged="ReadOnly_SelectedIndexChanged"
            AutoPostBack="True">
            <asp:ListItem Selected="True">No</asp:ListItem>
            <asp:ListItem>Yes</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        Details:
        <asp:TextBox ID="Details" runat="server" Columns="60" Rows="5" TextMode="MultiLine"
            ReadOnly="True"></asp:TextBox>
    </telerik:RadAjaxPanel>
    </form>
</body>
</html>
Iana Tsolova
Telerik team
 answered on 20 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?