Javascript - Auto Tab When Using Telerik Rad Controls?

Dec 27, 2010

I am looking to auto tab from one RadNumericTextBox to the next once the MaxLength has been reached.I can do this in classic ASP, but cannot figure it out in .Net. Below is an example of my RadNumericTextBox.

<telerik:RadNumericTextBox ID="RadNumericTextBox_ExpLocation" runat="server" Width="20px"
MaxLength="3" NumberFormat-AllowRounding="False" Type="Number" NumberFormat-KeepTrailingZerosOnFocus="True"
IncrementSettings-InterceptMouseWheel="false" >
<NumberFormat DecimalDigits="0" GroupSeparator="" AllowRounding="false" KeepNotRoundedValue="false" />

View 1 Replies


Similar Messages:

C# - Call Javascript From Telerik RAD Controls?

Jul 12, 2010

So I want to call a javascript function when I click on a telerik control.

<telerik:RadDatePicker Width="110" ID="rdpFromDate" runat="server" AutoPostBack="false" OnSelectedDateChanged="JSFunction();">

View 3 Replies

Javascript - $(document).ready(function() Does Not Work Perfectly In Content Pages / Telerik Controls

Jul 22, 2010

The pages on my project are base on master and content pages...

I want to do something with javascript(rather than jquery) in one of content pages after ALL OF MASTER AND CONTENT ELEMENTS ARE LOADED COMPLETELY.(for example set focus on a RadComboBox Control)

For doing that I used the below code :

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../JQuery/jquery-1.4.1.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript"> [code]...

But alert(combo); always returns null.(the $find code is for telerik controls and the upper codes about telerik controls are completely true)To solve this null problem I test the ways shown below:

1-I Removed all of controls from master and content page except RadComboBox Control and null problem disappeared , so i derived the null peoblem is about all of elements of master and content page have not been loaded when

$find("<%= RadcbPersonelCompleteNameInvwNoskhehEdit.ClientID %>"); is fired.

2-so i used $(document).ready(function() { my codes }); instead of onload = onloadOfDocument;

3-at last i test the below code and it works perfectly :
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../JQuery/jquery-1.4.1.js" language="javascript" type="text/javascript"></script> [code]...

What function of document should i use for doing some javascript codes after all Of MASTER AND CONTENT ELEMENTS are loaded completely?

View 1 Replies

C# - JavaScript: How To Surround An Auto Generated JavaScript Block With Try/catch Statement

Jan 17, 2011

In the Script documents that asp.net automatically generates how can I surround the whole generated scripts with try/catch statement to avoid 'Microsoft JScript Compilation error'

My issue is: i got a DevExpress control (ASPxGridView) that added and set-up in run time, since i activated the grouping functionality in the grid I still get JS error says ';' expected whenever i use (click) on one of grouping/sorting abilities, I activated script Debugging for IE, in the JS code turns out that there is no missing ';' and once i click ignore for the error msg that VS generates every thing works fine, and surly end-user can't see this msg so i figured out if i try/catch the script that may help avoid this error.

View 1 Replies

How To Refresh Telerik:radgrid Contorl Using Javascript

Oct 5, 2010

How to refresh Telerik:radgrid contorl using Javascript ?

View 2 Replies

Telerik RadWindow JavaScript Return Values?

Jan 10, 2010

I have a parent page that launches a telerik radwindow and passes it an argument.

Once the radwindow is done processeing the value, I need it to return it to the parent page, and I would like the parent page to have access to this value in my code behind page.

I have tried to pass the value to a hidden field on my page and then trigger a page refresh and my code behind watches to see if the value is working.

I can't seem to get this to work. I get the return value in the parent javascript, but i can't get it from my hidden field from the code behind.

[code]....

View 1 Replies

Web Forms :: Telerik Date Picker Disable Using JavaScript?

Apr 2, 2010

I have a telerik Rad Date Picker; i want to Disable it using JavaScript

if have Following Code

fucntion Dis()
{
var v = document.getElementByID('dpNow').Disabled = true;
}
<telerik:RadDatePicker id="dpNow" runat="server' />

If i use Simple asp Text Box Control it's hide with the same code ; but if i use Telerik Rad Date Picker it can't hide

View 2 Replies

Web Forms :: Disable Telerik Date Picker Using JavaScript?

Oct 27, 2010

I have a telerik Rad Date Picker; i want to Disable it using JavaScript

if have Following Code

[code]....

If i use Simple asp Text Box Control it's hide with the same code ; but if i use Telerik Rad Date Picker it can't hide

View 2 Replies

C# - Telerik Grid With A JavaScript Confirm Box To Update A Column?

Mar 8, 2011

I have a Telerik grid. For each row there is a details table. The row is of type NominationTypeClass and the rows in the details table is of type Nomination. So what this means for each nomination type there is a list of nominations. The grid's code:

<telerik:RadGrid
AllowPaging="true"
AllowSorting="true"
AutoGenerateColumns="false"
GridLines="None"
ID="rgMyNominations".......

I have an action column that has a link that says Withdrawn. When clicked I have a JavaScript confirm box with a Yes or No option. If yes, then the nomination status is updated to withdrawn. Then I want the grid to be refreshed to show the updated status. I used the grid's update command to to show the show the JavaScript's command box. It updates, but is it the correct way to do it?

protected void rgMyNominations_UpdateCommand(object source, GridCommandEventArgs e)
{
try
{
StatusManager.InsertStatus( /* required parameters */ );
// Refresh grid
rgMyNominations.DataSource = GetNominationTypes();
rgMyNominations.DataBind();.....

...it says that NominationDate is not a property of NominationTypeClass. This is wrong, I don't know why it is taking the type for the row to be the type of the details table? NominationDate is a property of Nomination. It seems like it is overriding the datasources.

View 1 Replies

Forms Data Controls :: Best Way To Auto-format Auto-generated Grid Columns?

Mar 9, 2010

I have a "database explorer" page that is desgined to be pointed to an unknown database and allow users to browse the data, so it basically uses the SQL system tables to develop its queries and pull in data to tables using auto-generate columns.The problem that I have is that I would like certain types of columns to have certain formats and I'm wondering the best way to go about it. I could format the column in code in the RowDataBound event I assume, but I'm wondering if there some better standard way to do this? Is there a setting of any kind that I can use? For example I want all of the datetime fields to be formated for short date, like {0:d}, I want decimal fields to have 4 decimal places, etc.

View 2 Replies

VS 2008 Javascript Auto Tab?

Sep 9, 2010

I have four text boxes and am looking to auto tab when they reach their max length. I don't want to autopost back so I'm looking to write a javascript function like this but just can't get it working
Code:

txtYr.Attributes.Add("onkeypress", "return Tab(currentField,nextField)")

Code:

function Tab(currentField, nextField)
{
// Determine if the current field's max length has been reached.
[code]....

View 5 Replies

MVC Web App Is Auto Minimizing Javascript?

Dec 2, 2010

I have a project that just happens to be MVC and in Visual Studio 2010. (I don't know if that has anything to do with it, but I'm just trying to be specific in the problem) The issue is that when I build it it is auto minimizing the javascript and as such makes it really hard to debug.

I have looked at the build events and there are none.

I have looked for any vs extensions that could do this and I don't see any out of the ordinary.

I have edited the project file just to make sure nothing was hidden in it.

View 2 Replies

Javascript - Ajax Auto Comlete?

Mar 17, 2011

I want to make autocomplete facility like the one exists in yahoo mail ,when i write a mail address then i post it by(;) i see a list of mails begin with specific character , when i tried the ajax auto complete i face a problem ,when i write a name and post it by(;)and begin to write the second name , it concatenate the first one with the expected instances of the second one in the auto complete list. i want the same action in yahoo mail how to do this.(no concatenation in the auto complete list)?

View 2 Replies

C# - Javascript To Auto Click On Hyperlink?

May 5, 2010

How do I javascript automatically click on a hyperlink (id is link_page) after 5 minutes?

View 3 Replies

Javascript - Auto Partial Page Refresh Without UpdatePanel?

Oct 24, 2010

I want to make auto partial page refresh in asp.net. There is UpdatePanel but it sends too much data. So I've found that I can make a webservice and call it by the JavaScript code. But I don't know how to call webservice automatic. There are many examples showing how to call webservice by the button click event:

[URL]

How to do this by the interval? Am I going in good direction?

View 1 Replies

Facebook Javascript SDK: Event Auth.sessionChange And Auto.logout Firing Only On Page Refresh?

Jul 30, 2010

I have an implementation for my website to have facebook single sign on, using their javascript sdk.The javascript adds the cookie and I deal with it fine.The question is related to when an user logs out of facebook, I would expect the auth.sessionChange or auth.logout events to fire, but that only occurs when the page is refreshed.As my implementation is done server-side, this means that after the user logs out of facebook they can access one secure page one more time before being properly logged out.Is this the normal case or do these events usually fire up straight away and I'm maybe doing something incorrect in configuration of the facebook app?

View 1 Replies

Auto Generate Number In Asp.net Which Is Auto Add In Sql Server Table With Other Data?

Mar 25, 2011

I have project in asp.net with sql server backend.i want to auto generate a number for particular column.with the auto generated number i want to insert some other data in the same row same table. on button click event.details

railway PNR no.:- want to autogenerat
passenger details:- want to inserted simultaneously

View 2 Replies

Web Forms :: How To Auto Delete And Auto Create Table Data

Jun 6, 2010

I have a simple online web system where it possible for the visitors to "play around" with the system. They can like create categories and products and so forth. Everything they create are stored into a database.

What I want is to be able to reset this database with my default values (table data) every n hours.

So for example if we have a bunch of users that have played with the system and created new things. Then I want to be able to make some kode that deletes all data in the tables in this database and fill it with default data. The default data can come from a backup file, or another database with same tables structure or whatever.

I want this task to be done every day at 12 pm or every n hour.

Is this possible (by forexample scheduled webservice tasks or just something as long as it is simple).

View 8 Replies

Security :: Getting Login Control - Auto LockOut And Auto UnLock?

Dec 2, 2010

I'm trying to implement automatic lockout after 3 password failure attempts and then to auto unlock after 3 mins. But it does not auto lockout, I can still login if i use the correct password within the 3 mins.

Here is the Web.Config file

[Code]....

Here is the Login Control Logic.

[Code]....

View 12 Replies

How To Mix Telerik RadControls With AjaxControlToolkit Controls

Nov 23, 2010

I am working on a page that primarily uses Telerik RadControls, and thus uses the RadScriptManager control. However, I need to add some controls that use AjaxControlToolkit to the page, but since I cannot have two ScriptManagers on one page, so how would I do this?

View 1 Replies

JQuery :: Telerik Controls + AutoComplete?

Feb 22, 2011

Does anybody used Telerik Controls and JQuery Autocomplete together. I'm facing a typical problem Uncaught TypeError: Object #<an Object> has no method 'autocomplete'
when I try to use it on pages. Telerik Script and Style are registered in master pages.

View 3 Replies

C# - Controls In A Telerik Control Not Accessible From .cs File?

Oct 28, 2010

I am using telerik controls in my c# asp.net project. I am trying to disable a div in a telerik navigation menu from the .cs file. For example:

if (Emp_Role == "1" || Emp_Role == "5")
{
DivLeave.Visible = true;
}

I try run the project I get this error:

CS0103: The name 'DivLeave' does not exist in the current context

Here is an example of the aspx code

<telerik:RadMenu runat="server" ID="RadMenu1" Skin="Sitefinity" OnClientItemOpened="itemOpened"
Width="670px" Height="26px" EnableShadows="true">
<Items>
<telerik:RadMenuItem Text="Expenses" PostBack="false">
<Items>
<telerik:RadMenuItem CssClass="Stores" Width="640px">
ItemTemplate>
<div id="DivLeave" class="Wrapper">
<h3>
Expense Management</h3>
</div>

If I place the div outside the telerik control it works fine.

View 2 Replies

C# - Auto Generate Javascript To Update Client Html Compared To Previous Html?

Jan 16, 2010

do you think it would be difficult to write a framework where mvc compares last html it output to the current html we want to output, and instead of sending the entire html, figure out what has changed and generate js code that will do the updating as compared to previous html? (presuming nothing was manually changed on the client using js).

View 2 Replies

Web Forms :: Script Controls May Not Be Registered Before PreRender In Telerik?

Sep 19, 2010

I am currently trying to use Telerik. I am designing login control. But however I m getting this error :

[Code]....

I don't know how to resolve it, here is my Code :Aspx :

[Code]....

And this is C# :

[Code]....

View 1 Replies

C# - Telerik RadAjaxManager Loads Controls Slow The First Time?

Mar 15, 2011

So I have a RadPanelBar, and within that a RadTreeView. On a node click event I want so update some control.. for now I am just trying to update a textbox. It works fine except that the first time I click on a child node it takes a very long time to update the control.. Just a simple text change. I set a break point in my function and I noticed that it is taking long to fire the OnNodeClick event.. If I click a parent node in the tree view it loads fine on the first click. Also, after the first time I've clicked it.. it loads quickly.. If I refresh the page, it is slow on the first click again.. Is there something I am missing.. Is the structure of my HTML inappropriate for these AJAX calls? I feel like this is a really simple example that should work..

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="IncidentReportPanel">

[Code]....

EDIT: I updated my code according to this article, [URL] , and the problem persisted... again it only happens the first time..

EDIT: Just to clarify, by updating according to that article, I mean that I removed all the tables and relative widths and replaced them with css positioning and fixed widths.. the problem only happens the first time.. and it only happens sometimes.. quite a few times i thought i solved the problem as it would start responding quickly.. but then after I change my .aspx and change it back (even to the exact same thing when it was working quickly).. I get the same problem..

EDIT: So, I removed the AJAX component.. and setup the control so that it does a PostBack.. and it still takes long to hit my break point.. so it seems that its not an AJAX issue... but for some reason my events are taking long to fire..

EDIT: So I followed the advice on this post and I used the webservices to do my binding and handle everything from the client side code.. All seemed to be ok until I decided that I wanted to return nodes from my webservice that could also be expanded.. So in my webservice I set the ExpandMode of my RadTreeNodeData object to Webservice.. and it renders the data correctly when I expand the child nodes.. However now I see the same problem from before where some calls take 20-30 seconds.. It takes 20-30 seconds to even hit the break point in my webservice.. Should I use the OnClientNodeExpand event instead?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved