Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
I am having a radtreeview with checkboxes. I have around 5000 nodes. Now the check and uncheck works fine with enter key and mouse click. It also works with spacebar key. But when there is a scrollbar in the treeview the treeview is scrolling down on pressing spacebar key. Is this a default behavior, and any ways we can supress this.
Bozhidar
Telerik team
 answered on 27 Feb 2012
3 answers
121 views
Hello,
I need to show a horizontal stackedbar RadChart for several (say, 2) series, each series has one item and with some  limitations for min and max values. I insert below a page with some simple code and attach 2 images. As you can see if orientation is vertical that all is perfect. But when I change orientation to horizontal one I get some exccessive bar after the last bar. Is it a bug ? How can I fix that? I use Q2 2010 version in this project. May be it is fixed in more latest versions?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Stackbar2.aspx.cs" Inherits="Stackbar2" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Charting" tagprefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadChart ID="RadChart1" runat="server" DefaultType="StackedBar"
            SeriesOrientation="Vertical">
             
            <Series>
                <telerik:ChartSeries Name="Series 1" Type="StackedBar">
                    <Items>
                        <telerik:ChartSeriesItem Name="Item 1" YValue="190">
                        </telerik:ChartSeriesItem>
                    </Items>
                </telerik:ChartSeries>
                <telerik:ChartSeries Name="Series 2" Type="StackedBar">
                    <Items>
                        <telerik:ChartSeriesItem Name="Item 1" YValue="100" >
                        </telerik:ChartSeriesItem>
                    </Items>
                </telerik:ChartSeries>
            </Series>
       
        </telerik:RadChart>
        <br />
         
        <asp:Label ID="lblChartOrientation" runat="server" Text="Series orientation:" />
<asp:RadioButtonList AutoPostBack="true" ID="OrientationList" runat="server" OnSelectedIndexChanged="OrientationList_SelectedIndexChanged">
<asp:ListItem Text="Horizontal" Value="Horizontal" />
<asp:ListItem Text="Vertical" Value="Vertical" Selected="True" />
</asp:RadioButtonList>
    </div>
    </form>
    </body>
    </html>
        
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Charting;
using System.Drawing;
 
public partial class Stackbar2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        Settings();
    }
    private void Settings()
    {
        ChartSeriesCollection coll = RadChart1.Series;
        for (int i = 0; i < coll.Count; i++)
        {
 
        }
 
       double yMin=110;
        double yMax=400;
        double step = 50;
        RadChart1.PlotArea.YAxis.AddRange(yMin, yMax, step);
        RadChart1.PlotArea.YAxis.AutoScale = false;
    }
 
    protected void OrientationList_SelectedIndexChanged(object sender, EventArgs e)
    {
        RadChart1.SeriesOrientation = (ChartSeriesOrientation)Enum.Parse(typeof(ChartSeriesOrientation), OrientationList.SelectedValue);
    }
 
}

Giuseppe
Telerik team
 answered on 27 Feb 2012
1 answer
44 views
Sir;

Can we use telerik ajax control to develop application that runs on mobile browsers.
i had created a sample application in which i use simple asp button and a telerik button. and redirected to another page on both button clicks. Asp button click works on mobile browser button telerik button does not works on mobile browser.

Please clear as soon as possible.

Regards
raman singla
Slav
Telerik team
 answered on 27 Feb 2012
1 answer
75 views
Hello,

We are using the Telerik Rad Controls for ASP.Net suite and have used the RadSpell control in a few places in our application.  We are finding some issues, however, when the dialog displays that it will hide the word which is in error by scrolling beyond the word.  This appears NOT to occur in IE 8 but does occur in Safari, Chrome and Firefox. 

I have attached a screen shot showing the behavior.  In this example the misspelled word "MPN" is being detected as erroneous by RadSpell.  However, the "not in dictionary" dialog is scrolled farther than expected effectively blocking the misspelled word.  The user would have to scroll up to actually see the error. 

This spell checker is attached to a RadEditor which accepts HTML.  When I copy the content of the editor to NotePad and clear the HTML and try to spell check again, the word is highlighted properly.

It looks like RadSpell isn't able to scroll to the proper word depending on the content.  I'm not sure why it tries to scroll down at all becuase in IE it is always scrolled to the top where the misspelled word is.

Please advise.
Rumen
Telerik team
 answered on 27 Feb 2012
2 answers
139 views
I was not able to set the auto height alignment for Custom appointment in the RadScheduler.

In my scenario,

