Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
2.1K+ views
HI,
i have two rad datepicker  control. i want to valiate that User-entered date range should not exceed 90 days from the startdate using javascript. any one help me.
thx
chandrasekarank
Nital
Top achievements
Rank 1
 answered on 26 Mar 2013
1 answer
189 views
Hi,

There is a RadTextBox in my web page in which I want to perform a client side validation as the user enters text. So for the same, I have attached the OnValueChanged event but its not firing as the user types some text. Any help or suggestion?

Thanks,
Tia
Princy
Top achievements
Rank 2
 answered on 26 Mar 2013
1 answer
164 views
Hi,

Please let me know whether the RadTextBox provides support for the new HTML5 input types such as Number, Date etc.

Thanks,
Tia.
Princy
Top achievements
Rank 2
 answered on 26 Mar 2013
1 answer
122 views
Hi,

How to give alternate background color to the RadCombobox dropdown list items? 

Thank you,
Saravanan.
Princy
Top achievements
Rank 2
 answered on 26 Mar 2013
3 answers
144 views
I have created on login page using 2 Rad TextBox Control by UserName and Password. Once I login, from the browser, it did not prompt to remember password.

But when I create the login page using ASP.NET Textbox Control, then it prompt appear from the browser.

How can I resolve the problem using RadTextBox Control to prompt from browser to "Remember the Password"?

Please help urgent.
Princy
Top achievements
Rank 2
 answered on 26 Mar 2013
1 answer
129 views
Hello,

I am completely new to Telerik RadControls and was struggling with how to dynamically load a user control into the RadAjaxPanel. I want a sample runnable application to understand the above. Any help appreciated.

Thanks and Regards,
Needha.
Princy
Top achievements
Rank 2
 answered on 26 Mar 2013
3 answers
331 views
Hello,

I am using a RadGrid and I want to insert a new item into the grid using the built-in RadGrid functionality.  The new item has been defined as follows:

<EditFormSettings EditFormType="Template">

<FormTemplate>

<div>

<h3>

New Team Culture Assessment

</h3>

<table>

<tr>

<td>

<asp:Label ID="EntitiesLabel" runat="server" Text="Entities"></asp:Label>

</td>

<td>

<asp:DropDownList ID="EntityList" runat="server" AutoPostBack="True"

OnSelectedIndexChanged = "Entity_selected">

</asp:DropDownList>

 

</td>

</tr>

<tr>

<td>

<asp:Label ID="TeamsLabel" runat="server" Text="Teams"></asp:Label>

</td>

<td>

<asp:DropDownList ID="TeamList" runat="server">

</asp:DropDownList>

</td>

</tr>

</table>

</div>

</FormTemplate>

</EditFormSettings

 

 

>

My questions:

1.  I want to populate the EntityList and TeamList drop-downs in the page-load using "object data source", but when I access them directly, I am getting an error saying that the name EntityList is not found in current context...here is what I am doing in !postback in page_load:

var bd = new BfEntityDAO();

List<BfEntity> ents = bd.GetEntities();

EntityList.DataSource = ents;

EntityList.DataTextField = "BfEntityName";

EntityList.DataBind();

How can I populate these drop-downs so that the user can see the values when he inserts a new item?

2.  When the user opens the insert form and selects an entity from the entitylist drop-down, I want to populate the teamlist drop-down based on the value selected in the entitylist drop-down.  How can I accomplish this?

This is the code snippet I am using currently in the codebehind, but the method is not being called:

 Method called when item in entity drop own list selected

===========================================

try
{

var cd = new TeamDAO();

List<Team> teams = cd.GetTeamsForEntity(entityDropDown.SelectedValue);

teamDropDown.DataSource = teams;
teamDropDown.DataTextField = "TeamName";
teamDropDown.DataValueField = "Id";
teamDropDown.DataBind();

}
catch (Exception ex)
{
Common.Utils.HandleException(ex);
}



3.  Finally, when the user clicks OK on the form, I want a insert the data into the database from the code-behind file. How can I get a callback to method in the code-behind and how can I access the data entered by the user?

Thank you

 

 

 

Shinu
Top achievements
Rank 2
 answered on 26 Mar 2013
1 answer
229 views
Where is the CSS file(s) for the Silk Skin located?

I Find it much easier to be able to view the full CSS of the skins to make my changes (may want to change one color to another, can do a simple search and replace instead of waiting to see a wrong color and then overiding the css)

Thanks
Bill
Top achievements
Rank 2
 answered on 26 Mar 2013
1 answer
286 views
Browser: IE 9 [9.0.8112.16421]
Controls: 2013.1.220.45

I'm using http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx as a reference to adjust the width of a GridDateTimeColumn, however the actual DateInput box does not appear to be shrinking.  The Filter icon does display over top of the input box - see the attached image.

ASPX File:
<telerik:GridDateTimeColumn DataField="PostedDate" HeaderText="Posted Date" UniqueName="PostedDate" DataFormatString="{0:MMM dd, yyyy}" AllowFiltering="true" AllowSorting="true"
CurrentFilterFunction="GreaterThanOrEqualTo" HeaderStyle-Font-Bold="true" PickerType="DatePicker" FilterControlWidth="40px" EnableRangeFiltering="False" EnableTimeIndependentFiltering="False">
                            <ItemStyle Width="50px"></ItemStyle>
                            <HeaderStyle Width="50px"></HeaderStyle>
                        </telerik:GridDateTimeColumn>

 [I used extremely small values to test]. Any idea why this isn't working and/or how to fix it?

Edit: this works correctly in FF 19.0.1 and Chrome 25.0.1364.152
Mike
Top achievements
Rank 1
 answered on 25 Mar 2013
0 answers
101 views
Let's just cancel this one for now.  The situation has changed.  Thanks.

What's wrong with this scenario?

I have a RadButton within a popup formtemplate within a RadGrid.

In order to prevent multiple inserts the RadButton does a onClientClicked call to this JavaScript function:

function disableSave(button, args) {                
     if (Page_IsValid) {
          button.set_enabled(false);
     }
}


This has been working fine so far.  

However now I need to do some server side validating as well (This is a work-around since I can't get the validators in an ascx on that same FormTemplate to fire.  I've addressed that matter in a separate post.)  In the InsertCommand I do some checks and if they fail, I get a handle to the button and set Enabled=True.

Unfortunately this does not work.  The button remains disabled.  

Suggestions?

Boris
Top achievements
Rank 1
 asked on 25 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?