Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
338 views
Hello Telerik Team,
Rad Editor Not Working Design mode in IE9
but its working in HTML mode when i check in debug mode
i observe that it didnt rendering the (HTML,head,body text-area )
in its frame
<telerik:RadEditor  ExternalDialogsPath="~/UserControls/EditorDialogs/" NewLineBr="False" runat="server" ID="txtRadEditor" CssClass="emailBody RadEditorOverride"
                           SkinID="DefaultSetOfTools" Width="410" Height="435" EnableResize="false" EditModes="All"
                           ToolsFile="~/UserControls/Fippex/EditorTemplate/CustomToolFile.xml">
                           <ImageManager MaxUploadFileSize="2097152" />
                           <Content></Content>
                           <CssFiles>
                               <telerik:EditorCssFile Value="~/Style/editor.css" />
                           </CssFiles>
                       </telerik:RadEditor>

Please Help me with this out As Soon As Possible
Regards
Steve
Top achievements
Rank 1
 answered on 27 Feb 2012
1 answer
133 views
Hi, is it possible to pick a color from a picture, instead from a palette. Or pick a color from anywhere in the browser. Thanks, Henry
Richard
Top achievements
Rank 1
 answered on 27 Feb 2012
1 answer
131 views
Hi,

I have RadGrid with AllowMultiRowSelection is true.

i.e. AllowMultiRowSelection="true"

But due to this we are not able to select any cell for copy / paste option.

Once we set AllowMultiRowSelection="false", it work fine for selection.

Please let us know to solution for the same.

Regards,
Shirish
Richard
Top achievements
Rank 1
 answered on 27 Feb 2012
1 answer
143 views
Hi,

I am new to telerik, please help me.

I want to reset my radfilter using following script

rfGridFilter.RootGroup.Expressions.Clear();
rfGridFilter.RecreateControl();

Above code runs well in other place in my page instead of page_load.
actually I got new requirement for my project that user can change the profile by selecting new profile in rad combo box profile list.
To accomplice this I am creating radgrid dynamically on page_init and doing datasetup() method on page_load for grid binding when page first time load or when user change profile.

My problem is that when user change profile I want to reset(clear radfilter) filter and after that I am calling datasetup method.
But my radgrid is still using previous filter expression while I am clearing my radfilter using above code.
I don't know where I am doing wrong. While above code runs well in other place This is creating problem when I am calling this before datasetup.
Please help me. Thanx in advance!!!
I am listing other code that I am using.

On page_init

//grid creation dynamic code

            // Main Grid Config & Code
            rgModuleGrid = new RadGrid();
            rgModuleGrid.ID = "rgModuleGrid";

            rgModuleGrid.ItemCreated += rgModuleGrid_ItemCreated;
            rgModuleGrid.ItemCommand += rgModuleGrid_ItemCommand;
            rgModuleGrid.PreRender += rgModuleGrid_PreRender;
            
            rgModuleGridSetup(profileId);//set all the grid properties and configuraion for mastertable view and clientsettings
            GridPlaceHolder.Controls.Add(rgModuleGrid);

On Page_load
////for clear radfilter when profile changes
if (Convert.ToInt32(ViewState["profileId"]) != profileId && IsPostBack)
                {                                        
                    rfGridFilter.RootGroup.Expressions.Clear();
                    rfGridFilter.RecreateControl();

                    DataSetup();
                }
                else
                {
                    DataSetup();                   
                }

My Datasetup method is:

protected void DataSetup()
{
////Here oadsMain is a open access data source controls and EmpByAVF, EmpByAVR and EmpByAVY is the ORM view that work just like table.
 oadsMain.ObjectContextProvider = "iTracker.Data.Orm.iProjectModel, iTracker.Data.Orm";
                if(profileId == 36)
                    oadsMain.TypeName = "iTracker.Data.Orm.EmpByAVF";
                else if(profileId == 37)
                    oadsMain.TypeName = "iTracker.Data.Orm.EmpByAVR";
                else if (profileId == 38)
                    oadsMain.TypeName = "iTracker.Data.Orm.EmpByAVY";

                oadsMain.EnableDelete = false;
                oadsMain.EnableUpdate = false;
                oadsMain.EnableInsert = false;
             
                oadsMain.StoreOriginalValuesInViewState = false;
                rgModuleGrid.DataSourceID = "oadsMain";               
 }             



 
