Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
159 views
Hello Team,

I am using Telerik RadEditor  and having Design and HTML as Edit Mode ,but problem is when I select HTML mode , it gets change to Design after postback event.

Could you please help, how can I keep the last selected Edit mode(Design or HTML) after postback event.

Thanks
Afroz Khan
Ianko
Telerik team
 answered on 10 Dec 2014
8 answers
139 views
it seems IE 11 has issues with RadAsyncupload control. it works fine in IE9, but in IE 11 the page typically freezes (yellow dot for upload control) .


<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" MaxFileInputsCount="1" Localization-Select="Browse"
HideFileInput="true" MultipleFileSelection="Disabled" AllowedFileExtensions=".pdf" MaxFileSize="1000000" OnClientValidationFailed="ValidationFailed"/>
Peter Filipov
Telerik team
 answered on 10 Dec 2014
1 answer
131 views
Hi I am trying to use the RadGrid and I keep getting the following Error:

The Controls collection cannot be modified because the control contains code blocks

Any help would be much appreciated.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PluginViewAndDownloadBillData.ascx.cs" Inherits="VIPEnergyClientPortal.Plugins.PluginViewAndDownloadBillData" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<telerik:RadScriptManager ID="sm1" runat="server" EnableTheming="True">
    <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>
    </Scripts>
</telerik:RadScriptManager>

<telerik:RadGrid ID="RadGrid1" runat="server" GroupPanelPosition="Top"
    ResolvedRenderMode="Classic" AllowFilteringByColumn="True"
    DataSourceID="UtilityAccounts">
    <MasterTableView AutoGenerateColumns="False" DataSourceID="UtilityAccounts">
        <Columns>
            <telerik:GridBoundColumn DataField="LocationID"
                DataType="System.Guid"
                FilterControlAltText="Filter LocationID column"
                HeaderText="LocationID" SortExpression="LocationID"
                UniqueName="LocationID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AccountNumber"
                FilterControlAltText="Filter AccountNumber column"
                HeaderText="AccountNumber"
                SortExpression="AccountNumber"
                UniqueName="AccountNumber">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Utility"
                FilterControlAltText="Filter Utility column"
                HeaderText="Utility"
                SortExpression="Utility"
                UniqueName="Utility">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Commodities"
                FilterControlAltText="Filter Commodities column"
                HeaderText="Commodities"
                SortExpression="Commodities"
                UniqueName="Commodities" ReadOnly="True">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

<asp:ObjectDataSource ID="UtilityAccounts" runat="server"
    SelectMethod="UtilityAccountData"
    TypeName="VIPEnergyClientPortal.Plugins.PluginViewAndDownloadBillData">
    <SelectParameters>
        <asp:ControlParameter ControlID="txtAccountNumber" DbType="Guid"
            Name="LocationID" PropertyName="Text" />
    </SelectParameters>
</asp:ObjectDataSource>

<asp:TextBox ID="txtAccountNumber" runat="server" Visible="false"></asp:TextBox>
Viktor Tachev
Telerik team
 answered on 10 Dec 2014
1 answer
134 views
Hi 

Is there any way to achieve this? i would like to have a 'load more' button at the end of the list which posts back to server and then adds more data. 
This needs to be server side and NOT javascript please.

Thanks in advance!

Regards
Sean
Maria Ilieva
Telerik team
 answered on 10 Dec 2014
1 answer
60 views
I am attempting to validate some data in a cell before the datasource of the grid gets modified.

Which event would allow me to inspect this cell after the user has left the cell, but before the datasource is modified?
Viktor Tachev
Telerik team
 answered on 10 Dec 2014
1 answer
124 views
When loading a save grid setting all of the filtering, grouping and sorting is display correctly.  The problem is with the columns that are Checklist list not showing the filter icon as highlight and when you click on the icon the filter checklist items are not checked (loaded through the FilterCheckListItemsRequested event).  Is there a way to highlight the filter icon and check the appropriate items in the list?
Viktor Tachev
Telerik team
 answered on 10 Dec 2014
1 answer
477 views
Hi,

I have a simple page where I create a grid programmatically. I have to put custom column on this grid, so I simulate it in using simple CustomBoundColumn who extend GridBoundColumn.
When I manipulate the grid (paging, filtering, ...), I give this message :

Cannot create column with the specified type name: CustomBoundColumn

Here is my aspx file :

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DynamicGrid.aspx.cs" Inherits="DEmosTelerik.DynamicGrid" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
    <div>
        <asp:PlaceHolder runat="server" ID="PlaceHolder"></asp:PlaceHolder>
    </div>
    </form>
</body>
</html>


And my aspx.cs file :

using System;
using System.Collections.Generic;
 
using Telerik.Web.UI;
 
namespace DEmosTelerik
{
    public partial class DynamicGrid : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RadGrid grid = new RadGrid();
            grid.ID = "grid";
            grid.AllowPaging = true;
            grid.PageSize = 2;
            grid.MasterTableView.AutoGenerateColumns = false;
            grid.EnableViewState = true;
            grid.AllowFilteringByColumn = true;
            grid.PagerStyle.AlwaysVisible = true;
            grid.AllowSorting = true;
            grid.NeedDataSource += Grid_NeedDataSource;
 
