Skip to content

Implement cascading combo box editors in batch mode and use WebMethods to populate the editors with data. .NET, ASP.NET Web Forms, ASPxGridView

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/asp-net-web-forms-grid-use-webmethods-to-implement-cascading-combo-boxes-in-batch-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grid View for ASP.NET Web Forms - How to use WebMethods to implement cascading combo boxes in batch edit mode

This example demonstrates how to implement cascading combo box editors in batch mode and use WebMethods to populate the editors with data. This example combines the following approaches:

Use WebMethods to implement cascading combo boxes in batch mode

Overview

The main idea is to use WebMethods to update the secondary editor's data based on the primary editor's value.

var lastCountryID;
var lastCityID;
function CountriesCombo_SelectedIndexChanged(s, e) {
    var currentCountryID = s.GetSelectedItem().value;
    lastCountryID = currentCountryID;
    lastCityID = -1;
    PageMethods.GetCities(lastCountryID, CitiesCombo_OnSuccessGetCities);
}

To enable this functionality, add the ScriptManager control to the page and set its EnablePageMethods property to true.

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
</asp:ScriptManager>

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Implement cascading combo box editors in batch mode and use WebMethods to populate the editors with data. .NET, ASP.NET Web Forms, ASPxGridView

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •