How to load form once combobox value is selected?

2 posts, 0 answers
  1. Adam
    Adam avatar
    5 posts
    Member since:
    May 2019

    Posted 24 Jun 2019 Link to this post


    I have the following code:

     function FormLoad()
        function HideOpportunity(sender, eventArgs) {
      var x = document.getElementById("OpportunitySetUp");
       if ( === "none") { = "block";
      } else { =  "none";
        var ForecastingGrid = document.getElementById("ForecastingRevenue");
        = "none";
        var RevenueForecasting  = $sq("[id$='cboRevenueForecasting']").val();
         if (RevenueForecasting == "Manual Phasing") {
   = "block";
        } else {
   = "none";


    This seems to work perfectly up until the combobox value is selected. The code only seems to execture and show the "ForcastingRevenue" section when "autopostback = true" is added to the combobox properties but this is useless as it refreshes the page of the form, resetting the other .style.display element of "OpportunitySetUp".

    Is there a way to have the form load without adding in the autopostback property? I'm using the Cora Sequence framework if that is any use. 


    Thanks for any help!

  2. Rumen
    Rumen avatar
    14166 posts

    Posted 27 Jun 2019 Link to this post

    Hi Adam,

    Have you tried to cancel the postback:

    Cancelling an Event
    Several client-side events occur immediately before RadComboBox performs some action. Most of these events all have names that end with "-ing". You can use these events to cancel the RadComboBox's action by using the set_cancel method of the eventArgs passed to the handler:


    function OnClientSelectedIndexChanging(sender, eventArgs) {

    Another approach is to show the ForcastingRevenue for example in the OnClientSelectedIndexChanging event of the combobox.

    If you need further assistance on this, please provide a sample reproduction page or its contents so that I can replicate the scenario and can work on it on my side.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top