Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
I had a RadScheduler in place and working under version 2011.3.1115.40 , upgraded to 2013.3.1015.40 and now the control has stopped working. Specifically, when I click  the recurrence checkbox, the associated panel does not open.

I'm getting a JS error when opening the page that is indicating that there are problems in the "AdvancedForm.js" file. The get_element() call is failing.

if ($telerik.isIE) {
    var textarea = this._getSubjectTextBox().get_element();
    textarea.style.cssText = textarea.style.cssText;
}


  Is there an ungraded version of the file I should be using with 2013.3.1015.40 ?

Boyan Dimitrov
Telerik team
 answered on 04 Nov 2013
1 answer
86 views
Hello, Telerik Team.

I would like to merge Saturday and Sunday cell and appointments

Does support any property or function?

thank you.
Boyan Dimitrov
Telerik team
 answered on 04 Nov 2013
2 answers
200 views
Hi,

I'm trying to add a CheckBox to the Edit and Insert forms. I've added a usercontrol AdvancedForm.ascx

<%@ Register TagPrefix="scheduler" TagName="AdvancedForm" Src="AdvancedForm.ascx" %>

<AdvancedEditTemplate>
                    <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("Subject") %>'
                         Description='<%# Bind("Description") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' AllUsers='<%# Bind("AllUsers") %>'/>
               </AdvancedEditTemplate>
               <AdvancedInsertTemplate>
                    <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert" Subject='<%# Bind("Subject") %>'
                         Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' Description='<%# Bind("Description") %>' AllUsers='<%# Bind("AllUsers") %>'  />
               </AdvancedInsertTemplate>


And in the AdvancedForm.aspx, I've added this code

   <asp:CheckBox ID="cboxAllUsers" runat="server" Text="All Users" />

   
