Solved

Can I set the autopostback property of a radComboBox control in javascript?

Posted on 2011-02-23
3
1,435 Views
Last Modified: 2013-12-26
I have a radComboBox with the autopostback set to true.  But in certain circumstances, I need to change the contents of the comboBox in javascript and not do the autopostback.
Is there some way I can do this?  What is the syntax?

      combo.setautopostback to false somehow
        combo.trackChanges();
        combo.set_selectedIndex(0);
        combo.set_text('');
        combo.set_value('');
        combo.commitChanges();
       combo.set autopostback back to true somehow

0
Comment
Question by:Jeanne_Kornkven
  • 2
3 Comments
 
LVL 6

Expert Comment

by:yjchong514
ID: 34967388
function testDetails(con,e)        {          

 if(con.value == "")  {                  
return false;          
 } else {
                __doPostBack(con,e);            
}                  

}
 
and your textbox should be...
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="true" onchange="return testDetails(this,this);" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
0
 

Accepted Solution

by:
Jeanne_Kornkven earned 0 total points
ID: 34971706
0
 

Author Closing Comment

by:Jeanne_Kornkven
ID: 35005245
The other solution did not apply to my question.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question