Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
60 views
I am trying to add a Required validation to a bound Drop Down Box.  I have code that does this for a text box and it works, but it doesn't work for a Drop Down box.

This Works:

    Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated


        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then


            Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem)
            Dim editor As GridTextBoxColumnEditor = DirectCast(item.EditManager.GetColumnEditor("CurrencyTarget_NativeCurrent"), GridTextBoxColumnEditor)
            Dim cell As TableCell = DirectCast(editor.TextBoxControl.Parent, TableCell)
            Dim validator As New CompareValidator ' RequiredFieldValidator()


            editor.TextBoxControl.ID = "NCReqValidator"
            validator.ControlToValidate = editor.TextBoxControl.ID
            validator.Operator = ValidationCompareOperator.GreaterThanEqual
            validator.ValueToCompare = "0"
            validator.ErrorMessage = "* Native Current is a required field"
            cell.Controls.Add(validator)

        End If
End Sub

But when I add the same code for a drop down box, it does not:

    Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated


        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then
            Dim item2 As GridEditableItem = TryCast(e.Item, GridEditableItem)
            Dim editor2 As GridDropDownListColumnEditor = DirectCast(item2.EditManager.GetColumnEditor("ddCountryCode"), GridDropDownListColumnEditor)
            Dim cell2 As TableCell = DirectCast(editor2.DropDownListControl.Parent, TableCell)
            Dim validator2 As New CompareValidator ' RequiredFieldValidator()

            editor2.DropDownListControl.ID = "CCReqValidator"
            validator2.ControlToValidate = editor2.DropDownListControl.ID
            validator2.Operator = ValidationCompareOperator.NotEqual
            validator2.ValueToCompare = "XXX"
            validator2.ErrorMessage = "* Country Code is a required field"
            cell2.Controls.Add(validator2)

        End If


    End Sub
Pavlina
Telerik team
 answered on 09 Dec 2011
5 answers
134 views
Hello

Is there something to enable in order to interact with the scheduler and his appointments... ?

I try on Android (ASUS Transformer) and I can't open or resize an appointment.

Thanks in advance
Ivan Zhekov
Telerik team
 answered on 09 Dec 2011
1 answer
40 views
Hi,

I just saw your new home page(attached image),we've a requirement to build the same functionality (as shown in the red rectangular box in the image). I was just about to search for this functionality in your website....and how lucky am I to find it in your home page... :-) Could you please let me know whether I can use telerik radajax controls to achieve this same functionality? If yes, which controls should I use?  Could you please provide a sample example?

Regards,
SW
Ivan Zhekov
Telerik team
 answered on 09 Dec 2011
1 answer
54 views
In your example of the grid paging, if it only displays a few lines the grid height will shrink in so the controls below it will more up filling the space. my question is in your example you use your script manager not the default asp script manage that i need for some of the other controls on the form. Do I HAVE to use your script manager to make the grid work properly.
Also the "Page size" combo box does not display correctly as well, the box is not shown but you a select it a it does drop down with the dropdown in transparent state.
Is there a way to have the paging controls FIX to the bottom and the scroll bar will not over lay it?

Thank John
Pavlina
Telerik team
 answered on 09 Dec 2011
3 answers
85 views
Is it possible to use a date picker for the AsynchUpload additional field?

Any help would be appreciated.

Allan
Bozhidar
Telerik team
 answered on 09 Dec 2011
5 answers
216 views
Hello,

We are evaluating your product. It works perfect.
The only question I have right for now is related to export to PDF.

I cannot find a way to add something like "Page 1 of 9", "Page 2 of 9" and so on to the footer of the pages in exported document. I'm looking at your example with Sushi Menu and my export work exactly like the example: there is no footer with page numbers.
Please advice how can I get the needed functionality.

Best Regards,
Olga

Daniel
Telerik team
 answered on 09 Dec 2011
3 answers
85 views
Hi,

I just saw a little bug on the tooltip on the demo website: http://demos.telerik.com/aspnet-ajax/tooltip/examples/default/defaultcs.aspx

When the tooltip is centered at the bottom, everything is fine:
http://dl.dropbox.com/u/368403/Telerik/TooltipBottom.png 

But, when we set the Tooltip Center top, this little image which "point" the source element, is inside the tooltip instead of outside:
http://dl.dropbox.com/u/368403/Telerik/TooltipTop.png

Thank you
Marin Bratanov
Telerik team
 answered on 09 Dec 2011
8 answers
130 views
Hi there,
   Is there any documentation/Tutorial regarding skinning telerik  controls by altering each given control Sprite template? And is there a central repository for such template within the given demo?


Best Regards,
Eng
Ivan Zhekov
Telerik team
 answered on 09 Dec 2011
1 answer
102 views
Hi All.
Could you please advice how to find issue in scheduler advanced form when creating or editing appointments.
when doing this update panel just freeze and not coming back to appointments view. The appointment itself is created or edited successfully. So if click F5, whole page is reloaded and I can see new or updated appointment.

Thanks.
Peter
Telerik team
 answered on 09 Dec 2011
1 answer
74 views
Using the following:

<telerik:RadScheduler
    ID="RadScheduler"
    Skin=""
    EnableEmbeddedSkins="false"
    EnableEmbeddedBaseStylesheet="false"
    MonthView-HeaderDateFormat="MMMM yyyy"
    DataKeyField="EventID"
    DataSubjectField="Subject"
    DataStartField="Start"
    DataEndField="End"
    ReadOnly="true"
    OnClientAppointmentClick="AppointmentClick"
    OnNavigationComplete="RadScheduler_NavigationComplete"
    runat="server">
</telerik:RadScheduler>

When you click on the datepicker, the pop-up RadCalendar that is rendered does not include classes such as rcHover, rcToday or rcOtherMonth (and possibly others).

Setting the Skin property causes the pop-up calendar to render all the class names as expected.

Version 2011.3.1115.40
Peter
Telerik team
 answered on 09 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?