Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
Hi,

we evaluate the use of the RadEditor in our SharePoint-Site. How can I set the localization to German? I've seen many code snippets how to set the language in aspx-files, and tried to mimic this in the config files, but adding the following line to the ListConfigFile and the ConfigFile did not have the indended result:

 <property name="Language">de-DE</property><BR>

Is there another way for setting the localization?

Thanks for your help.

Phil
Rumen
Telerik team
 answered on 05 Apr 2012
2 answers
158 views
Hi. I am currently using the following version of the Telerik Asp.Net Ajax Controls.
Latest Version: 2008.1 619 (Jun 19, 2008)

We have developed a site for a number of customers, which has been running with no problems that we are aware of. Our largest customer has decided to opt in to an extra feature of the site which was developed with Ajax and the Ajax tools, and are not having any luck.

They are a large financial institution and all of their web access is through IBM's Tivoli Access Manager and WebSEAL.

We have ascertained that if they access the site directly and do not go through WebSEAL, the site will run fine. We are struggling to assist because we do not have any environment to replicate this, and we cannot replicate the error.

I am hoping that perhaps someone in Telerik or another client will have had an issue similar to this in the past and may be able to offer assistance either for something we could change in our code, or they could change in Tivoli, which would enable the Telerik controls to work ok.

The specific error they are encoutering is as follows (I have had to doctor some information out).

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.4506.2152; InfoPath.2)
Timestamp: Thu, 14 Jan 2010 02:12:34 UTC


Message: Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. A possible cause is a change of settings during a partial update.
Line: 2315
Char: 38
Code: 0
URI: https://(url)/scorecards/ScriptResource.axd?d=R0bFhK1fXkO_u_1ND_MnI5zGjo6qe9AMiWiYcDgZMvcQqcFKSMcWnN6Rg15M424TRdoMj3jGo0oG1Klx1GKwh4XtmtKTKJU_AonPyESlIck1&t=29b7d1be


Message: Sys.ScriptLoadFailedException: The script 'https://(url)/ScriptResource.axd?d=-CpKS_w9Jn52W9DEhyeaJlJbUB34Wy82Vmu1hMRS_hkCWRHHuhZJnVMIMw2AQuSC0&t=344eddc1' failed to load. Check for:
 Inaccessible path.
 Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings.
 Missing call to Sys.Application.notifyScriptLoaded().
Line: 1266
Char: 13
Code: 0
URI: https://(url)/scorecards/ScriptResource.axd?d=R0bFhK1fXkO_u_1ND_MnI5zGjo6qe9AMiWiYcDgZMvcQqcFKSMcWnN6Rg15M424Twx3LUtPeER_Er6qayxuF1YZzRzExihQwafjYTIDKizqHvytkxF1Dmlxk-efuErtS0&t=29b7d1be

Kind Regards,
Mike
Erik
Top achievements
Rank 1
 answered on 05 Apr 2012
1 answer
102 views

Hi,

For many grids in our project, there are around 40 columns, so we were trying to use the gridpersister to save the settings for individual user, so that the user can customize the number of columns they want to see everytime.
Saving and loading grid setting works fine. The problem is when the user tries to hide thie column from the header contextmenu, the arrangement of the columns are lost. I have used wrap="false" for Column header and Item properties in the gid. After hiding 1 or 2 column, most of the headers and coluns are wrapped.
The problem is very prominent in IE7, almost all the columns and all the row data are wrapped. I am using the following code for columns. I cannot use fixed width header as my coulmn values vary from 40 to 400 characters and I don't want white space in the column.



<HeaderStyle VerticalAlign="Bottom" HorizontalAlign="Left"  />
<ItemStyle Wrap="False" VerticalAlign="Top" HorizontalAlign="Left"/>
Please suggest what to do.
kachy
Top achievements
Rank 1
 answered on 05 Apr 2012
1 answer
133 views
Hi i am looking for the functionality on the client side for the Editor from which i can get the exact character count of the Characters if its in HTML mode (i.e mode = 2).
i have used

var

oValue = Editor.get_html(true).trim();    ----(a)
-In this case oValue.length is showing the result which is a count of text entered by user as well as the html tags included.
also i have tried var oValue = Editor.get_text(true).trim();     ----(b)
-In this case we are getting the plain text count text count    

eg: if i enter: B
                b