1. I'm Using  Telerik AJAX UI Q2 2011 and Dot.net 4.0 Framework. (i'm not in any position to this configuration)
2. I'm using Custom Appointment Template (Height 90px x Width 130px) and it must show without any freezing/shrink as exact dimension.
3. I want to have Dynamic Cell alignment in scheduler hence i don't want to set the row height and column width in the scheduler control when i bind datasource. B'coz If i set these values RowHeight="90" ColumnWidth="130" all the cells allotted with the same dimension. Here if i have no events on particular hours i don't want to see that cell has more space. please refer screenshot for more information.
4. Here i give you the code i used. Almost we have using this scheduler only to show events/appointments, we don't need to create appointments and any other edit modal functionality (just read only functionality)
<telerik:RadScheduler runat="server" ID="eventCalendar" Skin="Web20" ShowAllDayRow="false" RowHeight="90"
                        ColumnWidth="130" DayView-ShowResourceHeaders="false"
                        AllowDelete="false" AllowInsert="false" AllowEdit="false" AdvancedForm-Modal="false"  
                        AdvancedForm-Enabled="false" AppointmentStyleMode="Auto" DayView-ReadOnly="true"
                        WeekView-ReadOnly="true" MonthView-ReadOnly="true" TimelineView-ReadOnly="true" OnNavigationComplete="SchedulerNavigating"
                        ReadOnly="true" Height="600px" Width="775px" OverflowBehavior="Expand" CustomAttributeNames="DisplayStartTime,EventRecurrenceId, EventColor, DisplayEndTime,
                        StartDate,EndDate,DisplayPermitName,DisplayFacilityVisibility,DisplayDayViewGroupOrder,
                        DisplayClientVisibility,DisplayResourceVisibility,Id, EventColor
                        IsEditableEvent,DisplayCalendarTime,IsHoliday,IsRecurrence,ExpectedAttendance"
                        DataStartField="StartDate" EnableDatePicker="true"
                        EnableEmbeddedSkins="true" DataDescriptionField="EventColor" MonthView-GroupingDirection="Horizontal"
                        DataEndField="EndDate" DataKeyField="Id" DataRecurrenceParentKeyField="EventRecurrenceId"  WeekView-EnableExactTimeRendering="true"
                        DayView-ShowHoursColumn="true" DataRecurrenceField="EventRecurrenceId" FirstDayOfWeek="Sunday"
                        LastDayOfWeek="Saturday" DataSubjectField="DisplayPermitName"
                        WeekView-GroupingDirection="Horizontal" OnAppointmentDataBound="eventCalendar_AppointmentDataBound" >
                        <ExportSettings OpenInNewWindow="true" FileName="SchedulerExport">
                            <Pdf PageTitle="Schedule" Author="Telerik" Creator="Telerik" Title="Schedule" />
                        </ExportSettings>
                        <%--<ResourceTypes>
                            <telerik:ResourceType AllowMultipleValues="true" KeyField="DisplayResourceName" Name="Resource" TextField="DisplayResourceName" ForeignKeyField="DisplayResourceName" />
                        </ResourceTypes>--%>
                        <%--TimelineView-NumberOfSlots="7"--%>
                        <%--daystarttime="08:00:00" dayendtime="23:00:00"  DayStartTime="08:00:00" DayEndTime="18:00:00"--%>
                        <AppointmentTemplate>
                            <asp:Panel ID="appPanel" runat="server" Width="130" Height="130" style="min-heightL: 120px;">
                                <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
                                    <tr>
                                        <td id="divColorChange" runat="server" style="width: 5px; min-width: 5px; max-width: 10px !important;">
                                            <div width="100%">
                                                &nbsp;
                                            </div>
                                        </td>
                                        <td id="divApp" runat="server">
                                            <%--CustomAttributeNames="StartTime,EndTime,SessionDate,DisplayPermitName,StartDate,DisplayClientVisibility,DisplayResourceVisibility,DisplayFacilityVisibility,EndDate,ID,DisplayPermitVisibility,DisplayFacilityName,DisplayResourceName,DisplayClientName,Event_ID,DisplayRoomNumber"--%>
                                            <div class="AlignCenter">
                                                <p style="width: 95%">
                                                    <asp:Image ID="imageRecurrenceIcon" runat="server" Visible='<%# Convert.ToBoolean(Eval("IsRecurrence")) %>' style="float: right;"
                                                        ImageUrl="~/Images/Recurrence_icon.png" />
                                                    <asp:LinkButton runat="server" ID="lblDisplayPermitName" Visible='<%# Convert.ToBoolean(Eval("IsEditableEvent")) %>'
                                                        OnClick="RedirectToEventMaintenance" Style="font-weight: bold; color: Black; word-wrap: break-word; font-size: 10px;"  CommandArgument='<%# Eval("Id") + "~" + Eval("StartDate")%>'>
                                                                    <%# Eval("DisplayPermitName")%>
                                                    </asp:LinkButton>
                                                    <asp:Label ID="labelPermitName" Visible='<%# !Convert.ToBoolean(Eval("IsEditableEvent")) %>'
                                                    Style="font-weight: bold; color: Black; word-wrap: width: 100%; break-word; font-size: 10px;"
                                                    runat="server" Text='<%# Eval("DisplayPermitName")%>' CssClass="FontBold"></asp:Label>
                                                </p>
                                                <p style="width: 95%">
                                                    <asp:Label runat="server" ID="lblStartTime" Style="font-weight: normal; word-wrap: break-word;
                                                    color: Black; font-size: 9px; text-align: left; float: left;">
                                                    <%# Eval("DisplayCalendarTime")%></asp:Label>
                                                </p>
                                                <p style="width: 95%">
                                                    <asp:Label runat="server" ID="lblDisplayClientTypeName" Style="font-weight: normal;
                                                        word-wrap: break-word; color: Black; font-size: 9px; width: 100%; text-align: left;
                                                        float: left;" Visible='<%# Convert.ToBoolean(Eval("DisplayClientVisibility")) %>'>
                                                        <%# Eval("DisplayClientName")%>
                                                    </asp:Label>
                                                </p>
                                                <p style="width: 95%">
                                                    <asp:Label runat="server" ID="lblDisplayFacilityName" Style="font-weight: normal;
                                                    color: Black; font-size: 9px; word-wrap: break-word; width: 100%; float: left;
                                                    float: left; text-align: left; float: left;" Visible='<%# Convert.ToBoolean(Eval("DisplayFacilityVisibility")) %>'>
                                                            <%# Eval("DisplayFacilityname")%>
                                                    </asp:Label>
                                                </p>
                                                <p style="width: 95%">
                                                    <asp:Label runat="server" ID="lblDisplayResourceName" Style="font-weight: normal;
                                                        color: Black; font-size: 9px; word-wrap: break-word; width: 100%; text-align: left;
                                                        float: left;">
                                                        <%# Eval("DisplayResourceName")%>
                                                    </asp:Label>
                                                </p>
                                                <p style="width: 95%">
                                                    <asp:LinkButton ID="linkButtonMore" Visible='<%# !Convert.ToBoolean(Eval("IsHoliday")) %>'
                                                    Style="font-weight: bold; color: Black; font-size: 9px; text-align: left; float: left;" runat="server"
                                                    OnClientClick="javascript:return false;" Text="More"></asp:LinkButton>
                                                </p>
                                                <asp:HiddenField ID="hiddenFieldIsEditable" runat="server" Value='<%# Eval("DisplayIsEditableEvent")%>' />
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </AppointmentTemplate>
                    </telerik:RadScheduler>

5. All i want is in Day View mode, if any hours not utilized for any events, it supposed to not occupy any space, but still i want to show the hours timeline (my client preferred to show working hours even there is no events to show).
6. I was not able to attach my style sheet here, but really i am sure they didn't create any impact on this issue. If still it required let me know i will send in an email.
7. Actually i need a solution as similar to this issue http://www.telerik.com/community/forums/aspnet-ajax/scheduler/timeline-view-vertical-header-does-not-line-up-with-appoints.aspx


Thanks,
Ilayaraja





Plamen
Telerik team
 answered on 27 Feb 2012
1 answer
85 views
I'm trying to execute a spell check from a textbox within a ListView whenever the user submits a new record. 
Is this even possible?  My code is as follows:

    Private Sub lvStrengths_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewInsertEventArgs) Handles lvStrengths.ItemInserting
        Dim item As ListViewItem = lvStrengths.InsertItem
        Dim tb As TextBox = item.FindControl("tbStrengths")
        Dim rsc As RadSpell = item.FindControl("rscStrengths")
        odsStrengths.InsertParameters(0).DefaultValue = _RptNum
        odsStrengths.InsertParameters(1).DefaultValue = tb.Text
        rsc.ControlToCheck = tb.Text
        rsc.ButtonType = ButtonType.None

    End Sub

Thanks very much!

Rumen
Telerik team
 answered on 27 Feb 2012
5 answers
418 views
Is there a way to change the Day view to have 15 minute increments on the hours panel, instead of hours?

My customer is the dental staff who usually triple or quadruple book clients for the same time periods such as 8 to 9:30am. Neither the Timeline or Day view options are giving them finite enough of a view to determine bookings without opening each one. If there were an option to expand the Day view hours panel to break out each 15 minute period this would be incredibly helpful.

Is there a way to do this, or could this feature be added in an upcoming release?

Thanks!
Peter
Telerik team
 answered on 27 Feb 2012
5 answers
250 views
Hi,

We are considering using RadScheduler for a new project and we have one question.

Is it possible to have more frequent labels for time (right side), so it would show 8:15am, 8:30am, 8:45am, 9am instead of 8am, 9am, 10am. Even 30minute intervals would be better.

Thanks,
Daryl
Peter
Telerik team
 answered on 27 Feb 2012
1 answer
55 views
For some reason I am unable to view the all day appointments in the Timeline View. Does scheduler support this functionality? If yes, what could be the problem? Thanks
Plamen
Telerik team
 answered on 27 Feb 2012
1 answer
48 views
Hello

         I'm quite new to ASP.net . I need help in displaying "Room" in header (horizontal) in RadScheduler..I've attached a pic for reference.

As you can see in the pic, when I select Location A from DropDownList/ComboBox , I need to display the rooms available in Location A (for eg Room A , Room B...etc) when I change the location to B, its room should be displayed in RadScheduler.

How can I achieve this ?

Thank you

Plamen
Telerik team
 answered on 27 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?