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

[Solved] ItemCommand firiring after NeedDataSource

1 Answer 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David Kucharski
Top achievements
Rank 1
David Kucharski asked on 13 May 2013, 03:45 PM
I have a RadGrid that I am creating programmatically in the Page_Init. I have set the EnableViewState to True for both the RadGrid and the RadGrid.MasterTableView.

Once the grid displays, the user applies a filter. The radgrid is automatically re-bound. My problem is the ItemCommand is fired after the NeedDataSource. I don't believe this is the correct behaviour from what I have read. I would like to gather my filtering options before the NeedDataSource is fired.

Let me know what I am doing wrong.

1 Answer, 1 is accepted

Sort by
0
David Kucharski
Top achievements
Rank 1
answered on 13 May 2013, 07:46 PM
On the line in my aspx page I had EnableViewState=false. Once I changed it, all good.

<asp:PlaceHolder EnableViewState="true" ID="PlaceHolder1" runat="server" />
Tags
Grid
Asked by
David Kucharski
Top achievements
Rank 1
Answers by
David Kucharski
Top achievements
Rank 1
Share this question
or