I have requirements similar to the Related Comboboxes demo. I took the code from this demo and replaced third RadComboBox with a RadGrid. Just like the demo... The User selects from the first RadComboBox1 which populates and opens the second RadComboBox2. I need the selection from the second RadComboBox2 to populated 2 RadGrids with the RadComboBox2's "value". Both RadGrids take the same 3 arguments. The value from RadComboBox2 plus 2 other arguments so I'm binding the grid in code-behind.
I'm using your latest version of ASP.NET Ajax, VS 2008 C# 3.5
I have searched the forums here and spent days trying dozens of solutions:
RadAjaxManagerProxy1_AjaxRequest
RadAjaxManager1_AjaxRequest, etc...
Now I'm getting weird looks from the boss.
Each time I attempt to get this to work, I get various problamatic results like:
The dropdowns work the first time but the second time clicking on the second dropdown does nothing.
The RadGrid populates but then both dropdowns are blank.
etc....
My needs are so much like the Related Comboboxes demo, I'm hoping someone will take the time to modify it to solve my problem. I'm sure others will benifit from this modified example and it would be a nice added demo to the product.
Here's my latest version of my JS functions:
Thanks... Rick Hubka
I'm using your latest version of ASP.NET Ajax, VS 2008 C# 3.5
I have searched the forums here and spent days trying dozens of solutions:
RadAjaxManagerProxy1_AjaxRequest
RadAjaxManager1_AjaxRequest, etc...
Now I'm getting weird looks from the boss.
Each time I attempt to get this to work, I get various problamatic results like:
The dropdowns work the first time but the second time clicking on the second dropdown does nothing.
The RadGrid populates but then both dropdowns are blank.
etc....
My needs are so much like the Related Comboboxes demo, I'm hoping someone will take the time to modify it to solve my problem. I'm sure others will benifit from this modified example and it would be a nice added demo to the product.
Here's my latest version of my JS functions:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
<script type="text/javascript"> |
//global variables for the Process and cities comboboxes |
var ProcessCombo; |
function pageLoad() { |
// initialize the global variables |
// in this event all client objects |
// are already created and initialized |
ProcessCombo = $find("<%= RadComboBoxProcess.ClientID %>"); |
} |
function LoadProcess(combo, eventArqs) { |
var item = eventArqs.get_item(); |
ProcessCombo.set_text("Loading..."); |
// if a dept is selected |
if (item.get_index() > 0) { |
// this will fire the ItemsRequested event of the |
// Process combobox passing the DeptGuid as a parameter |
ProcessCombo.requestItems(item.get_value(), false); |
} |
else { |
// the -Select a continent- item was chosen |
ProcessCombo.set_text(" "); |
ProcessCombo.clearItems(); |
} |
} |
function LoadGrid(sender, eventArgs) { |
var item = eventArgs.get_item().get_value(); |
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); |
ajaxManager.ajaxRequest(item); |
} |
function ItemsLoaded(combo, eventArqs) { |
if (combo.get_items().get_count() > 0) { |
// pre-select the first item |
combo.set_text(combo.get_items().getItem(0).get_text()); |
combo.get_items().getItem(0).highlight(); |
} |
combo.showDropDown(); |
} |
</script> |
</telerik:RadCodeBlock> |
Thanks... Rick Hubka