Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views

I have two ComboBox comboA and comboB in Grid and initial comboB is disable.
comboB  need to be enabled when comboA has a selected value?
How can I do that without loop through each cell?
Shinu
Top achievements
Rank 2
 answered on 13 Aug 2012
1 answer
316 views
Is there  a way to show RadProgressArea as popup mode?
Princy
Top achievements
Rank 2
 answered on 13 Aug 2012
2 answers
239 views
How to generate an auto-increased number for every record as first column in RadGrid?
Jin
Top achievements
Rank 1
 answered on 13 Aug 2012
3 answers
264 views
I found this sample but how do i remove edit/delete options from this sample?  Thanks!

http://mono.telerik.com/Grid/Examples/DataEditing/AllEditableColumns/DefaultCS.aspx 
Shinu
Top achievements
Rank 2
 answered on 13 Aug 2012
0 answers
194 views
Hi,

I have a RadDatePicker with the following code

<telerik:RadDatePicker ID="rdpDateOfBirth" runat="server" EnableViewState="true" MinDate="1/1/1900" OnKeyUp="keyUp(this, event);">
    <DateInput runat="server" ID="radDateInput" font-size="1.0em" DateFormat="dd-MM-yyyy" MinDate="1/1/1900"</DateInput>
</telerik:RadDatePicker>

where keyUp() is defined as:
function keyUp(sender, e)
{
    e = e || window.event;
 
    if (e.keyCode == 13) {
        var defaultButtons = $('.saveButton');
        if (defaultButtons.length != 0) {
            var btn = defaultButtons[0];
            btn.focus();
            btn.click();
        }
    }
}

The idea is simple, save the value upon hitting the ENTER key.
However, when using IE 8 (yes, only IE but works on Chrome), we get the error as seen in the attached file.

What could be wrong?
We're not setting any SelectedDate property in the button click. I also tried to break point our save button event and the error happens even before the first line is hit. So I'm guessing it's a telerik control problem.


Thanks and regards,

Rafferty
Rafferty
Top achievements
Rank 1
 asked on 13 Aug 2012
5 answers
91 views

Hi,

I have a schedule control that is rendering wide on load in IE9 (See attached).  The scheduler sizes correctly if I resize the browser window after load but gets it wrong on load.

The version is 2012.1.411.35.

How can I get it to render correctly on load?  The scheduler needs to autosize to remaining page space.

Thanks

Gavin.

Here is the code

ASPX

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Scheduler._Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<%@ Register src="AdvancedForm.ascx" tagname="AdvancedForm" tagprefix="scheduler" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
  <title>Schedule</title>
    <link href="css/schedule.css" rel="stylesheet" type="text/css" />
    <link href="css/Teleric1.css" rel="stylesheet" type="text/css" />
    <link href="css/Teleric2.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .RadScheduler .rsAptSubject
        {
            text-align: left;
            padding: 4px 0 1px;
            margin: 0 0 3px;
            font-size: 12px;
            font-weight: bold;
            color: #369;
            height: 17px;
            border-bottom: 1px solid #99DEFD;
            width: 100%;
        }  
        .RadScheduler .rsAdvancedEdit .RadColorPicker label
        {
            text-align: left;
            display: block;
            padding: 0;
        }   
  
    </style>
</head>
<body>
  <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
                <asp:ScriptReference Path="~/AdvancedForm.js"></asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
        <div id="page-wrap">
            <div id="page">
                <div id="menu">
                    menu
                </div>
                <div id="pagecontent">
                    <div style="float:left; width: 2%"> </div>
                    <div style="float:left; width: 98%">
                        <div id="content">
                            <div class="Left">
                                <telerik:RadCalendar ID="RadCalendar1" Runat="server" 
                                    CultureInfo="English (Australia)" EnableMultiSelect="False" SelectedDate="" 
                                    ViewSelectorText="x" AutoPostBack="True" 
                                    onselectionchanged="RadCalendar1_SelectionChanged">
                                    <DayOverStyle CssClass="rcHover"></DayOverStyle>
                                    <FastNavigationStyle CssClass="RadCalendarMonthView RadCalendarMonthView_Default"></FastNavigationStyle>
                                    <DisabledDayStyle CssClass="rcDisabled"></DisabledDayStyle>
                                    <WeekendDayStyle CssClass="rcWeekend"></WeekendDayStyle>
                                    <ViewSelectorStyle CssClass="rcViewSel"></ViewSelectorStyle>
                                    <SelectedDayStyle CssClass="rcSelected"></SelectedDayStyle>
                                    <CalendarTableStyle CssClass="rcMainTable"></CalendarTableStyle>
                                    <OtherMonthDayStyle CssClass="rcOtherMonth"></OtherMonthDayStyle>
                                    <SpecialDays>
                                        <telerik:RadCalendarDay Date="" Repeatable="Today">
                                            <ItemStyle CssClass="rcToday" />
                                        </telerik:RadCalendarDay>
                                    </SpecialDays>
                                    <OutOfRangeDayStyle CssClass="rcOutOfRange"></OutOfRangeDayStyle>
                                </telerik:RadCalendar>
                                  
                            </div>
                            <div class="Right">
                                <telerik:RadScheduler ID="RadScheduler1" runat="server" 
                                    DataEndField="EndDate" 
                                    DataKeyField="id"
                                    DataRecurrenceField="RecurrenceField"
                                    DataRecurrenceParentKeyField="ParentID"
                                    DataStartField="StartDate"
                                    DataSubjectField="Subject"  
                                    onappointmentinsert="RadScheduler1_AppointmentInsert" 
                                    onappointmentupdate="RadScheduler1_AppointmentUpdate" 
                                    onappointmentdelete="RadScheduler1_AppointmentDelete"
                                    GroupBy="Users" Height="600px" MinutesPerRow="15" 
                                    onnavigationcomplete="RadScheduler1_NavigationComplete" 
                                    StartInsertingInAdvancedForm="True">
                                    <ResourceTypes>
                                        <telerik:ResourceType Name="Users" KeyField="id" TextField="name" ForeignKeyField="UserID" />
                                    </ResourceTypes>
                                    <AdvancedForm Modal="true" />
                                    <AdvancedEditTemplate>
                                        <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("Subject") %>'
                                            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
                                            RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' UserID='<%# Bind("Users") %>'
                                             />
                                    </AdvancedEditTemplate>
                                    <TimelineView UserSelectable="False" />
                                    <AdvancedInsertTemplate>
                                        <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert" Subject='<%# Bind("Subject") %>'
                                            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' 
                                            RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' UserID='<%# Bind("Users") %>'
                                             />
                                    </AdvancedInsertTemplate>
                                </telerik:RadScheduler>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
  </form>