(text is bolded just to distinguish)I shud get count = 3 as we get in MS word if we check. but from (a) and (b) we get diffrent result. This is creating trouble with our QA as we are not getting things approved due to this :(. Can anybody help me on this.
  
Thanks.

 

Rumen
Telerik team
 answered on 05 Apr 2012
3 answers
124 views
Hi,
I have a RadGrid which has NestedHierarchy set up. I also have edit functionality associated to grid rows.

<Columns>
    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" EditText="Rename Favourite" HeaderStyle-Width="15px">
        <ItemStyle CssClass="edit-grid-controls" />
    </telerik:GridEditCommandColumn>
    <telerik:GridTemplateColumn HeaderText="Name" UniqueName="Name">
        <ItemTemplate> 
<%# Eval("Name") %> </ItemTemplate>
        <EditItemTemplate><asp:TextBox ID="txtFavouriteName" runat="server" Text='<%# Eval("Name") %>' Width="100%" MaxLength="256" />
        </EditItemTemplate>
    </telerik:GridTemplateColumn>
    ... more columns ...
</Columns>

1. Since the time this grid was converted to a nested self referencing hierarchy table, the Name is displayed twice!
2. If I remove UniqueName attribute, the data wont show up.
3. If I remove ItemTemplate, things are fine until I attempt for an edit thru "GridEditCommandColumn".
4. Please have a look at the attached images. Image ending with right is for "normal" radgrid. Image ending with "wrong" is for nested hierarchy grid. When in edit mode, I don't want to display values twice.
Andrey
Telerik team
 answered on 05 Apr 2012
1 answer
103 views
So I'm trying to use a RadWindowManager in conjuction with an appointment insert. So far I have the following:

VB Code-Behind:
Protected Sub RadScheduler1_AppointmentInsert(sender As Object, e As Telerik.Web.UI.AppointmentInsertEventArgs) Handles RadScheduler1.AppointmentInsert
            RadWindowManager1.RadConfirm("Server radconfirm: Are you sure?", "confirmCallBackFn", 330, 100, Nothing, "Server RadConfirm", Nothing)
End Sub

Javascript functions:
<script type="text/javascript">
    function schedulerFormCreated() {
            $telerik.$(".rsRecurrenceOptionList li:eq(4)").hide(); 
    }
      
        function confirmCallBackFn(arg)
    {
         return arg;
    }
      
    function OnClientAppointmentInserting(sender, eventArgs)
  {
    if(confirmCallBackFn())
        {
         eventArgs.set_cancel(false);
        }       
            else { eventArgs.set_cancel(true);
        }
  }
  
</script>

The problem I seem to be having is that the radconfirmation window isn't even being called upon appointment insert, therefore the javascript function is returning a null or undefined value. If the radconfirm is not even being displayed, I can't pass the true or false value on to the inserting client event in order to go ahead and insert or cancel the insert. Anybody have any insight or have a working version of this? Any help would be greatly appreciated!
Plamen
Telerik team
 answered on 05 Apr 2012
6 answers
212 views
Hi,

We have noticed the following behaviour:
Scenario:
1) Set the new line mode to paragraph
2) Enter some line, for example "First Line", and press Enter
3) Go to HTML view
Perform this actions in IE and Chrome.
HTML view in IE:
<p>New Line</p>
<p>&nbsp;</p>
HTML view in Chrome:
<p>New Line</p>
<p><br />
</p>

Why is the mark-up different in this browsers? Is this the expected behaviour or such kind of a bug?

Best regards,
Roman
Rumen
Telerik team
 answered on 05 Apr 2012
2 answers
1.4K+ views
Hi guys, I was hoping you could provide some advice on setting the value of a RadNumericTextBox.

I have another control (dropdown) that when changed needs to update the RadNumericTextBox.

The javascript is firing and returning the current value as per below.

var txtTypeSelected = window["<%=txtOffsetPeriod2.ClientID %>"];
alert(txtTypeSelected.value);

However when I then try to set a new value this doesn't appear on screen as the control has had its id set as txtOffsetPeriod2_text.

txtTypeSelected.value = 1;

Is there another way I can set the RadNumericTextBox value when the function is called by another controls change event?

Thanks for the help.
Jibber4568
Top achievements
Rank 1
 answered on 05 Apr 2012
1 answer
73 views
This is my first time trying out RadChart. I have a very simple chart (that followed the example in the documentation section):

<telerik:RadChart ID="RadChart1" runat="server" DefaultType="Line" />

The code behind does a simple database query:

SqlDataSource sqlDataSource = new SqlDataSource();
sqlDataSource.ID = "myDataSource";
sqlDataSource.ConnectionString = "<snip>";
sqlDataSource.SelectCommand = "select convert(varchar(10),SearchDate,101) as SearchDate, AverageSoldPrice from SearchResult where SearchId = 1 order by SearchDate";
this.Page.Controls.Add(sqlDataSource);
RadChart1.DataSourceID = "myDataSource";
RadChart1.Series[0].DataYColumn = "AverageSoldPrice";
RadChart1.PlotArea.XAxis.DataLabelsColumn = "SearchDate";
RadChart1.DataBind();

If I execute that line in the database, I get 30 rows back. However, when the chart is created, I only have the first 8 items shown, labeled 0 through 7. Why are the others missing, and how can I get the actually dates to be displayed?
Evgenia
Telerik team
 answered on 05 Apr 2012
4 answers
369 views
Hi!

I am able to modify the background image of the combobox using this css (images attached). However, we loose the hover and focus image (see results.png for the focus problem.)
 
How do I change the images for the various states? Thanks!

Michael
.radComboBox td.rcbInputCell
{
    background-image: url('/Images/ComboBoxSprite.png') !important;
}
.radComboBox table td.rcbArrowCell
{
    background: #ffffff url('/Images/ComboBoxDropDown.png') no-repeat -1px 50%;
}

Michael O'Flaherty
Top achievements
Rank 2
 answered on 05 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?