Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
3.9K+ views
Hello,

can you help me find resolve my following problem..?

I have RadGrid with Numeric Columns and one GridButtonColumn for automatic deletes. This is markup of one of my columns:

<telerik:GridNumericColumn DataField="HoursAmount" HeaderText="hrs." DataFormatString="{0:### ##0.0}"
  ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />

When I click on delete link on column where value is bigger then 1000, grid write this error: Failed to set one or more properties on type Arcon.Web.ServiceJobHour. 1 000,00 is not a valid value for Decimal.

Now I'm finding way to use DecimalDigits property of GridNumericColumn but this doesn't do anything...

<telerik:GridNumericColumn DataField="HoursAmount" HeaderText="hrs." DataFormatString="{0:### ##0.0}"
  ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right"  DecimalDigits="2" />

Can you help me find to resolve it?

Thanks
Kavitha
Top achievements
Rank 1
 answered on 11 Sep 2012
4 answers
78 views
Hello,

I have an MVC 3.0 project which uses a Telerik MVC editor, for which we wanted to add spell checking.  Since MVC doesn't include RadSpell, I followed the instructions on these forums and elsewhere to integrate the Asp.Net AJAX spell check control.

From my Razor view I render a partial ascx view with the spell check control, and add a custom tool to the editor which calls this control via javascript.  The Javascript function finds the spell check control, sets it's controltocheck property to the appropriate value, and then starts the spell checking.

This works great in IE8, however in Chrome or Firefox it fails because the command I use to find the control returns null in those browsers (BUT finds the correct control in IE).

function checkSpelling(id) {
    var spell = $telerik.findSpell('<%= RadSpell1.ClientID %>');
    spell.set_controlToCheck(id+"Iframe");
    spell.startSpellCheck();
}


I've attached a small demo project that shows this problem.  I've seen some suggestions that this maybe a timing issue with the function running before the control is initialized, though this seems unlikely, and besides the suggested solutions to that (e.g. Sys.Application.add_load()  don't fix the issue. Please help me resolve this problem.
Martha
Top achievements
Rank 1
 answered on 11 Sep 2012
3 answers
31 views
HI,

I am using Telerik Rad Spliiter with Rad Tree control inside (Web Application has simple web page withh Rad splitter and tree with 10 nodes).

Sometimes on slower network and from remote location , page is not displayed (nont rendered completely). However if i just click on intenet explorer maximum button and all is visible(rendered). This is a random behaviour and is not reproducable  always and from all locations/networks.

I have noticed that this is a behavior specific to pages where we have RadSplitter control.  I tried to repaint the  Radspliter contol but no luck.

Please suggest.

Thanks and regards,
Manishkumar Patel

Vessy
Telerik team
 answered on 11 Sep 2012
1 answer
225 views
Hello, 

I have a grid that loads the data through a web-service. This is my code:

Grid:
<telerik:RadGrid runat="server" ID="rgOverzicht" Width="690px" PageSize="10"
                AllowPaging="true" AllowSorting="false" ClientSettings-Scrolling-AllowScroll="false" ClientSettings-Scrolling-UseStaticHeaders="true" AllowFilteringByColumn="false" AllowMultiRowSelection="false" EnableLinqExpressions="false">
                <GroupingSettings CaseSensitive="false" />
                <MasterTableView NoMasterRecordsText="Geen artikelen om te tonen." DataKeyNames="Artikel_Id" ClientDataKeyNames="Artikel_Id" TableLayout="Fixed">
                    <PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="<b>{4}</b>  Pagina <b>{0}</b> van <b>{1}</b> | Item <b>{2}</b> t/m <b>{3}</b> van de <b>{5}</b>. " ShowPagerText="True" />
                    <Columns>
                        <telerik:GridBoundColumn DataField="IndexNr" UniqueName="IndexNr" HeaderText="Index" HeaderStyle-Width="65px"  />
                        <telerik:GridBoundColumn DataField="Omschrijving" UniqueName="Omschrijving" HeaderText="Omschrijving" />
                        <telerik:GridBoundColumn DataField="Afmeting" UniqueName="Afmeting" HeaderText="Afmeting" HeaderStyle-Width="65px"  />
                        <telerik:GridBoundColumn DataField="Drukklasse" UniqueName="Drukklasse" HeaderText="Drukklasse" HeaderStyle-Width="65px"  />
                        <telerik:GridBoundColumn DataField="Eenheidstarief" UniqueName="Eenheidstarief" HeaderText="Prijs (in €)" HeaderStyle-Width="75px"  />
                    </Columns>
                    <PagerStyle Mode="NumericPages" />
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true">
                    <DataBinding SelectMethod="GetDataAndCount"
                    Location="~/CalculatieGrid.asmx"
                        SortParameterType="Linq" FilterParameterType="Linq" >
                    </DataBinding>
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
            </telerik:RadGrid>

Web-service:
var data = RadGrid.GetBindingData(source, startRowIndex, maximumRows, sortExpression, filterExpression);
 
result.Data = data.Data.ToList();
result.Count = data.Count;
 
return result;

JavaScript filter function:
<script type="text/javascript">
                $("#Search").click(function (e) {
                    if ($('#txtFilterOmschrijving').val() != "" && $('#txtFilterOmschrijving').val() != $('#txtFilterOmschrijving').attr("defaultValue")) {
                        filterExpression = new Telerik.Web.UI.GridFilterExpression();
                        filterExpression.set_fieldName("Omschrijving");
                        filterExpression.set_columnUniqueName("Omschrijving");
                        filterExpression.set_dataTypeName("System.String");
                        filterExpression.set_filterFunction(Telerik.Web.UI.GridFilterFunction.Contains);
                        ItemIdentifier = $('#txtFilterOmschrijving').val();
                        filterExpression.set_fieldValue(ItemIdentifier);
 
                        vFilterExpressions.add(filterExpression);
                    }
                    tableView.rebind();
                    tableViewPlan.rebind();
                });
            </script>

The problem is that the filters are case sensitive. I tried setting the case sensitive option in groupsettings in the grid, but that has no effect. Does anyone have a solution?

Thanks in advance!
Tsvetina
Telerik team
 answered on 11 Sep 2012
4 answers
228 views
Hello,
I faced an issue in Find and Replace functionality.
This can be reproduced on RadEditor demo
1. Switch to HTML mode.
2. Press 'Find And Replace' button. Select 'Replace' tab.
3. Specify
  Find: <td>
  Replace with: <th>
4. Press Replace button.

<td> is replaced with &lt;th&gt;

Few more issues with Find&Replace:
'Replace All' does not seem to work at all.
When "find" string is not found it replace all the text.

Could you please reply if it can be fixed?
Vessy
Telerik team
 answered on 11 Sep 2012
1 answer
78 views
Hi,

we use HTML format for exporting to Excel.

In principle, we are ok with "pseudo-excel" format of file (HTML), except that popup warning about inconsistency of extension and actual format of the file and - as result of this? - inability to open it in GoogleDocs.

is it possible to fix somehow?
Daniel
Telerik team
 answered on 11 Sep 2012
1 answer
186 views

Hi,



We tried following css in the EditorCssFile but it is not working in the editor rendering.



1. Child selector (first descendant).

.rb-inner-small > div .rb-text-small strong{font-size:12px}



2. Pseudo class

div[class^="r-header-small"]{position: relative; width:207px; height:134px}



Is it supported in the editor or there is other way to do this?



Thanks.

Rumen
Telerik team
 answered on 11 Sep 2012
2 answers
60 views
Hello

Can i use the exporting built in radgrid to export all columns even if the collumn is display = false?

best regards

gilberto
Gilberto
Top achievements
Rank 1
 answered on 11 Sep 2012
0 answers
117 views

We've created an extended version of the RadEditor to use locally.  What we need to do is set the values for the dictionarypath to a single path that all instances of the control will use.  We also need to disable the custom dictionary in the global version, but allow local versions to override in the markup.

We aren't using the markup interface in the extended version, so I can't set any values under <telerik:RadEditor/>.  I'm working in C#.  What I'm trying to do to start with looks like this:

 

 

 

public ExtendedRadEditor() : base()  

base.SpellCheckSettings.AllowAddCustom = false;  

base.SpellCheckSettings.SpellCheckProvider = SpellCheckProvider.TelerikProvider;  

base.SpellCheckSettings.DictionaryPath = System.Web.HttpContext.Current.Server.MapPath("~/Embed/TDF");

}


