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

GridButtonColumn Click to update another control on AjaxManager - how to

1 Answer 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Geoff
Top achievements
Rank 1
Geoff asked on 31 Jan 2013, 02:25 PM
I have a programmatic created RadGrid that has a GridButtonColumn in it. I also have a Radlistview that I'm using on the same page.

I need the button click on the radgrid to update the radlistview via a Radajaxmanagerproxy. My issue I'm running into is that the GridButtonColumn that adds the button doesn't have an ID that I can link it to. I've tried using the ItemCommand event on the ajaxmanager and I don't get a result.

How would I set this up?


GridButtonColumn bc = new GridButtonColumn();
dg.MasterTableView.Columns.Add(bc);
bc.HeaderText = "Add";
bc.ButtonType = GridButtonColumnType.PushButton;
bc.CommandName = "Add_Click";
bc.Text = "Add";


<telerik:AjaxSetting AjaxControlID="ProductCrossSaleGrid" EventName="ProductCrossSaleGrid_ItemCommand">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="PricingLoadingPanel" />
    </UpdatedControls>
</telerik:AjaxSetting>


1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Feb 2013, 08:37 AM
Hi,

Please check this forum thread which discuss the same.

Thanks,
Shinu.
Tags
Grid
Asked by
Geoff
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or