Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
61 views
We are using RadEditor for MOSS version 5.3.2.0. Our users have entered an href link which includes a numeric query parameter. Here is the stored html code:

<div class="right-align"><a href="/services/hospitals/overview/defaultview.aspx?id=739"><img alt="Luton and Dunstable Hospital profile" src="/aboutNHSChoices/professionals/healthandcareprofessionals/your-pages/PublishingImages/luton.jpg" /></a></div>
<div class="right-align"></div>

In display mode, the query parameter seems to be corrupted. This is the html displayed by the browser:

<div class="right-align">
<a href="/services/hospitals/overview/defaultview.aspx?id=" 739??="" jQuery1298991157800="83">
<img alt="Luton and Dunstable Hospital profile" src="/aboutNHSChoices/professionals/healthandcareprofessionals/your-pages/PublishingImages/luton.jpg" complete="complete"/>

This output is from IE8 but I have tried to display this page in Firefox and Google Chrome with similar results. I have tried downloading version 5.8.6.0 and installing this on a test server but this did not seem to fix the problem. Can you please help?

Jon
Top achievements
Rank 1
 answered on 07 Mar 2011
0 answers
88 views
Greetings all,

I'm new to using telerik radcontrols, and I was having difficulty understanding how appointments are added or edited using the dialog box within the scheduler.

I have the AllowInsert property set to "true", which makes a dialog box appear with the Save, Cancel and Option buttons. I can enter text in the textbox, or hit options, which opens a separate box, but in either case, the changes I make are not saved.  However, the delete function works fine...

Here's the html:

<telerik:RadScheduler ID="rsMyCalendar" AllowDelete="true" AllowEdit="true" AllowInsert="true"
                DataSourceID="sdsMyCalendar" DataKeyField="EventID" DataSubjectField="Subject"
                DataStartField="StartDate" DataEndField="EndDate" DataDescriptionField="Description"
                DisplayDeleteConfirmation="true" EnableDescriptionField="true" EnableDatePicker="true"
                DayView-DayStartTime="08:00:00" DayView-DayEndTime="17:00:00" WorkDayStartTime="08:00:00"
                WorkDayEndTime="17:00:00" runat="server" StartEditingInAdvancedForm="true" OnAppointmentClick="OnAppointmentClick1"
                OverflowBehavior="Expand" SelectedView="MonthView" Skin="Windows7" EnableEmbeddedSkins="true"
                OnAppointmentDelete="rsMyCalendar_AppointmentDelete">
                <MonthView GroupingDirection="Vertical" />
                <AppointmentTemplate>
                    <%# Eval("Subject") %>
                </AppointmentTemplate>
            </telerik:RadScheduler>

Here's the code behind:
protected void OnAppointmentClick1(object sender, SchedulerEventArgs e)
        {
            int id = (int)e.Appointment.ID;
            Response.Redirect("event.aspx?id=" + id);
        }


        protected void rsMyCalendar_AppointmentDelete(object sender, SchedulerCancelEventArgs e)
        {
            Events E = new Events();

            E.EventID = (int)e.Appointment.ID;

            EventsDAL.Delete(ref E);
        }

        protected void rsMyCalendar_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
        {
            Events E = new Events();

            E.EventID = (int)e.Appointment.ID;

            EventsDAL.Insert(ref E);
        }

What am I missing here?

Thanks for the help,

Jack
Jack
Top achievements
Rank 1
 asked on 07 Mar 2011
4 answers
109 views

I try to check spelling text at several radtexteditors before data is saved, and I don't want to user to click "spell" button.  Instead, I put it at link button

 

 

OnClientClick

 

="StartCheck()"

and a javescript:

 

 

 

function StartCheck() {

 

 

 

 

var spell = $find('<%=FormViewComment.FindControl("RadSpell10").ClientID %>');

 

 

spell.startSpellCheck();

 

 

 

return false

 

 

 

 

 

 

 

}

which is inside a RadCodeBlock.

Spelling control is like this:

 

 

 

 

