Telerik Rad grid miss-fire event

3 posts, 0 answers
  1. Phaneendra
    Phaneendra avatar
    27 posts
    Member since:
    Jul 2011

    Posted 06 Jun 2012 Link to this post

    Hi,
    I'm using rad grid for displaying data, when I click on View button with commandName="view",
    my grid is moving to previous page.
    If Grid page is 1 view command is working, 
    If Grid page is 2 and view command is clicked grid is moving to previous page.
    Once please look into the Issue, ASAP -

    Regards
    Phaneendra
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 15 Jun 2012 Link to this post

    Hi,

    Here is the sample code I tried with the given information.I couldn't replicate the issue you are facing. Please take a look into the code snippet.

    ASPX:
    <telerik:RadGrid ID="RadGrid1" runat="server"
            onneeddatasource="RadGrid1_NeedDataSource" AutoGenerateColumns="false"
            AllowPaging="true" onitemcommand="RadGrid1_ItemCommand">
        <MasterTableView CommandItemDisplay="Top">
            <Columns>
                <telerik:GridBoundColumn UniqueName="OrderID" HeaderText="OrderID" DataField="OrderID"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="EmployeeID" HeaderText="EmployeeID" DataField="EmployeeID"></telerik:GridBoundColumn>
                <telerik:GridButtonColumn UniqueName="View" CommandName="View" ButtonType="PushButton" Text="View"></telerik:GridButtonColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

    C#:
    protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
        if (e.CommandName == "View")
        {
           //your code
        }
    }

    Please provide the code for further help.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Phaneendra
    Phaneendra avatar
    27 posts
    Member since:
    Jul 2011

    Posted 22 Jun 2012 Link to this post

    Thanks, It due to RadAjaxPanel
Back to Top