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

Want RadGrid Select Command to PostBack

1 Answer 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Casey
Top achievements
Rank 1
Casey asked on 26 Apr 2011, 08:02 PM
I have a RadGrid set as the AjaxUpdatedControl in the RadAjaxManager so that the filtering happens using ajax. There is a select command column with a select button that when it's clicked i want it to post back so that i can set a bunch of values for other controls on the page. Right now when the select button is clicked and I debug (step through in VS) on the server-side it looks like the controls are being set but the page isn't actually updated. I think this is because the select button is using a callback instead of postback.

Is there a way i can make the select button in the column cause a post back but still have the filtering use ajax?

in case it helps here's the code below.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableViewState="true" OnCommand="Ajax_Command">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="AccountGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="AccountGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadGrid ID="AccountGrid" runat="server" DataSourceID="AccountSqlDataSource" OnItemCommand="AccountGrid_ItemCommand"
    AutoGenerateColumns="false" AllowFilteringByColumn="True" AllowSorting="true" AllowPaging="True" PageSize="15" ShowFooter="True">
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView>
        <Columns>
            <telerik:GridButtonColumn Text="Select" CommandName="Select" UniqueName="SelectColumn" ButtonType="LinkButton" AutoPostBackOnFilter="true"></telerik:GridButtonColumn>
            <telerik:GridNumericColumn  
                DataField="AccountID" UniqueName="AccountNumberColumn" HeaderText="Account #"
                FilterDelay="1000" AutoPostBackOnFilter="true" FilterControlWidth="60" ShowFilterIcon="false">
         </Columns>
    </MasterTableView>
</telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 28 Apr 2011, 01:03 PM
Hello Casey,

Please check this example for more info how to achieve this:
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/partialajaxification/defaultcs.aspx

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Casey
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or