<telerik:RadSpell ID="RadSpell10" Runat="server" Skin="Vista" ControlsToCheck='<%# new string[3] {FormViewComment.FindControl("RadTextBoxOpportunities").ClientID, FormViewComment.FindControl("RadTextBoxSummary").ClientID, FormViewComment.FindControl("RadTextBoxSummary").ClientID}%>'

 

 

 

 

IsClientID="true" SupportedLanguages="en-US,English" ButtonType="none" />

All three textbox are inside a FormView Control, and it is inside an asp customer control.

When I click the link button to fire spell check, spell check dialog box does show up, but it pompup a "complete spelling check" message although some text is not spelled correctly, and give me some wired client script error which I don't understand.  Please let me know what mistake I made.

Thanks

 

Rumen
Telerik team
 answered on 07 Mar 2011
4 answers
564 views

I am using RadControls for ASP.NET Ajax Q2 2010 NET 35  (2010.2.826.35)
I have set the radNumericTextbox ReadOnlyStyle as

<telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" 
      DataType="System.Int32"  MaxValue="5000" MinValue="0" 
      SelectionOnFocus="None" Skin="Sunset" Width="50px" Enabled="false">
       <DisabledStyle BackColor="#EEEEEE" />
       <ReadOnlyStyle BackColor="#EEEEEE" />
       <EnabledStyle HorizontalAlign="Center" />
      <NumberFormat DecimalDigits="0" />
</telerik:RadNumericTextBox>

When I  set the enable to true and readOnly to false on client side  as

function EnableRadNumericTextBox1(enable) {
    var RadNumericTextBox1= $("div #divReqPositions [id$='RadNumericTextBox1']")[0].control;
       
    if (enable) {
        RadNumericTextBox1.enable();
        RadNumericTextBox1._textBoxElement.readOnly = false;
    }
    else {
        RadNumericTextBox1.clear();
        RadNumericTextBox1.disable();
    }

If the rad control has value and I need to change the style to enabling style (Enable= true,ReadOnly= false)  on client side by using the javascript function above the background of the control (RadNumeric control) stay gray untill I move the mouse over the control.


any help would be appreciated.
Sam
Top achievements
Rank 1
 answered on 07 Mar 2011
10 answers
265 views
I have been building a Content Management System which will be used for several of my clients, and I have been hoping to use RadEditor However, I have run into a really tough issue. For some of these clients, the majority of content this CMS system will be managing will be email content. RadEditor generates XHTML-compliant code which is great... if you're displaying content in a browser. However, Email clients don't always like XHTML code at this point and the content is often broken. For instance, images that have style declarations which specify their width/height will not be displayed properly in Outlook and other email clients. Images need to have their width/height attributes set in order to function correctly in email clients. I found a thread which discusses this exact problem at:

http://www.telerik.com/community/forums/aspnet-ajax/editor/remove-style-attribute-from-img.aspx

The solution provided (that of creating a custom filter) appears to have some issues. First off, when you insert an image from ImageManager, the custom filter works to rewrite the tag using attributes instead of style, however, the width/height it specifies is the width/height of the physical image, not the width/height specified in the Properties tab of the Image Manager. So, I can insert an image that has w/h of 300x200 and its attriubtes will be set correctly using the filter, but if I wanted to set the w/h to 600x400 in the Image Properties Dialog and/or tab in the Image Manager, the filter won't do this.

Apparently, the Image Properties dialog and Image Manager Properties Tab operate only on the style attribute of the img tag. This makes sense, sine you're tying to create and manipulate XHTML-compiant code, but of course, isn't particularly helpful in this scenario.

The solution above is also a bit problematic because I believe this style vs attributes issue applies to other types of elements, besides the img tag. Even if it were possible to overcome the properties issue I noted above, it would likely be very difficult to create an exhasutive filter that handles any and all tags and their attributes that are affected by this.

Anyhow, I'm hoping someone out there has created some sort of system that allows them to create content using Rad Editor that will work in email clients. Or, I'm hoping Telerik can provide a more workable and robust solution than the one in the link above. If not, I'm afraid I will have to forego using RadEdtior in my CMS system, which would be sad since I think the control is excellent otherwise.
Rumen
Telerik team
 answered on 07 Mar 2011
2 answers
97 views
Hi.
My problem is that i can't edit RadComboboxDropDow's without affect to the RadCombobox's size.
Which element in Css should i edit to take affect to RadComboboxDropDow only.
Is there any ways to do? Please let me know.

In additon, it's very great if you can give a figure that show a skin with exactly every element edited.

Thanks and regard.
Trần
Top achievements
Rank 1
 answered on 07 Mar 2011
1 answer
87 views
I'm using the Ajax radcontrol develop website. all is working well. but when I using the gogrid CDN, I got the Javascript error.  ‘Sys' undefined, 'Telerik' undefined. all ajax control are not working. lost all skins.

I try to find out what's problem, but I can't. could anyone help me on this?  Thank you very much.
Mira
Telerik team
 answered on 07 Mar 2011
1 answer
101 views
Hello,

I have a grid that I have Ajaxified in my page by setting the grid as self-updating in my AjaxManager control.  That is, the settings look like this:

<telerik:AjaxSetting AjaxControlID="rgdMyGrid">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="rgdMyGrid" />
    </UpdatedControls>
</telerik:AjaxSetting>

This has worked to Ajaxify the regular grid functions of filtering and sorting just fine.  What I would like to do is have the usercontrol that I load for row-editing be Ajaxified, as well.  I have several radcombo boxes that I would like to update one another in the form.

Does the edit form fall within the radgrid's AjaxManager settings already (so that i shouldn't have to put in new settings for those controls?)

