Hi,
I have a RadDatePicker with AutoPostBack="true". I need this post back to perform some logic and fetch some value for other controls.
I have having issue with date validation of this control. I have RequiredFieldValidator which check this date field. Now if I make date textbox as empty it fires the validation but also performs a post back which causes issues. How can I check for blank and invalid date in my RadDatePicker on client side and post back only when it has valid values?
<telerik:RadDatePicker ID="rdpStartDate" runat="server" EnableEmbeddedSkins="true" Skin="Bootstrap" RenderMode="Lightweight" OnSelectedDateChanged="rdpStartDate_SelectedDateChanged" AutoPostBack="true"
Calendar-Font-Size="Small" Calendar-CalendarTableStyle-Font-Size="Small" Calendar-DayStyle-Font-Size="Small" Calendar-TitleStyle-Font-Size="Small" />
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidatorStartDate" ControlToValidate="rdpStartDate" Display="Dynamic" ErrorMessage="Start Date is invalid." CssClass ="controlValidationLabels"> </asp:RequiredFieldValidator>
hi,
I am looking for ways to hide parent tabs/levels in my page as I dig down a hierarchical tabstrip(Telerik.Web.UI.RadTabStrip) that can go upto 4-5 levels deep and is not looking good on the UI. For exampIe, if I have 5 levels of tabs, I only want to display the fifth level. I am using a sitemap for the page. (I am also building a clickable breadcrumb that will allow the user to navigate back and I do not need the parent tabs when I go beyond 2 levels or so)
When I try to hide the tabs by using the tab.Visible property or the tabstrip.Remove it removes all the children including the one that I actually want to display.
I would appreciate any help you can provide.
Thanks,
Pratheesh
After upgrading my .net Framework from 4.0 to 4.6.1 my async upload control seems to have stopped working.
This is the version of the async control I'm using.
<add assembly="Telerik.Web.Design, Version=2012.3.1016.40, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
Could this be the cause of the problem?
Hi,
i am using your Radgrid_Rowdrop Event to sort some rows in the RadGrid, but it seems like the e.DestDataItem variable is often null under Chrome. This Behaviour doesnt appear to happen in Firefox or Internet Explorer. My Browser isnt zoomed in (Standard 100% settings), does anybody know why the Rowdrop Event behaves differently under Chrome?
Thank you in Advance for your Help
Additional Information:
Chrome Version 56.0.2924.87 (64-bit)
I have what seems like a simple problem, but I can't seem to come up with the best way to code my grid to the datasource that I require.
My application is very simple. It has a radtextbox prompt for the Customer #. It has a radbutton for "Find Sales Orders".
In my RadGrid I want to display a list of sales order information for the customer # that the user enters. When the user clicks on the
radbutton "Find Sales Orders", I want to execute my SQL code and populate the RadGrid with the resulting data table. My RadGrid will also have a
telerik:GridCleintSelectColumn, because I want the user to be able to select sales orders from the grid, and when they are finished selecting sales orders, I will
have another radbutton to store those selected sales orders into another SQL table (I've already found a telerik radgrid example that shows me how to code the
events for rowselect and rowdeselect and it persists when paging back and forward. The example also showed me how to loop through the grid and get a list of
selected key values). This example uses a hard coded sqldatasource with a built in SQL select statement. The data source that I
need must be driven from the customer # that the user enters and executed when the user clicks the "Find Sales Orders" button. Does Telerik have any
examples of what I'm describing? Everything I've found for examples so far has a built in select statement that isn't geared from other controls that a
user would typically enter on to the page.
I have a Scheduler populated with a set of data. It is set to display in day view and defaults to today.
On a button click I wish to jump to a particular appointment whilst remaining in day view and highlight it if possible.
So far I have managed to get an object of the appointment, however cannot find any functions on the scheduler itself to 'Go to' and appointment by either its object or its ID.
//Get correct appointment object.
Appointment appointment = RadScheduler1.Appointments.FindByID(1);
//What I want is to go to that appointment on the screen.
RadScheduler1.GoToAppointment(appointment);
I want to remove the files based on the extensions in entire application.by getting the input type 'file' .for the first time means,if we select either one or multiple files it is fine.after we add some more/ one file to the uploader. then it was not working. means that was not firing for next selection .i tried with basic file selection of html that was working fine.You can see the code that i'm trying .
=============================================
<script src="Scripts/jquery-1.9.1.js" type="text/javascript"></script>
<telerik:RadScriptBlock ID="radSript1" runat="server">
<script type="text/javascript">
$(window).load(function () {
$("input[type=file]").change(function () {
var names = [];
debugger;
for (var i = 0; i < $(this).get(0).files.length; ++i) {
names.push($(this).get(0).files[i].name);
}
$("input[type=text]").val(names);
});
});
</script>
</telerik:RadScriptBlock>
===============================
$('input[type="file"]').change(function () {
var indexes = [];
var controlid = this.id;
var rename = controlid.replace('file0', '');
var upload1 = $find(rename);
var count = upload1._selectedFilesCount
for (var a = 0; a < count - 1; a++) {
var fileName = e.target.files[a].name;
var fileextension = '.' + fileName.split('.').pop().toUpperCase();
if (fileextension == ".EXE" || fileextension == ".BAT" || fileextension == ".JS") {
alert("Please Select Valid Formats...");
upload1.deleteFileInputAt(a);
var cnd = $find(rename);
count--;
a = -1;
}
}
});
==============================================
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div>
<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" MultipleFileSelection="Automatic"
ID="rduploadfile" />
<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" MultipleFileSelection="Automatic"
ID="RadAsyncUpload1" />
<input type="file" id="fl1" name="file1" multiple="multiple" />
<input type="file" id="fl2" name="file" multiple="multiple" />
<input name="file" type="text" />
</div>
======================================