Hi,
I have a grid with a checkbox column I am able to select multiple rows then click an itemcommand button that will run code for each selected row. The code below works great and I can process each selected row. The problem is that there is no visual indicator that the process is running and the users end up clicking the button two or three times. I am attempting to add the grid into the ajax manager (see below) when I do that, I do get the loading panel. The problem is that grdAvailableItems.SelectedItems is empty there are no selected items.
Any Ideas?
Thanks,
Tom Usselman
I have a grid with a checkbox column I am able to select multiple rows then click an itemcommand button that will run code for each selected row. The code below works great and I can process each selected row. The problem is that there is no visual indicator that the process is running and the users end up clicking the button two or three times. I am attempting to add the grid into the ajax manager (see below) when I do that, I do get the loading panel. The problem is that grdAvailableItems.SelectedItems is empty there are no selected items.
Any Ideas?
Thanks,
Tom Usselman
protected void GrdAvailableItems_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "AddToQuote")
{
try
{
bool renumber = false;
hdnAddAdditionalItems.Value = "Yes";
foreach (GridDataItem item in grdAvailableItems.SelectedItems)
{
int multiplier = Convert.ToInt16(item["multiplier"].Text);
Single curprice = Convert.ToSingle(item["curprice"].Text);
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
DefaultLoadingPanelID
=
"RadAjaxLoadingPanel1"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"grdAvailableItems"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"grdQuoteItems"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"grdAvailableItems"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>