Hi,
I have a ButtonColumn into a RadGrid with WCF client binding and I have activated the EnablePostBackOnRowClick, but the event doesn't fire when I click the button. What am i doing wrong? Thank you.
This is the event handler into the .cs file:
I also got a RadAjaxManager:
And finally, my grid code:
I have a ButtonColumn into a RadGrid with WCF client binding and I have activated the EnablePostBackOnRowClick, but the event doesn't fire when I click the button. What am i doing wrong? Thank you.
This is the event handler into the .cs file:
protected void ColEditar_Click(object sender, EventArgs e) { //Event code goes here }I also got a RadAjaxManager:
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RgNoticias"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RgNoticias"></telerik:AjaxUpdatedControl> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager>And finally, my grid code:
<telerik:RadGrid ID="RgNoticias" runat="server" AllowPaging="True" AllowSorting="True" PageSize="10" AutoGenerateColumns="False" GridLines="None" EnableViewState="False"> <MasterTableView > <Columns> <telerik:GridButtonColumn UniqueName="ColEditar" CommandName="ColEditar_Click" Text="Editar"> </telerik:GridButtonColumn> </Columns> <SortExpressions > <telerik:GridSortExpression FieldName="FechaAlta" SortOrder="Descending" /> </SortExpressions> </MasterTableView> <ClientSettings EnablePostBackOnRowClick="true"> <DataBinding SelectMethod="ObtenerNoticias" Location="http://localhost/service.svc/rest/" sortparametertype="Linq" filterparametertype="Linq"> </DataBinding> </ClientSettings> </telerik:RadGrid>