Vinod
Top achievements
Rank 1
 answered on 27 Feb 2012
8 answers
138 views
2009.2.906.35  VS2008 SP1, XP, IE8.

I was able to isolate to minimally what is needed to reproduce the problem.

<%@ Page Language="vb" AutoEventWireup="false" enableEventValidation="false" CodeBehind="Default.aspx.vb" Inherits="TestAjax._Default" %> 
<%@ 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"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title>Test</title> 
 
</head> 
<body> 
    <form id="form1" runat="server"
 
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release"
    </telerik:RadScriptManager> 
     
    Use drop down, then put in value in first textbox, the focus will go to 2nd textbox but you cannot enter anything. 
<br /> 
If you click 2nd textbox again, type in, and also fill out 3rd textbox.  [Go], you'll see that the 2nd textbox value gets lost.          
<br /> 
If EnableAjax="false" then problem does not exist. 
<br /> 
<telerik:RadComboBox ID="cboFunction" EmptyMessage="Select a function" runat="server" AutoPostBack="true"
                        <Items> 
                            <telerik:RadComboBoxItem Text="" /> 
                            <telerik:RadComboBoxItem Text="test1" Value="test1" /> 
                        </Items> 
                        <ExpandAnimation  Type="None" /> 
                        <CollapseAnimation Type="None" /> 
                    </telerik:RadComboBox> 
 
<br />                     
                <asp:PlaceHolder ID="myPlaceHolder" runat="server"></asp:PlaceHolder> 
 
            <asp:Button ID="btnGo" runat="server" Width="100px" Text="Go" Enabled="true" /> 
     
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline" > 
            <AjaxSettings>        
                <telerik:AjaxSetting AjaxControlID="cboFunction"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="myPlaceHolder" /> 
                    </UpdatedControls>               
                </telerik:AjaxSetting>                                                                        
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
    </form> 
</body> 
</html> 
 
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ucTest.ascx.vb" Inherits="TestAjax.ucTest" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
     
<telerik:RadTextBox runat="server" ID="txtSubAccountNo" AutoPostBack="true" Width="450px"></telerik:RadTextBox> 
<br /> 
<telerik:RadTextBox runat="server" ID="txtSubAccountDesc" ReadOnly="true" BackColor="Gainsboro" TabIndex="-1" Width="450px"></telerik:RadTextBox> 
<br /> 
<telerik:RadTextBox runat="server" ID="txt2"  Width="450px"></telerik:RadTextBox> 
<br /> 
<telerik:RadTextBox runat="server" ID="txt3"  Width="450px"></telerik:RadTextBox> 
<br /> 

Vasil
Telerik team
 answered on 27 Feb 2012
1 answer
101 views

Hi guys.

I sometimes get "invalid xhtml" errors when exporting from radgrid.
This is actually not my problem per se.

I am allowing users to export tables from databases, and some of them do contain old and invalid markup. Verifying/editing the markup isn't really an option.

My problem is, that even after including all code execution within "Try" I'm still unable to catch the errors and letting users know what's wrong. For some reason I still always get the unfriendly (for regular users) .net error page.

There must be a way to catch the errors right?

Regards,
-DJ-
-DJ-
Top achievements
Rank 1
 answered on 27 Feb 2012
3 answers
102 views
I am about to add RadEditor to a page we use for creating a mail message.

The user wants to be able to generate HTML mail but also wants the Outlook-like ability to choose to send plain text mail.

My plan is to add a custom dropdown to the Editor toolbar to allow the user to choose the format and then modify the tools available in toolbar to an appropriate set dependent on the option chosen.

What I then need to do, if the user has selected Plain Text, is remove any formating that is inappropriate.

Looking at the functinality available in the radEditor demos, I can make a few calls to the Format Stripper to remove CSS, Font, Span and Word formating but I still need to remove any <a> tags.

I guess I need to leave any <p> and <br> tags 'til after the user has finished composing the message or else it's going to be just one big block of text.

Whilst I know that I could remove the <a> tags at the same time that I do the post-processing to convert the <p> and <br> tags the LFCR in the sent message, I'd prefer to do it in the editor so the user can see that tghere are no links in their message.

