Solved

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

Posted on 2011-02-23
3
1,421 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

772 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