Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
60 views
I am trying to convert to telerik RadDateTimePicker.

Private
Function CreateWebDateTimeEdit(ByVal controlName As String, ByVal dateOffset As Integer, ByVal dateMask As String, ByVal minimumdate As DateTime, ByVal maximumdate As DateTime, ByVal variabledefault As String) As WebDateTimeEdit
        Dim wdte As New WebDateTimeEdit
        wdte.ID = controlName
 
        wdte.Value = DateTime.Now.AddDays(dateOffset)
        wdte.DisplayModeFormat = dateMask
        wdte.EditModeFormat = dateMask
 
        If ViewState("VariableValues") IsNot Nothing AndAlso CType(ViewState("VariableValues"), Dictionary(Of String, String)).ContainsKey(controlName) Then
            wdte.Value = CType(ViewState("VariableValues"), Dictionary(Of String, String)).Item(controlName)
        ElseIf variabledefault.Length > 0 AndAlso Not variabledefault.ToUpper.Equals("[$NONE$]") Then
            wdte.Value = DateTime.Parse(variabledefault)
        End If
 
        wdte.MinValue = minimumdate
        wdte.MaxValue = maximumdate
 
        Return wdte
    End Function

I tried the following.

Private Function CreateWebDateTimeEdit(ByVal controlName As String, ByVal dateOffset As Integer, ByVal dateMask As String, ByVal minimumdate As DateTime, ByVal maximumdate As DateTime, ByVal variabledefault As String) As RadDateTimePicker
        Dim wdte As New RadDateTimePicker
        wdte.ID = controlName
 
        wdte.SelectedDate = DateTime.Now.AddDays(dateOffset)
        wdte.DataInput.DisplayModeFormat = dateMask
        'wdte.EditModeFormat = dateMask  //did not find a match
 
        If ViewState("VariableValues") IsNot Nothing AndAlso CType(ViewState("VariableValues"), Dictionary(Of String, String)).ContainsKey(controlName) Then
            'wdte.Value = CType(ViewState("VariableValues"), Dictionary(Of String, String)).Item(controlName)
            wdte.SeletedDate = CType(ViewState("VariableValues"), Dictionary(Of String, String)).Item(controlName)
        ElseIf variabledefault.Length > 0 AndAlso Not variabledefault.ToUpper.Equals("[$NONE$]") Then
            'wdte.Value = DateTime.Parse(variabledefault)
            wdte.SeletedDate = DateTime.Parse(variabledefault)
        End If
 
        wdte.MinDate = minimumdate
        wdte.MaxDate = maximumdate
 
        Return wdte
    End Function
Everytime I try to save the dates to the database error
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.

I am setting my date format to "M/dd/yyyy HH:mm"

It is changing to M-dd-yyyy-hh-mm




Shelby
Top achievements
Rank 1
 answered on 28 Jan 2014
1 answer
241 views
hi,
i'm using radgrid with default radfilter, when i filter in a column after postback the cursor focus moved away. how to set the cursor focus in currently filtered column after postback? please provide code snippet.
Viktor Tachev
Telerik team
 answered on 28 Jan 2014
1 answer
55 views
Hi, 
I am facing issues when using the Timeline view(set timeline view for 1 month-31 slot each slot per day). 
Case 1:
- Plan for an appointment eg: 22 Jan 2013 11.00am to 23 Jan 2013 9.00am. So total hour is 22 hours. 
- Open the planning, notice that appointment shown only on 22 Jan 2013 [Not ok]
- The appointment should showing for two days 22 Jan and 23 Jan(as start from 22 Jan and end at 23 Jan)

Case 2:
If i set another appoinment eg: 22 Jan 2013 11.00am to 23 Jan 11.30am. Total hour more than 24 hours.
- Open the planning, notice that the appoinment shown for both 22 Jan and 23 Jan. [It work fine]

I tried in http://demos.telerik.com/aspnet-ajax/scheduler/examples/month-view/defaultcs.aspx it work fine in both case 1 and case 2. 