[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
     public bool AllUsers
     {
         get
         {
             return cboxAllUsers.Checked;
         }
 
         set
         {
             cboxAllUsers.Checked = value;
         }
     }

I'm getting this error 

DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'AllUsers'.


How do I fix this error?


Thanks!
Boyan Dimitrov
Telerik team
 answered on 04 Nov 2013
7 answers
321 views
Hello

Can someone suggest a server side approch to closing a docked and or expanded sliding pane?

Setting the expandid id or the docked id to a non existant panel did not work.

Kyle
Vessy
Telerik team
 answered on 04 Nov 2013
1 answer
97 views
Hello.

I have a scenario where I need to draw a RED line as an upper marker like in this example.
http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/staticitems/defaultcs.aspx

The line itself is no problem, but can I change the color when making the series programically?
Marin Bratanov
Telerik team
 answered on 04 Nov 2013
1 answer
187 views
A co-worker gave me a modified version of a file and now I can't get the project to compile in Visual Stuio.  As far as I know, we're both using the same source code.  I tried copying the Telerik .dll files from the server (where the code is working) and referencing those files, but I am still getting the same error.  The version of my Telerik .dll files is 2012.1.215.40.  Can you help me with this?

The errors I am getting are

Type 'Telerik.Web.UI.GridPagerStyle' does not have a public property named 'PageSizeControlType'.

Content ('</PagerStyle>') does not match any properties within a 'Telerik.Web.UI.GridTableView', make sure it is well-formed.


The error is from this line:
<PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>

If I comment out that line, I get a whole host of other error messages that are similar (Telerik.XXX does not have a public property named YYY).
Milena
Telerik team
 answered on 04 Nov 2013
2 answers
91 views
I am using ASP.NET C# for my RadGrid and cannot get sorting to work. I have tried a couple of different ways to do it that I have found on this site, and some code from other sites, but the grid remains sorted the default way each time I try. Someone please help!

<telerik:RadGrid runat="server" ID="radProductsGrid" Skin="Default" AllowSorting="true" AllowPaging="true"
 OnSortCommand="radProductsGrid_SortCommand" OnNeedDataSource="radProductsGrid_NeedDataSource"
 AutoGenerateColumns= "false"  GridLines="None" ShowGroupPanel="false" PageSize="100">
 <MasterTableView Width="100%" AllowMultiColumnSorting="false" AllowNaturalSort="false"
  AllowCustomSorting="true" AllowSorting="true" AutoGenerateColumns="false">
  <Columns>
    <telerik:GridBoundColumn ReadOnly="true" AllowFiltering="true" SortExpression="ItemNumber"
      DataField="ItemNumber" HeaderText="Item Number" UniqueName="ItemNumber">
    </telerik:GridBoundColumn>     
    <telerik:GridBoundColumn ReadOnly="true" AllowFiltering="true" SortExpression="ProductName"
      DataField="ProductName" HeaderText="Product Name" UniqueName="ProductName">
    </telerik:GridBoundColumn>
    <telerik:GridBoundColumn ReadOnly="true" AllowFiltering="true" SortExpression="CategoryName"
      DataField="CategoryName" HeaderText="Category Name" UniqueName="CategoryName">
    </telerik:GridBoundColumn>
  </Columns>
 </MasterTableView>
</telerik:RadGrid>
 
 
 
protected void radProductsGrid_SortCommand(object sender, GridSortCommandEventArgs e)
        {
            GridTableView tableView = e.Item.OwnerTableView;
            if (e.SortExpression == "ItemNumber")
            {
                e.Canceled = true;
                GridSortExpression expression = new GridSortExpression();
                expression.FieldName = "ItemNumber";
                if (tableView.SortExpressions.Count == 0 || tableView.SortExpressions[0].FieldName
                        != "ItemNumber")
                {
                    expression.SortOrder = GridSortOrder.Descending;
                }
                else if (tableView.SortExpressions[0].SortOrder == GridSortOrder.Descending)
                {
                    expression.SortOrder = GridSortOrder.Ascending;
                }
                else if (tableView.SortExpressions[0].SortOrder == GridSortOrder.Ascending)
                {
                    expression.SortOrder = GridSortOrder.None;
                }
                tableView.SortExpressions.AddSortExpression(expression);
                tableView.Rebind();
            }
        }


Maria Ilieva
Telerik team
 answered on 04 Nov 2013
2 answers
469 views
Can some one please tell me the upper limit for number of data columns in a telerik datagrid ? I know if I have more than 255 then export to excel wouldn't work. Just wanted to know how many does the data grid allows if I dont plan on using export features.
Konstantin Dikov
Telerik team
 answered on 04 Nov 2013
1 answer
101 views
Hi Telerik

I want to export the RadOrgChart data into a .pdf file. Can somebody guide me how to deal with this?

Thanks in advance
Saira
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2013
11 answers
732 views
As a developer, you need to consider the various time zones which your users are located on.

Some countries use the Daylight saving time (DST) /summer time/ which is the practice of advancing or adjusting backward clocks one hour near the start of a temperate mid-season (spring or autumn). Unfortunately, this adjusting is error-prone to software components and leads to unwanted behavior when using a RadDatePicker.

For instance, let’s assume that you have a web site for renting out various halls or principal rooms for meetings and social affairs, and you use a RadDatePicker to schedule the event date. I am a user from Brazil and with meu amor decided our wedding date to be on October the 20th. However, every time I select this date, the picker re-selects it to be the 19th. I contact you, the web administrator, and ask you “Does destiny want to prevent me from making a big mistake or is this a bug? What is happening, amigo?”

Here is the explanation:

Most probably, I have a Brazilian culture set on my computer:

As noticed in the image, the clocks will be advanced by 1 hour on that date. And since the RadDatePicker takes the zero hour by default, it is actually still on the previous day, because the 20th starts at 01:00 o’clock. To work around this issue, you can use the client side events of the picker:

<telerik:RadDatePicker ID="RadDatePicker1" runat="server">
    <DateInput runat="server">
        <ClientEvents OnValueChanging="valueChanging" OnValueChanged="valueChanged" />
    </DateInput>
</telerik:RadDatePicker>
JavaScript:
var selectedValue = null;
var isDST = false;
function valueChanging(sender, args) {
    if (isDST) {
        args.set_newValue(selectedValue + " 01:00 AM");
        isDST = false;
    }
    selectedValue = args.get_newValue();
}
function valueChanged(sender, args) {
    if (selectedValue) {
        if (selectedValue.indexOf(args.get_newValue()) < 0) {
            isDST = true;
            sender.get_owner().set_selectedDate(); // used only to trigger selecting event
        }
    }
}

If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Kostadin
Telerik team
 answered on 04 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?