            PlaceHolder.Controls.Add(grid);
            if (!IsPostBack)
            {
                CustomBoundColumn boundColumn;
 
                boundColumn = new CustomBoundColumn();
                grid.MasterTableView.Columns.Add(boundColumn);
                boundColumn.DataField = "Numero";
                boundColumn.HeaderText = "Numéro";
 
                boundColumn = new CustomBoundColumn();
                grid.MasterTableView.Columns.Add(boundColumn);
                boundColumn.DataField = "Nom";
                boundColumn.HeaderText = "Nom";
                boundColumn.CurrentFilterFunction = GridKnownFunction.Contains;
                boundColumn.DataFormatString = "<nobr>{0}<nobr>";
                boundColumn.AutoPostBackOnFilter = true;
                boundColumn.ShowFilterIcon = false;
 
                boundColumn = new CustomBoundColumn();
                grid.MasterTableView.Columns.Add(boundColumn);
                boundColumn.DataField = "Prenom";
                boundColumn.HeaderText = "Prénom";
                boundColumn.CurrentFilterFunction = GridKnownFunction.Contains;
                boundColumn.DataFormatString = "<nobr>{0}<nobr>";
                boundColumn.AutoPostBackOnFilter = true;
                boundColumn.ShowFilterIcon = false;
            }
        }
 
        protected void Grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            (sender as RadGrid).DataSource = SearchEleves();
        }
 
        private List<Eleve> SearchEleves()
        {
            List<Eleve> eleves = new List<Eleve>();
            eleves.Add(new Eleve { Numero = 12345, Nom = "Garnier", Prenom = "Francis" });
            eleves.Add(new Eleve { Numero = 1457, Nom = "Caillet", Prenom = "Jonas" });
            eleves.Add(new Eleve { Numero = 5487, Nom = "Delli Gatti", Prenom = "José" });
            eleves.Add(new Eleve { Numero = 8596, Nom = "Stoppani", Prenom = "Alexandre" });
            eleves.Add(new Eleve { Numero = 8529, Nom = "Benoit", Prenom = "Roland" });
            eleves.Add(new Eleve { Numero = 5589, Nom = "Paupe", Prenom = "Daniel" });
            eleves.Add(new Eleve { Numero = 25996, Nom = "Bellanca", Prenom = "David" });
 
            return eleves;
        }
    }
 
    public class Eleve
    {
        public decimal Numero { get; set; }
 
        public string Nom { get; set; }
        public string Prenom { get; set; }
    }
 
    public class CustomBoundColumn : GridBoundColumn
    {
         
    }
}

What is wrong ?


Thank you !
Konstantin Dikov
Telerik team
 answered on 10 Dec 2014
1 answer
310 views
Hi!
I use a RadScheduler in a project but I have a problem on delete appointments.
This is my aspx:

<telerik:RadScheduler ID="RadScheduler1" runat="server" SelectedView="MonthView" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
       Width ="100%" Height="100%" Skin="Web20" DayStartTime="00:00:00" DayEndTime="00:00:00" AllowInsert="true" AllowEdit="false"
        DataKeyField="ID" DataStartField="Start" DataEndField="End" DataSubjectField="Subject" onappointmentinsert="schedular_AppointmentInsert" onappointmentdelete ="schedular_AppointmentDelete" DisplayDeleteConfirmation="false">

and this is my code behind:

protected void schedular_AppointmentDelete(object sender, SchedulerCancelEventArgs e)
        {
        }

When I hit delete button on an appointment, the page refresh and nothing else; the method schedular_AppointmentDelete doesn't fire and so I can't do nothing inside it.
Instead, when I use the insert appointment it works perfectly and I reach my goal.

Here is the code for the insert, that, as I say previously, works:

protected void schedular_AppointmentInsert(object sender, AppointmentInsertEventArgs e)
       {
          
       }

It works also with SchedulerCancelEventArgs.

I' ve tried to change into:

protected void schedular_AppointmentDelete(object sender, AppointmentDeleteEventArgs e)        {                  }

but nothing appens.
Any help would be appreciate.

Thanks in advance.
Bozhidar
Telerik team
 answered on 10 Dec 2014
1 answer
219 views
Radbutton is not displaying properly after clicking. Recently Telerik released an update. After updating locally we're facing this issue. Please find the screen shot in the attachment. Before clicking the button looks fine. It is named as first.png in the attachment. And after clicking the button, we're facing the problem.It is named as second.png in the attachment. Please reply ASAP. It's an production issue.
Danail Vasilev
Telerik team
 answered on 10 Dec 2014
1 answer
150 views
Hello,

I am using your 2014 q3 release for asp.net ajax and on my Rad editot a color picker tool is availabe but there are a lot of EXTRA color available in it which i do not require . How can i limitize these color for example i only want to show White black red green Yellow and Blue colors.

How can i do it?

is there any other way so that only limited color option is given to user. 
Ianko
Telerik team
 answered on 10 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?