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

Hi Team,

I am using Two Rad Editors, for first RAD Editor set property EditModes="Design". copied  below mentioned data from MS word and paste into Rad Editor. 

ex:  Copy below sample data

       .Parent1
         .Child1
         .Child2
     

<telerik:RadEditor RenderMode="Lightweight" SkinID="BasicSetOfTools" Width="100%" EnableTextareaMode="false" BorderStyle="None"
          runat="server" Content='<%# Bind("Comments") %>' Height="100px" Font-Names="Tahoma"
           ID="txtBox_PEdit" EditModes="Design" StripFormattingOptions="NoneSupressCleanMessage" StripFormattingOnPaste="MSWord">
             <Tools>
                     <telerik:EditorToolGroup>
                     </telerik:EditorToolGroup>
          /Tools>
      </telerik:RadEditor>

After saving data, in Rad editor am seeing unnecessary spaces and new line. please see attached screen shot.

please suggest me how I will remove unnecessary spaces and new lines.

 <telerik:RadEditor RenderMode="Lightweight" SkinID="BasicSetOfTools" EditModes="Preview"
     ID="lbl_Description" Width="99%"  runat="server" Height="100px"  BorderStyle="None"
     Font-Names="Tahoma" Font-Size="11px" Style="margin-bottom: 5px;" Content='<%# Eval("Comments") %>'>
 <Tools  >
      <telerik:EditorToolGroup >
       </telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>

 

Rumen
Telerik team
 answered on 16 Feb 2018
1 answer
99 views

When the user click on the ShowCheckAll button either all entries aree selected or unselected. Looking at the documentation I cannot find any event that is fired for that. Even if there is no specific event for that, I would expect that ClientEntryAdded or ClientEntryRemoved for each of the entries would be fired but thatis not the case either. 

I need to handle this event as part of a logic that checks if and when the set of selected items is changed. Is there any other way to get notified via an event when ShowCheckAll is clicked ?

Thanks

Zeev

Zeev
Top achievements
Rank 1
 answered on 15 Feb 2018
1 answer
204 views
This may seem a trite question.
I am looking for a menu-navigation control and page framework I can use just like you demo pages. See image attached.
The menu and page re-sizes according to browser or screen size. I want the menu to appear as the menu (Hamburger) icon, and when the user clicks the navigation menu slides out from the left. At the top you can switch from Menu> to <Controls.
Can I get a sample of this framework? Are these Telerik navigation controls or Bootstrap?
I am trying to modify our vb.net Telerik based program to work better for mobile applications.
-Thank you
Rumen
Telerik team
 answered on 15 Feb 2018
10 answers
159 views

Hi,

we are using CDN to get Telerik scripts and styles. All is set in web.config:

<add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
<add key="Telerik.ScriptManager.TelerikCdn.CombinedResource" value="Enabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn.CombinedResource" value="Enabled" />

Now I found that some controls are broken. I tried to identify problem, so deactivated CDN. All works fine. Controls are ok.

So I disabled CombinedResources and found, that all CSS files are for lightweight rendering.

https://d35islomi5rx1v.cloudfront.net/ajaxz/2017.2.711/CombinedBaseSkinClassic.css

But we are using custom skins in Classic render mode. I tried to set it to web.config too, but it doesn't work:

<add key="Telerik.Web.UI.RenderMode" value="classic" />

 

So when CDN started to provide lightweight styles and how to get classic ones?

Regards

René

Marin Bratanov
Telerik team
 answered on 15 Feb 2018
0 answers
75 views

I have a radgrid with these propertie

AutoGenerateColumns="false"
               AllowAutomaticDeletes="true"
               AllowSorting="True"
               AllowPaging="true"
               AllowFilteringByColumn="true"
               OnInsertCommand="rgData_InsertCommand"
               OnUpdateCommand="rgData_UpdateCommand"
               OnItemDataBound="rgData_ItemDataBound"
               OnDeleteCommand="rgData_DeleteCommand"
               EnableViewState="true"
               OnItemCommand="rgData_ItemCommand"
               ShowStatusBar="true"
               OnInit="RgHomicideData_Init"
               OnNeedDataSource="rgData_NeedDataSource"
               CommandItemStyle-HorizontalAlign="Left">

 

The radgrid works as expected.  I use this code in my needdatasource

string strYear = DateTime.Now.Year.ToString();
            DateTime StartDate = Convert.ToDateTime("1/1/" + strYear);
            DateTime EndDate = Convert.ToDateTime("12/31/" + strYear);
            rgData.DataSource = DbContext.tblData
                .Where(d => d.deleted == false).ToList();

 

sort and paging is working properly

Now I want to filter the data by a date range so I use this code

