Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
81 views
In the Rich Text editor, with NewLineMode="Br", if you add multiple lines of text with formatting toggled oddly across those lines :


Question mark characters get inserted when the formatting is removed in an order different than added.  Example:

If you enter a single line with formatting as follows:

plain bold italicbold italic

(italicbold meaning both are turned on - so you can see that we did bold on, <text>, italic on <text>, bold off <text>, italic off <text>
This renders fine.

But with MULTIPLE lines such as:

plain
bold
italicbold
italic
plain

What you GET is :

plain
bold
italicbold
?italic
plain

The stored HTML for this ends up looking like:
<P>plain <STRONG>bold <EM>italicbold </EM></STRONG><EM>italic </EM>plain<BR><BR>plain<BR><STRONG>bold<BR><EM>italicbold<BR>?</EM></STRONG><EM>italic<BR></EM>plain</P>

You can see the ? being inserted after the <BR> tag after "italicbold"

Skin settings:
<nt:RichEdit runat="server" SkinId="SimpleText" Width="700px" Height="240px"
    EditModes="Design"  EnableEmbeddedSkins="false" Skin="Ciena" EnableEmbeddedBaseStylesheet="true" ContentFilters="RemoveScripts"
    StripFormattingOptions="Css,MSWordRemoveAll" ExternalDialogsPath="~/EditorDialogs" NewLineMode="Br"
    EnableAjaxSkinRendering="true" ToolsFile="~/App_Data/RadEdit/SimpleTools.xml">
</nt:RichEdit>

Is there some setting I need to change to fix this?  Or is this a bug in the control?
Chuck
Top achievements
Rank 1
 answered on 14 Oct 2014
21 answers
727 views
Hi,
      RadPivotGrid works well to show aggregate values as data...... i have requirement to show the string values in the data fields, to show only the string values as follows

Category

Product

Country

Beverages

Chai

Germany

Chang

Usa

Ipoh Coffee

Uk

Sea food

Rogede sild

Brazil

Spegesild

China

Ikura

Uk

Konbu

Germany



Thanks
Dhamodharan
Milena
Telerik team
 answered on 14 Oct 2014
6 answers
127 views
I have created a custom database provider. I have a library storing all my database calls using linq. When an exception occurs in my class library that involves the scheduler I can not handle the exception or don't know how to handle the exception be cause the user save event bypasses the scheduler events in the code behind and interacts directly with my custom provider class. Itried checking errors before it sends the appointment to my custom provider but the errors are swallowed. Please help....
Boyan Dimitrov
Telerik team
 answered on 14 Oct 2014
2 answers
194 views
Hi,

I have a RadAutoCompleteBox that I add dynamically at run time for editing values.
I can set all settings that I need and add it to the page without problems.

I just can't find out how to set it's text value because the 'text' property is read only.
I want to search the items only when the user modifies the current value.

This is my code so far:

_autoCompleteBox = new RadAutoCompleteBox();
_autoCompleteBox.ID = String.Format("Extra_RdtCmpltBx_{0}_{1}", Data.Name, ID);
_autoCompleteBox.Filter = RadAutoCompleteFilter.StartsWith;
_autoCompleteBox.DropDownPosition = RadAutoCompleteDropDownPosition.Automatic;
_autoCompleteBox.AllowCustomEntry = true;
_autoCompleteBox.InputType = RadAutoCompleteInputType.Text;
_autoCompleteBox.WebServiceSettings.Method = "GetResults";
_autoCompleteBox.WebServiceSettings.Path = "Popup_EditData.aspx";
Mickael
Top achievements
Rank 1
 answered on 14 Oct 2014
5 answers
63 views
This was working in our Events Management system for until recently.
We recently migrated everyone to Outlook 2012.
I updated my VS 2012 project this morning to Q2 2014 .NET 3.5.

Now Appointment.Description is not coming across in the ics appointment in Outlook.

Has anyone else experienced this?
Is there a work around?

Thanks!
Boyan Dimitrov
Telerik team
 answered on 14 Oct 2014
3 answers
172 views
I have a problem with filtering checklist of columns, 
I really should be placed as, selecting the filter options and pressing apply the filter does not send parameters to service SVC 

could tell me what am I doing wrong?

ASP
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0"  
            GridLines="None" AllowFilteringByColumn="true" FilterType="CheckList"
            AllowPaging="true" PagerStyle-AlwaysVisible="true" AllowSorting="true" Skin="Simple"    
            Width="1080px" Height="600px" EnableLinqExpressions="true">
<MasterTableView EnableHeaderContextMenu="true" AutoGenerateColumns="false"  
    CheckListWebServicePath="../../MovimientoWcfService.svc"
     DataKeyNames="MovimientoId" ClientDataKeyNames="MovimientoId" PageSize="20">
    <Columns> 
        <telerik:GridBoundColumn FilterDelay="200" HeaderText="Código" UniqueName="ClientId" DataField="ClientId">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn FilterDelay="200" DataField="FamiliaNombre"  HeaderText="FAMILIA" FilterCheckListWebServiceMethod="LoadFamilia" UniqueName="FamiliaNombre" >
        </telerik:GridBoundColumn>
 </Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"></Scrolling>
    <Resizing ResizeGridOnColumnResize="true" ShowRowIndicatorColumn="true" AllowResizeToFit="true" />
    <DataBinding Location="~/MovimientoWcfService.svc" SelectMethod="GetDataAndCount" SortParameterType="Linq"
         FilterParameterType="List" >
    </DataBinding>
</ClientSettings>
</telerik:RadGrid>  
   
//C# SVC
 [OperationContract]
        public RadListBoxItemData[] LoadFamilia(Dictionary<string, object> context)
        {
            var be = new BeFamilia { Eliminado = false, Activo = true };
            var beList = new List<BeFamilia>();
            var bl = new BlFamilia();
            beList = bl.Select(be);
            var allFamilies = (from fa in beList
                               orderby fa.Descripcion
                               select new RadListBoxItemData
                               {
                                  Value = fa.FamiliaId.ToString(),
                                   Text = fa.Descripcion
                               }).Distinct();

            return allFamilies.ToArray<RadListBoxItemData>();
            
        }



Maria Ilieva
Telerik team
 answered on 14 Oct 2014
1 answer
130 views
I was having trouble implementing a WCF Service for getting HTML chart data on the client side based on the example in the Demo "HtmlChart - Client-side Binding".

The trouble spot was in the setServiceDataInChart function. The demo site source code is:

function setServiceDataInChart(sender, args)
{
     //Get the returned data
     var newData = args.get_content();
  
     //get a reference to the RadHtmlChart
     var chart = getChartReference();
  
     //Set the new datasource to the RadHtmlChart
     chart.set_dataSource(newData);
  
     //Repaint the RadHtmlChart
     chart.repaint();
  
     //Avoid raising the OnClientResponseEnded client-side event
     //avoid setting the received data as content for the RadXmlHttpPanel
     args.set_cancel(true);
  
     logEvent("<strong>Data from the WCF service:</strong>" + newData);
}


I got two different errors when the code got to "chart.repaint();"

First problem was that my WCF service was not serving data back until I changed the OperationContract WebInvoke BodyStyle to WebMessageBodyStyle.WrappedRequest. This caused the second problem, namely, the value of newData returned was now wrapped, so I had to specify

chart.set_dataSource(newData.d);

in the setServiceDataInChart function.
Danail Vasilev
Telerik team
 answered on 14 Oct 2014
1 answer
134 views
Hi,
My case, radgrid disappeared after BatchEditCommand logic
I want to know BatchEditCommand Exception logic
When DB is Exception, my solution is not New rebind, but user's Modified data

Thank you~!

protected void RadGrid1_BatchEditCommand(object sender, GridBatchEditingEventArgs e)
{    
     foreach (GridBatchEditingCommand command in e.Commands)    
     {        
          Hashtable newValues = command.NewValues;        
          Hashtable oldValues = command.OldValues;        

          // Oracle DB Insert/Update/Delete...

          If(DB Exception)
          {
              // Rollback();
              return; //  Grid disppeard 
          }
     }

     //Commit(); // even in that case, Grid disappear
}
Viktor Tachev
Telerik team
 answered on 14 Oct 2014
6 answers
120 views
Hello,

Is it possible to add custom options to the zoom dropdown tool?
vkucherov
Top achievements
Rank 1
 answered on 14 Oct 2014
1 answer
158 views
Hello Team,
                    I am facing an issue with RadAsyncUpload when i upload a file we used to get green mark as symbol of successfully inserted int database,but now we are facing an issue, as we upload a file we getting a red symbol mark after we upload,but uploaded file is not saved and also getting red mark.Help me out from this issues ?? 
Plamen
Telerik team
 answered on 14 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?