Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
346 views
Hi,
I am using a Datepicker in a Grid and want to prevent users from selecting date beyond a MinDate.

At first i tried to set it in the ItemDataBound event:

 

 

If (TypeOf e.Item Is GridEditableItem) AndAlso (e.Item.IsInEditMode) Then
  
Dim edititem As GridEditableItem = DirectCast(e.Item, GridEditableItem)
  
Dim datpkr As RadDatePicker = DirectCast(edititem("DateUpdated").Controls(0), RadDatePicker)
  
datpkr.MaxDate = DateTime.Today
  
datpkr.MinDate =DateTime.Today.AddDays(-15)
End If

The issue with this is that the dates are still selectable but i get an "alert" icon in the datepicker box.. I would like the users to try to not select dates beyond mindate. (saves me writing validation code)
 
I then tried hardcoding the mindate in desgin mode as shown below:

 

<telerik:GridDateTimeColumn DataField="DateUpdated" HeaderText="DateUpdated"
  UniqueName="DateUpdated" PickerType="DatePicker" MinDate="03/01/2012" />

when i did that, i was not able to select dates before the mindate, which is what i want to do.

Question:
I really need to set the mindate from the server-side (ItemDataBound event) as the mindate would be set to another date field in the database table.
is there a way to "not select dates" les than Mindate from the server side? Or am i doing something wrong?

I did check the forum for a similar issue/solution but did not find something related.

Thanks
Donald

Am using Q1, 2012 version

Eyup
Telerik team
 answered on 28 Nov 2018
1 answer
297 views
I have been searching for a solution for a while and have not found anything similar to my situation. I am using a RadGrid to display 5 columns, out of which the relevant ones for this question are Total, OrderDate and DeliveryDate columns. I want to SUM the Total under the Order Date and Delivery Date column footer respectively, based on two conditions: Order Date > Delivery Date (when this condition is met, Total for such rows is displayed under Order Date), and Delivery date = Order Date (when this condition is met, Total for such rows is displayed under Delivery Date.) Looking for possible ways to do this. Thank you in advance!
Marin Bratanov
Telerik team
 answered on 28 Nov 2018
1 answer
246 views

Hi,

I've been at this one for ages. 

I have a tree view which when a node is clicked, gets the data from the node.value and shows it. (ajaxed)
I've tried everything to do with ajax timeout settings in script manager and such but it still happens.

What could I test for when the node is clicked, that might throw an error? Then I can redirect.

Cheers,

Jon

Marin Bratanov
Telerik team
 answered on 28 Nov 2018
2 answers
541 views
HI Telerik,

I am using radasyncupload control and I want to fill a textbox with the file name after the file uploaded is complete.

Thanks
TelDev
Sean
Top achievements
Rank 1
 answered on 28 Nov 2018
11 answers
1.2K+ views
Hello Telerik team,

I know there are hundreds of posts around this topic, but I couldn't find a specific one regarding this issue

I set

RadGrid1.ExportSettings.Excel.FileExtension = "xlsx";

I expect that the exported file will have an extension of .xslx

Instead, I am getting RadGridExport.xslx.xsl  ???

How do I get the file extension I want?

Thanks
Bob
Peter Milchev
Telerik team
 answered on 28 Nov 2018
4 answers
1.6K+ views
I have a RadGrid with an update function and an EditItemTemplate.
In here I have a RadDropDownList which is populated by a SQLDataSource.

My issue is: when a user clicks Edit on a row and the dropdown is displayed, how do I have the dropdown select the row's value from the list?

Similar to how the textbox is populated with:

Text='<%# Bind( "Notes") %>

What is the equivalent for dropdown?
My dropdown:
<telerik:RadDropDownList ID="rddlLocations" runat="server" DataSourceID="GetLocationsSqlDataSource" DataTextField="Location" DataValueField="ID"></telerik:RadDropDownList>

Attila Antal
Telerik team
 answered on 28 Nov 2018
4 answers
916 views

Hey Everyone,

I was wondering if there was anyone that could assist me in making a rad asp.net dropdown button. I am fairly new to the telerik controls and have been trying to create this for a couple of days now. any help would be appreciated.

Rumen
Telerik team
 answered on 28 Nov 2018
0 answers
87 views
How to create columns dynamically  by configuration file

<config>
  <parameter Name="code" FieldName="MATERIAL"  Width="80"    />
  <parameter Name="typeID" FieldName="CLASS"  Width="10"    />  
</config>

gao
Top achievements
Rank 1
 asked on 28 Nov 2018
1 answer
335 views

I need to check if hidden field value is 'Y' than it should change tab smoothly but if there is value 'N' in my hidden field than if shoudl open radconfirm before change tab. For example 

I have tabs in following format

 

1       2      3        4        5

Now when I select from 1 to 2 if should check if hidden filed value is 'N' than it should ask me to move on tab 2 in radconfirm if I select no than I should keep me on tab 1 and if I click on OK than it should redirect me on tab 2.

 

Please help me.

 

Thanks 

Manish

 

Marin Bratanov
Telerik team
 answered on 27 Nov 2018
1 answer
155 views

I'm using Telerik UI for ASP.NET AJAX version 2018.3.910.45. When I run my site from Visual Studio on my laptop, various parts of the UI look different than on the QA server. Using my login dialog as an example, I can see that the markup is different. I'm testing using Chrome.

I need to make the controls display the same in both places. Anybody have any thoughts on how to make that happen?

Here is the example of the markup difference:

Laptop markup (IIS Express):
<button type="submit" name="btnLogin" value="Login" id="btnLogin" class="RadButton RadButton_Bootstrap rbButton rbRounded rbIconButton" style="height:30px;width:100%;" tabindex="0"><span class="rbText">Login</span><input id="btnLogin_ClientState" name="btnLogin_ClientState" type="hidden" autocomplete="off" value="{"text":"Login","value":"","checked":false,"target":"","navigateUrl":"","commandName":"","commandArgument":"","autoPostBack":true,"selectedToggleStateIndex":0,"validationGroup":"vgLogin","readOnly":false,"primary":false,"enabled":true}"></button>

Server (IIS 7):
<span id="btnLogin" class="RadButton RadButton_Bootstrap rbVerticalButton" style="display:inline-block;height:30px;width:100%;height:30px;" tabindex="0"><input class="rbDecorated" type="submit" name="btnLogin" id="btnLogin_input" value="Login" style="width:100%;padding-left:0;padding-right:4px;height:30px;" tabindex="-1"><input id="btnLogin_ClientState" name="btnLogin_ClientState" type="hidden" autocomplete="off" value="{"text":"Login","value":"","checked":false,"target":"","navigateUrl":"","commandName":"","commandArgument":"","autoPostBack":true,"selectedToggleStateIndex":0,"validationGroup":"vgLogin","readOnly":false,"primary":false,"enabled":true}"></span>

Rumen
Telerik team
 answered on 27 Nov 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?