May I know how to solve the case 1 issues? 
Thanks.

Regards,
Mee Ling
Plamen
Telerik team
 answered on 28 Jan 2014
1 answer
97 views
Hi Telerik,

The RadEditor's bold and italicize found in editor tools are not working only the underline works. It does not make it bold nor italicize when clicking on the tool.

I used the following browsers:
  • Google Chrome version is 32.0.1700.76 m
  • Firefox version is 13.0.1

It is working in IE though.


Telerik Runtime version - v4.0.30319

Telerik Version - 2011.2.712.40


Thank you,

Regards,
Ema
Marin Bratanov
Telerik team
 answered on 28 Jan 2014
15 answers
213 views
Chrome recently updated to version 32.0.1700.72 which has caused issues with drag-and-drop from a RadGrid once the page has been scrolled.

This can be reproduced by going to the demo site, http://demos.telerik.com/aspnet-ajax/scheduler/examples/draganddropintegration/defaultcs.aspx?product=grid, scrolling down slightly then attempting to drag an item from the radgrid to the scheduler. You will notice the dragged item is offset by the amount scrolled.

This is only an issue in the latest version of Google Chrome and works fine in all other browsers and works fine in Google Chrome version 31.

Has anyone found a solution to this yet or know of any workarounds?


Marcus
Top achievements
Rank 1
 answered on 28 Jan 2014
1 answer
168 views
Greetings,

Can anyone tell me if the RAD ImageEditor provides an eraser toolbar button, similar to what is found in MS Paint?  If not, might this be planned for a future release, since it is a commonly used feature?

Thanks.



Niko
Telerik team
 answered on 28 Jan 2014
1 answer
100 views
Hi there

I'm trying to add a css file from code behind but I notice that I get this error:

Skipped loading 1 invalid resource.

Dim stylesheetItem As StyleSheetReference = New StyleSheetReference()
stylesheetItem.Path = "~/App_Themes/test.css"
StylesheetManager1.StyleSheets.Add(stylesheetItem)

On my master theme I got:
  <telerik:radstylesheetmanager ID="StylesheetManager1" runat="server" EnableStyleSheetCombine="true">
        <StyleSheets>
            <telerik:StyleSheetReference Path="~/App_Themes/common.min.css" />
        </StyleSheets>        
    </telerik:radstylesheetmanager>

Can stylesheets be added from code behind?

Regards DotnetShadow
Rob
Top achievements
Rank 1
 answered on 28 Jan 2014
3 answers
43 views
Hi,

Chunk upload functionality doesn't work on IE8,IE10 browsers using Telerik library version 2012.3.1016.35.
On FF it works fine.
DisablePlugins="true"
Any chances to make it work using the specified lib version?

Unfortunately, can't upgrade the Telerik library to the latest one.
I know that the chunk upload works on all browsers in the latest version.

Regards,
Denis
Peter Filipov
Telerik team
 answered on 28 Jan 2014
2 answers
35 views
Hi All,

   I am using JQueries for my project that is having telerik 2011 dll, but I did upgrade the telerik version from 2011 to 2013, we are using jqueries for POP up windows and other areas too, in telerik 2011 UI design of grids and POP up is working fine, but after upgrade
all my pop up are stuck that were using JQueries and UI design issue of telerik rad-grid. I am using JQuery version 1.7.
What I want to ask?
Weather I need to change JQuery to each and every page according to the version that support Telerik 2013 or there is some short cut solution, that can match the JQuery version with Telerik 2013?
Waiting for the positive feedback. Thanks in advance.
Vivek
Top achievements
Rank 1
 answered on 28 Jan 2014
1 answer
72 views
Hello!
I use load on demand treeview. I have to use tri state checkboxes. How can I set indeterminate state on web server side? If it's not possible can I do it on client side?
I set the state on client side like the following: node.get_checkBoxElement().className = "rtIndeterminate". In this case if I click on the checkbox the state is not changed. It does not work for me.
---
Best regards, 
Denis
Princy
Top achievements
Rank 2
 answered on 28 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?