So, to my point. is there an example somewhere of code I can use to process the message to remove a set of tags? Or should I just discover a method of sucking out the editor's content, throw it at the HTML Agility Pack to process it and then put it back?

Or, better yet, is there an example of switching from full HTML editing to plan text already someplace?

--
Stuart (Founder member of LazyProgrammersRUs)
Stuart Hemming
Top achievements
Rank 2
 answered on 27 Feb 2012
5 answers
138 views
I upgraded Visual Studio 2010 RC to the final released version. Now when I open up a project for .NET 3.5, the toolbox shows radControls for .NET 4.0. If I click on show all in the toolbox then the radControls for .NET 3.5 is listed but it is dimmed out. How can I make the radControls for NET 3.5 show up for a .NET 3.5 project?
Andrey
Telerik team
 answered on 27 Feb 2012
2 answers
97 views
 Hello,

I'm trying to use the component RadTreeList and It works well !
I've just a small problem with the oRecordsTemplate. (see attached file image002.jpg). It generates two lines. Even when I try my own template.
Perhaps is ther something I'm doing wrong. The TreeList is generated dynamically in Page_Init().

Thanks for your help.
Regards
Bernard

protected void Page_Init()
        {
aRadTreeList = new RadTreeList();
            //aRadTreeList.NoRecordsTemplate = new XarcNoRecordsTemplate();
            aRadTreeList.ClientSettings.Scrolling.AllowScroll = true;
            aRadTreeList.ClientSettings.Scrolling.UseStaticHeaders = true;
            aRadTreeList.AutoGenerateColumns = false;
            aRadTreeList.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel(180);
            aRadTreeList.ClientSettings.Scrolling.SaveScrollPosition = true;
            TreeListBoundColumn aTreeListBoundColumn = new TreeListBoundColumn();
            aTreeListBoundColumn.DataField = @"id";
            aTreeListBoundColumn.UniqueName = @"id";
            aTreeListBoundColumn.HeaderText = @"ID";
            aRadTreeList.Columns.Add(aTreeListBoundColumn);
            TreeListImageColumn aTreeListImageColumn = new TreeListImageColumn();
            aTreeListImageColumn.UniqueName = @"imageColumn";
            aTreeListImageColumn.HeaderText = @"Type";
            aTreeListImageColumn.ImageUrl = @"~/images/excel.png";
            //aTreeListImageColumn.ImageWidth = Unit.Pixel(20);
            //aTreeListImageColumn.ImageHeight = Unit.Pixel(20);
            aRadTreeList.Columns.Add(aTreeListImageColumn);
            aTreeListBoundColumn = new TreeListBoundColumn();
            aTreeListBoundColumn.DataField = @"name";
            aTreeListBoundColumn.UniqueName = @"name";
            aTreeListBoundColumn.HeaderText = @"Nom";
            aRadTreeList.Columns.Add(aTreeListBoundColumn);
            string[] aStringArr = new string[1];
            aStringArr[0] = @"id";
            aRadTreeList.DataKeyNames = aStringArr;
            aRadTreeList.ClientDataKeyNames = aStringArr;
            aStringArr = new string[1];
            aStringArr[0] = @"idPere";
            aRadTreeList.ParentDataKeyNames = aStringArr;
            aRadTreeList.NeedDataSource += new EventHandler<TreeListNeedDataSourceEventArgs>(RadTreeList_NeedDataSource);
            aRadTreeList.ItemDataBound += new EventHandler<TreeListItemDataBoundEventArgs>(RadTreeList_ItemDataBound);
            aRadTreeList.ClientSettings.ClientEvents.OnItemDblClick = @"ItemDblClick";
            aRadTreeList.Width = Unit.Percentage(100);
            RadTreeListDocDiv.Controls.Add(aRadTreeList);
 }
Bernard
Top achievements
Rank 1
 answered on 27 Feb 2012
2 answers
58 views
is it possible to have a loadingpanel in a radslidingpane activated by a button in the radslidingpane while trying to load a radgrid?

I've tried all sorts of things and have been unsuccessful.

thanks
Steven
Top achievements
Rank 1
 answered on 27 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?