So, what am I missing here???

EDIT:  So I've tried exploring the various ways in which I can set the DictionaryPath.  Since this is NOT a web application, I can't use Server.MapPath(); since it's not a Windows app, I can't use GetCurrentExecutingPath.  I've tried using GetCurrentAssembly().Codebase, but since this compiles into the Visual Studio executable path at runtime, NOT the local code path (which would parallel the path utilized at deployment), I've hit a wall on trying to get the correct DictionaryPath set.  I even tried a basic Windows path ("../Embed/TDF") and THAT didn't work.

Could really use some ideas.
Paul
Top achievements
Rank 1
 asked on 11 Sep 2012
1 answer
102 views
Hello

I am using RadEditor for SharePoint 2010 on an application page for editing HTML content of specific publishing pages (getting the value from field 'PublishingPageContent' of corresponding SPListItem and setting property Content of RadEditor control).

After saving HTML content everything looks alright on corresponding target page with following HTML in 'PublishingPageContent' (as an example):
<span class="ms-rtestate-read  ms-reusableTextView" id="__publishingReusableFragment">
Copyright&copy; 2012&nbsp;XXX - All
Rights Reserved
</
span>

But when opening page in "normal" edit mode or editing properties (in Pages library) the HTML gets transformed after saving:
<span id="__publishingReusableFragment"></span>

This problems occurs independenly from RadEditor beeing activated as default HTML editor for site (in Site Features). And RadEditor reacts differently concerning reusable content if used in "normal" page edit mode compared to context in application page. It is only concerning readonly content (automatic update).

Does anybody know, how to overcome this issue? Are there for example specific JavaScript files / libraries, which have to be added to application page?

Thank you and best regards,
Roger
Rumen
Telerik team
 answered on 11 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
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
Bronze
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?