Boolean DateChk1 = dpStartDate.SelectedDate.HasValue;
            Boolean DateChk2 = dpStartDate.SelectedDate.HasValue;
            string comboSearch = cboxSearch.Text;
            int intComboSearch = comboSearch.Length;
 
            if (comboSearch.Length > 0 && DateChk1 == true && DateChk2 == true)
            {
 
                DateTime Date1 = dpStartDate.SelectedDate.Value;
                DateTime Date2 = dpEndDate.SelectedDate.Value;
                rgData.DataSource = DbContext.AAADataSearchByDateRange(comboSearch, Date1, Date2).ToList();

The data refreshes and shows the filtered data.  Now if I click the column header to sort or I chnage to another page the radgrid looses all data and all I see is a line on the screen.  Can someone please explain the problem and how to fix it

 

Thanks

Perry
Top achievements
Rank 1
 asked on 15 Feb 2018
2 answers
214 views
I set it to true but dropdown outside the viewport: see screenshot.
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 15 Feb 2018
6 answers
3.1K+ views

Hi,

I am new to the Telerik, I have big story to ask, first I installed the Version=2016.1.113.35 on my Local machine, and started using the application everything was working good, before that I had different Version=2015.2.623.45 of Telerik on the same machine on top  of it I installed the current Version=2016.1.113.35. But when I deployed it on the Server, and server has the older version= 2015.2.623.45 that I had on my machine. And on the Server Telerik controls stopped working like RadEditor was completely disabled. 

Then I did some crazy mistake, I tried to manually copy the dlls of the same Version from Server and added them in to References thinking that this will work as backward compatibility would exist. Now it started giving me different Compilation errors. I am little frustrated can somebody please help me in this regards.

 My errors are as below:

<pre>

Unable to resolve type 'Telerik.Web.UI.RadAjaxLoadingPanel, Telerik.Web.UI, Version=2016.1.113.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'

Unable to resolve type 'Telerik.Web.UI.RadTextBox, Telerik.Web.UI, Version=2016.1.113.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'
Unable to resolve type 'Telerik.Web.UI.RadMaskedTextBox, Telerik.Web.UI, Version=2016.1.113.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'
Unable to resolve type 'Telerik.Web.UI.RadAutoCompleteBox, Telerik.Web.UI, Version=2016.1.113.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'
Unable to resolve type 'Telerik.Web.UI.RadAjaxManager, Telerik.Web.UI, Version=2016.1.113.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'

</pre>

And my Web Config is as below any help please?

<PRE>

<remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
<remove name="Telerik_Web_UI_DialogHandler_aspx" />
<remove name="Telerik_RadUploadProgressHandler_ashx" />
<remove name="Telerik_Web_UI_WebResource_axd" /><add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />

</PRE>

 

Eyup
Telerik team
 answered on 15 Feb 2018
6 answers
1.1K+ views

     I have a RadComboBox that shows two columns in the drop down, I have a header for them as well.  I want the 2 columns to show once the item is selected.  I'm new to Telerik, so I'm not sure if I'm saying this correctly, but I essentially would like a DataTextField ='ID + Name".

 

Is there a way to make 2 datatextfields show up in the selected value of a RadComboBox, either in ASP.Net, or VB/C#?

 

Thank you,

J

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 14 Feb 2018
0 answers
53 views
When I filter only with 2 or 3 months according my query, my RadPivotGrid do the columns fill according width of the screen, but i need that she display the columns with the bestfit width or with width determined.
And if i filter more than 3 months according my query, she apply the width that was determined.

How to I can do that ?

Images in attachments.
Andre
Top achievements
Rank 1
 asked on 14 Feb 2018
4 answers
5.3K+ views
Hi,

I have a telerik RadGrid on a form with filters. My project is configured for .net 3.5 and everything works great including filters.

When I deploy to the test server, all the functionality except the following works as expected.

One of my columns which is boolean throws an exception whenever I try to filter on it.
Suprisingly there is another boolean column in the grid which filters perfectly.

The tags are
TAG Working Working fine on filter is
<telerik:GridCheckBoxColumn DataField="IsTrial" DataType="System.Boolean" FilterControlAltText="Filter IsTrial column"
HeaderText="IsTrial" SortExpression="IsTrial" UniqueName="IsTrial"></telerik:GridCheckBoxColumn>
TAG Failing on Filter is
<telerik:GridCheckBoxColumn DataField="IsBilled" DataType="System.Boolean" FilterControlAltText="Filter IsBilled column" HeaderText="IsBilled" SortExpression="IsBilled" UniqueName="IsBilled" ></telerik:GridCheckBoxColumn>

I see on the following error in the browser when I select filter "equal to" on the IsBilled column

Server Error in '/' Application.


IsBilled is neither a DataColumn nor a DataRelation for table DefaultView.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: IsBilled is neither a DataColumn nor a DataRelation for table DefaultView.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[ArgumentException: IsBilled is neither a DataColumn nor a DataRelation for table DefaultView.]
   System.Data.DataRowView.get_Item(String property) +1742474
   lambda_method(ExecutionScope , DataRowView ) +211
   System.Linq.WhereEnumerableIterator`1.MoveNext() +161
   System.Linq.Enumerable.Count(IEnumerable`1 source) +189
   lambda_method(ExecutionScope ) +117
   System.Linq.EnumerableExecutor`1.Execute() +103
   System.Linq.EnumerableExecutor`1.ExecuteBoxed() +23
   System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +83
   Telerik.Web.UI.GridDynamicQueryable.Count(IQueryable source) +143
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +3353
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +628
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +32
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +20
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +163
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +71
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +398
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +158
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +316
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +545
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +16
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +229
   Telerik.Web.UI.GridTableView.Rebind() +48
   Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +524
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +134
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +38
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +87
   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +46
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +8017
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634
 
----
Eric D. Burdo
Top achievements
Rank 2
 answered on 14 Feb 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?