So far, the only way I can get these edit form combo boxes to update one another is to set them for autopostback=true.  I have functions defined in the code-behind to handle the onselectedindexchanged events.  I assumed that these would be used by the Ajax functionality if it worked (which it so far hasn't).

Do I need to autopostback for controls inside my usercontrol edit form?  Should I be Ajaxifying them differently?

Mike
Mira
Telerik team
 answered on 07 Mar 2011
1 answer
39 views
I am styling the Telerik menu using only CSS (no skins).  It is working fine and the results are good, except...I would like to visually separate cascading groups.

I have attached a small screen capture of the current menu with the "Buy" menu selected, and the detail "Search..." item selected.  The items to the right (Search by City, Search by Zip Code, etc.) are items under "Search...".

I would like to visually separate the lower level group (Search by City, Search by Zip Code, etc.) from the second level (Search..., Buying a Home, etc.) with a small (say 3 or 4 pixel) gap where the RED line is drawn on the graphic.

I should probably add that I am NOT setting the width of the items, I am letting the width "float" automatically based on the text contents.

Can you tell me how I can do this using CSS?

Thank you in advance for the assistance!

Lynn
Kate
Telerik team
 answered on 07 Mar 2011
2 answers
53 views
Let's say I have the following classes:

Public Class AddressBook
      Public Property OwnerName As String
    Public Property Friends As IList(Of Contact)
    Public Property Family As IList(Of Contact)
    Public Property Colleagues As IList(Of Contact)
 
End Class
 
Public Class Contact
    Public Property Address As Address
    Public Property Name As String
    Public Property Phone As String
    Public Property DateOfBirth As Date
    Public ReadOnly Property Age As Integer
        Get
            Return Math.Floor((Date.Now - DateOfBirth).Days / 365)
        End Get
    End Property
End Class
 
Public Class Address
    Public Property StreetNumber As Integer
    Public Property StreetName As String
    Public Property ZipCode As String
End Class

Is it possible to Databind the grid to the AdressBook and have the detail tables assigned automatically to properties like Friends, Family and Colleagues ? And then Adress to contact ?

Is it doable declaratively from the aspx file ?
Martin
Top achievements
Rank 1
 answered on 07 Mar 2011
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?