Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
I'm getting some really slow performance from one radWindow and normal performance from another that is basically doing the same thing with a similar amount of items? 

They both are loading the same list and one is showing Available and the other Assigned.

Here's what I'm doing:
Grid NeedDataSource Call
1. Load a list from our database
2. Filter data from list and populate a dataset
3. Set dataset as the grid.datasource

I've added debug.writelines to the beginning of both NeedDataSource calls and i'm getting a 12 second lag from the time the Available grid finished to when it starts to work on the Assigned grid? HEre's my output data:

TOP Page_Load 9/11/2012 11:06:01 AM
--- TOP: PopulateRegionFilter() 9/11/2012 11:06:01 AM
--- BOTTOM: PopulateRegionFilter() 9/11/2012 11:06:01 AM
BOTTOM Page_Load 9/11/2012 11:06:01 AM
TOP of  grdAvblServiceAreas_NeedDataSource 9/11/2012 11:06:01 AM
BOTTOM of  grdAvblServiceAreas_NeedDataSource 9/11/2012 11:06:01 AM
TOP of  grdAsgdServiceAreas_NeedDataSource 9/11/2012 11:06:13 AM
BOTTOM of  grdAsgdServiceAreas_NeedDataSource 9/11/2012 11:06:13 AM


Now the crazy thing is that I have another RadWindow using almost the exact same code, but a different list and I'm getting super snappy results?
My parent page is using 2 different RadWindows, is that a problem?
I've been troubleshooting this for a day and half now and I'm completely stuck.
Jay
Top achievements
Rank 1
 answered on 11 Sep 2012
13 answers
3.8K+ 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
72 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
30 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
212 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
222 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
69 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
171 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
57 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
109 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?