Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
124 views

In Old Telerik Version, RangeValidator  triggers server side validation on Keypress.

But, in the latest Telerik version RangeValidator  triggers server side validation on Lostfocus (onBlur).

My Requirement is to trigger server side validation on KeyPress

Can you guide me how I can accomplish this with the latest Telerik Version. 

This is the current code:

                                RangeValidator rng = new RangeValidator();
rng.ControlToValidate = sControlID;
rng.CssClass = "val";
rng.Display = ValidatorDisplay.Dynamic;
rng.EnableClientScript = true;
rng.ErrorMessage = RangeErrorMessage;
rng.MaximumValue = RangeMaxVal;
rng.MinimumValue = RangeMinVal;
rng.EnableClientScript = true;//Add the validator
TextControl.Parent.Controls.Add(rng);
Page.Validators.Add(rng);

 

Thanks in Advance.

Dinesh
Top achievements
Rank 1
 asked on 10 Dec 2021
2 answers
667 views

Hello,

I have a RadGrid with a custom EditForm that I use to insert new items.  Within this form is a RadAsyncUpload control.  How do I make this control required without server side code?

Also, I'm a beginner with Telerik and have seen countless code snippets online.  None of them address having the control inside an EditForm, so if your solution could show a complete example vs code snippet I would appreciate it.

Jonathan
Top achievements
Rank 1
Iron
 answered on 09 Dec 2021
1 answer
201 views

Class Type - RadCombobox

Value=1  text=one  --> Select this value --> visible radcombobox 1 (Textbox1 visible false)

value=2  text=two --> Select this value--> visible radcombobox 1 (Textbox1 visible false)

value=3 text=others --> visible Textbox1 --> radcombobox 1(visible false)

then i click the class Type(Others)

 

all the controls in RadGriview.

 

i need solution using javascript

Please help.....

 

Attila Antal
Telerik team
 answered on 09 Dec 2021
0 answers
137 views

Hello,

The data I have coming back from the database is TRIM'ed up and when inspecting the RadGrid the cells do not have extra spacing:

 

However, when I use the built in export functionality to export the grid to an Excel document some of the cells suddenly take on "Blank" values. They become identified when enabling the Excel filter and selecting just "Blank" values:

When copying/pasting into Notepad++ the referenced cell that clearly has "Open" in the value is pasted as a 4 blank rows with no "Open" value to be found. This leads me to believe that somewhere along the export process the value is either lost or so many blank filler spaces are added that they conflict with the Excel filter. Has anyone run into something similar to this? Any suggestions appreciated. Thanks!

 

Matt
Top achievements
Rank 1
 updated question on 09 Dec 2021
2 answers
117 views

Hi Telerik Support Rep!

I want to have the demo of Gantt Chart using Telerik. I have downloaded its trial software suite using the link below

https://demos.telerik.com/aspnet-ajax/gantt/examples/overview/defaultcs.aspx. It was an exe file with the name "TelerikUIForAspNetCoreSetup". It has installed  its controls in the Toolbox but I am not been able to access Gantt Chart. 

I am following the demo solution from the same link but I am not been able to compile the project as the error says

"Error : Unknown server tag 'telerik:RadGantt'"

Plz help ASAP...I want to have the demo of GanttChart.

 

asif rehman
Top achievements
Rank 1
Iron
 answered on 08 Dec 2021
1 answer
242 views

I have a PDF with a number of text fields that have a number format. I am updating them with calculated values: 

     If PDFdocument.AcroForm.FormFields.Contains(row.Item("XMLField").ToString()) Then
         field = PDFdocument.AcroForm.FormFields.Item(row.Item("XMLField").ToString())

         Select Case field.FieldType
               Case FormFieldType.TextBox
                         ModifyTextBox(CType(field, TextBoxField), OutText)
               Case FormFieldType.CheckBox
                         Try
                              ModifyCheckBox(CType(field, CheckBoxField), New String() {row.Item("OutText").ToString()})
                         Catch
                         End Try
         End Select
     End If

When this executes the number format is over written and I see 1222777.00 instead of 1,222,777.00.

Is there a way to either not lose the number format or reset the number format for the PDF Text field.? 

Lee
Top achievements
Rank 1
Iron
 answered on 08 Dec 2021
1 answer
1.5K+ views

I have a website that uses Telerik as editor. It's a custom build website. A couple of weeks ago I noticed the editor didn't work anymore on my Mac (iOS Catalina 15.10.7), the content field doesn't load and I get a shitload of Failed to load resourse errors in the developerwindow. Included is a printscreen of the editor. At first I thought it was because of the latest version of Java, I installed the day before, because the editor still worked on my 10-year old Macbook which hadn't been updated. 

That all changed today, when I wanted to create a new news item and got the same black content field als on my Mac. Does anyone have an idea what could cause this problem. This is a huge problem for me, because the way it is right now I can't publish new items anymore and that's devastating for an online Motorcycle magazine. Normally this is a issue a website developer should solve, but the guy who custom build our website has vanished, so now I've turned to this forum to hopefully get an answer. 

 

 

Rumen
Telerik team
 updated answer on 08 Dec 2021
1 answer
371 views
Hello,
i have a webform with 4 RadDatePickers. In one control i want to have two different dates.  In the dateInput-control is a date from a database and in the calender-control should be now.
The code look like this:

If IsNothing(Sfo.DatumletztPrüfung) = False AndAlso IsDate(Sfo.DatumletztPrüfung) = True Then
            RadDateLetztePrüfung.DateInput.SelectedDate = Convert.ToDateTime(Sfo.DatumletztPrüfung)
            RadDateLetztePrüfung.Calendar.SelectedDate = Now()
End If

But the controls are empty. Only when is set the date to the RadDatePicker-Control:
 RadDateLetztePrüfung.SelectedDate = Convert.ToDateTime(Sfo.DatumletztPrüfung)
The Date is shown.
What have i made wrong?

Kind regards
Jens

Doncho
Telerik team
 answered on 07 Dec 2021
0 answers
159 views

Hi,

 

When I switch a radcombobox to loadondemand i get this error message.

Otherwise it is working perfectly, can you tell me what I am doing wrong?

 

  <asp:SqlDataSource ID="sds_start" ConnectionString="<%$ connectionstrings: aaa %>" runat="server"></asp:SqlDataSource>
                  <telerik:RadComboBox ID="rcb_start" EnableAutomaticLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                ItemsPerRequest="10" EmptyMessage="Type..." DataTextField="location" DataValueField="iata" Filter="Contains" MarkFirstMatch="true" MinFilterLength="3" DropDownAutoWidth="Enabled" DataSourceID="sds_start" runat="server">
                  </telerik:RadComboBox>

 

 

Please refer to attached screenshot.

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 03 Dec 2021
1 answer
163 views
hi, I would like to display a lot of data on a RadMap.  is it possible to load markers on demand based on the geographic map quadrant displayed?
Vessy
Telerik team
 answered on 01 Dec 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?