Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
167 views
I've just installed Q1 2012 and I have a display problem with my treeviews. The html in node's text is displayed as is (see screenshot).
I generate the treeviews in code:

...
var title = String.Format(
"Unclassified <span style='font-size:9px'>({0})</span>", nb);
RadTreeNode unclassified = new RadTreeNode(title, "-2");
...

What is the fastest fix?
Ed
Top achievements
Rank 1
 answered on 01 Mar 2012
3 answers
97 views
<telerik:GridTemplateColumn HeaderText="Image Url">
        <ItemTemplate>       
        <asp:Label ID="lblImageUrl" runat="server" Text='<%# ShortenText.Shorten(Eval("imageURL"), 20) %>' />
        </ItemTemplate>
        <EditItemTemplate>
        <asp:TextBox ID="txtImageUrl" runat="server" Text='<%# Eval("imageURL") %>' /><asp:RequiredFieldValidator
            ID="ImageUrlValidator" runat="server" ErrorMessage="Image URL is required!"
            ControlToValidate="txtImageUrl" Text="*" ValidationGroup="AdvertsGroup" /><asp:RegularExpressionValidator
            ID="ImageUrlValidator1" runat="server"
            ErrorMessage="Image URL can be only image path!" Text="*"
            ControlToValidate="txtImageUrl"
            ValidationExpression="http(s?)://([\w-]+\.)+[\w-]+(/[\w- ./]*)+\.(?:gif|jpg|jpeg|png|bmp|GIF|JPEG|JPG|PNG|BMP|Gif|Jpg|Jpeg|Png|Bmp)$"
            ValidationGroup="AdvertsGroup" />
        </EditItemTemplate>
        </telerik:GridTemplateColumn>
         
        <telerik:GridTemplateColumn HeaderText="Navigate Url">
        <ItemTemplate>       
        <asp:Label ID="lblNavigateUrl" runat="server" Text='<%# ShortenText.Shorten(Eval("navigateURL"), 20) %>' />
        </ItemTemplate>
        <EditItemTemplate>
        <asp:TextBox ID="txtNavigateUrl" runat="server" Text='<%# Eval("navigateURL") %>' /><asp:RequiredFieldValidator
                ID="NavigateUrlValidator" runat="server" ErrorMessage="Navigate URL is required!"
                ControlToValidate="txtNavigateUrl" Text="*" ValidationGroup="AdvertsGroup" /><asp:RegularExpressionValidator
                ID="NavigateUrlValidator1" runat="server" ErrorMessage="Navigate URL should be valid internet url!"
                ControlToValidate="txtNavigateUrl" Text="*"
                ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" ValidationGroup="AdvertsGroup" />
        </EditItemTemplate>
        </telerik:GridTemplateColumn>

Basically they should not be able to insert anything but a valid image path (URL) in the txtImageUrl and valid target url in the txtNavigateUrl fields. Both fields are required. How to achieve that? Obviously the validators i have there are ignored when i click Insert link (insert mode).

Thank you

Jugoslav
Top achievements
Rank 1
 answered on 29 Feb 2012
0 answers
79 views

We encountered following problems with the version 2012.1.215.35

1. Enter button stopped working for all the pages, if focus is on any of the other controls on the page. For example , in login page, the default onload cursor was on username field, if we just pressed entered, it did not work, if we clicked on any other point on the page and clicked enter, it worked as expected.

2. RadDatePicker control - behavior changed for some pages- if the date field is clicked, in first click, it was highlighting the date and showed the calendar control in second click.

After downloading the version 2011.3.1305.35, these problems were gone.


Thanks
kachy
Top achievements
Rank 1
 asked on 29 Feb 2012
2 answers
49 views
Hello,

I am using a RadGrid control, and as it currently stands, you can drag a grouping field (with the tool tip "Drag out of the bar to ungroup"), even though "AllowDragToGroup" = false. This is causing a javascript error "Sys.WebForms.PageRequestManagerServerErrorException".

I can't find an option to disable the dragging of this field, does anyone have a solution?

Thanks for any help
Jo
Top achievements
Rank 1
 answered on 29 Feb 2012
9 answers
146 views
Hi,
Can you help me with an example of setting a filter on a oData Clientside binded RadGrid.
For example:
I want to filter my Table Patients on Surname contains 'Jan'


Hope you can help me.
Greetings
Marcel de Groot
Ronak
Top achievements
Rank 1
 answered on 29 Feb 2012
2 answers
91 views
I've got a radEditor on a form.

I was doing a bit of testing and so went to the BBC home page and selected all the content on the page and copied it then pasted it to my editor.

You can see the results on this Jing video.

I'd be gratefule for any comments on how I might prevent either of the results shown in the video from occurring.
Stuart Hemming
Top achievements
Rank 2
 answered on 29 Feb 2012
1 answer
118 views

I am populating a Rad Scheduler using a WCF services, some of the items cannot be deleted so I have set AllowDelete to be false this does not seem to work and when I hover over the appointment the delete image still appears.

I have also tried to set some other information based on whether the appointment is a parent or child and this does not seem to work either, see my code below. The subject of the appointment changes to be either "Parent: ...." or "Child: ...." so the IF statement is working correctly. But the other changes I am trying to make do not seem to work correctly.

Am I adding the appointments incorrectly/is there another way to do this that will work.

Public Overloads Overrides Function GetAppointments(ByVal Owner As RadScheduler) As IEnumerable(Of Appointment)
 
     Dim AppointmentsList As New List(Of Appointment)
    'get a list of appointments to add and put them in the list above
 
    Do While Rs.ReadNext
 
        Dim AppointmentItem As New Appointment
 
        Slot.Fill(Rs.ReadRow)
 
        AppointmentItem.Start = Slot.Start_DT.Value
        AppointmentItem.End = Slot.End_DT.Value
        AppointmentItem.AllowEdit = False
        AppointmentItem.ID = Slot.GUI.Value
 
        If Slot.ParentGUI.IsNull Then
            AppointmentItem.Subject = "Parent: " & Slot.Name.Value
            AppointmentItem.AllowDelete = False
            AppointmentItem.ContextMenuID = "SchedulerAppointmentContextMenuDelete"
 
        Else
            AppointmentItem.Subject = "Child: " & Slot.Name.Value
            AppointmentItem.RecurrenceParentID = Slot.ParentGUI.Value
            AppointmentItem.AllowDelete = False
            AppointmentItem.BackColor = System.Drawing.Color.Black
            AppointmentItem.ForeColor = Drawing.Color.Pink
            AppointmentItem.ContextMenuID = "SchedulerAppointmentContextMenuNothing"
            ' have tried this too, AppointmentItem.ContextMenuID = Nothing
 
        End If
 
        AppointmentsList.Add(AppointmentItem)
 
    Loop
 
    Rs.Close()
 
    Return AppointmentsList
 
End Function

Plamen
Telerik team
 answered on 29 Feb 2012
3 answers
75 views
Hi,

I have grid that uses OpenAccessLinqDataSource with automatic insert, update and delete. I'm trying to implement insert but with following scenario.

Data table (as class) has 4 properties. ID, IdFirm, Number and Activity. I have set invisible property for ID and IdFirm colum. For ID is clear why I hide it. As for IdFirm I dont wont to display it because it must be connected to some othe class on page and user MUST NOT enter that information.

How to implement automatic insert and intersept that call to add IdFirm property to object and then save it database.

I use command item (AddNewRecordButton)

Marko
Marko Gluhak
Top achievements
Rank 1
 answered on 29 Feb 2012
4 answers
38 views
How come the calendar demos don't work? There used to be a full featured, or close to it, demo with code samples
Erik
Top achievements
Rank 1
 answered on 29 Feb 2012
2 answers
88 views
Most end-users, if they recognise the word "Ajax" at all, prolly still think it is a product to clean the bathtub with.

Consider changing the default text for the Spell Check button from "AJAX Spellchecker to "Spellchecker"

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 29 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?