This is a migrated thread and some comments may be shown as answers.

[Solved] Client side psotback on more than one control

2 Answers 96 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 01 Apr 2008, 02:16 PM
Hello!

I use following JavaScript code to force a postback with "TextChange" event on some radComboboxes and radTextboxes, but always one event fires. Any Ideas?


           objControl = $find("rcboMatJobNo")  
           objControl.set_text("Job")  
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}'"")  
 
           objControl = $find("rtxtMatAmount")  
           objControl.set_value("Amount")  
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}'"")  
 
           objControl = $find("rtxtMatPrice")  
           objControl.set_value("Price")  
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}'"")  
 
           objControl = $find("rcboMatMaterialNo")  
           objControl.set_text("Mat")  
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}'"")  
 

2 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 02 Apr 2008, 02:50 PM
Hi Markus,

I suspect that most of the events do not fire because the text of the comboboxes does not change. Please try the following code:
     objControl.set_text("Job")     
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}'"")     
    
           objControl = $find("rtxtMatAmount")   
objControl.set_text("Amount")       
           objControl.set_value("Amount")     
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}'"")     
    
           objControl = $find("rtxtMatPrice")    
objControl.set_text("Price")      
           objControl.set_value("Price")     
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}'"")     
    
           objControl = $find("rcboMatMaterialNo")     
           objControl.set_text("Mat")     
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}'"")     
 

If this does not help you, please open a support ticket and send us your project to test it locally.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Markus
Top achievements
Rank 1
answered on 03 Apr 2008, 09:47 AM
Hello Rosi,

I opened a support ticket with a sample project.

Regards Markus
Tags
ComboBox
Asked by
Markus
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Markus
Top achievements
Rank 1
Share this question
or