</body>
</html>

CSS

body
{
    font: 12px/16px Tahoma;
    margin: 3px;
}
#page-wrap
{
    width: 100%;
    min-width: 1261px;
    min-height: 667px;
    height: auto;
}
#page
{
    height: auto;
    min-height: 667px;
    min-width: 1261px;
}
  
#menu
{
    float: left;
    width: 179px;
    min-height: 667px;
    height: auto;
}
  
#pagecontent
{
    float: left;
    width: auto;
    min-width: 1051px;
    min-height: 667px;
    height: auto;
    border-left: solid 1px #338c26;
}
  
#content
{
    width: auto;
    min-width: 1051px;
}
  
#content .Left
{
    float: left;
    width: 225px;
      
}
  
#content .Right
{
      
}
  
.clear
{
    clear: both;
}

Gavin
Top achievements
Rank 1
 answered on 13 Aug 2012
1 answer
172 views

Hi,

I just made a new Visual Studio 2010 SharePoint project, and I want to be able to use the Telerik controls installed on the computer in my web parts.

The problem is that they aren't showing up in the toolbox.  When I start a tag as "<tel", usually IntelliSense prefills "<telerik:AccessibleRadEditor" but in this solution it doesn't have any results for "<tel".  I thought I had just forgot to include the controls, so I added  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
to the markup.  Still I cannot access the controls.

When I open the ToolBox, they are missing from there, also.

How can I get the controls to appear for this solution?  They still appear for other Visual Studio solutions when I open those...

Andrey
Telerik team
 answered on 12 Aug 2012
2 answers
187 views
Hello, Telerik team, I have a question.

For a lot of hours I've tried to solve my problem. I want to export the data source of a RadGrid to a file on the server.

RadGrid1.MasterTableView.ExportToPdf()

exports the Pdf file and sends it to the client side. I would like to store my file on server side. I'm using ASP.NET with Visual Basic.

Thank you in advance for any help.

Best regards,
Lajos Árpád.
Lajos
Top achievements
Rank 1
 answered on 12 Aug 2012
2 answers
226 views

do you have any ideas?  below is my code.
Thanks!


Jayesh Goyani
Top achievements
Rank 2
 answered on 12 Aug 2012
1 answer
82 views
I have a radscheduler on a webform and have this code.  It is probably something really stupid that I can't see so here goes.

I have a table of users and schedules.  The users have a named colour stored in the table.

What I am try to achieve?

I am tried to get all the schedules for the users and make their appointments show up in the specified colour stored in the database.

I have a small issue of retaining the correct colour as all the other colours are overwritten by the last loop.

Example.

User1 -----  Red
User2 -----  Blue

When the Schedule is rendered all the items are blue.  Is there a way around this?  Or am I making a schoolboy error?  I hnave already tried the same code on AppointmentOnDataBound

protected void EngSchedule_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)
       {
           DataTable table = PageAccess.GetEngSchedule();
           
           foreach (DataRow dataRow in table.Rows)
           {
               var c = dataRow["Colour"].ToString();  //first colour Red, second colour Blue
               e.Appointment.BackColor = Color.FromName(c); // Appointments always blue WHY??
           }
       }

Can someone please tell me why the second colour overwrites the first colour
Simon
Top achievements
Rank 1
 answered on 12 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?