i want grid to be rebound without refreshing page when search button is fired
i’ve used PostBackTrigger but it isn’t worked for me
here is some part of my code.aspx
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<asp:TextBox runat="server" ID="txtSearch"/>
<asp:Button Text="Search" runat="server" ID="btnSearch" OnClick="btnSearch_Click" />
<asp:UpdatePanel runat="server" ID="pnlUpdate">
<ContentTemplate>
<rad:RadGrid id="RadGrid1" runat="server" EnableAJAX="True">
<MasterTableView AutoGenerateColumns="False">
<Columns>
<rad:GridBoundColumn HeaderText="CustomerID" DataField="CustomerID"
UniqueName= "CustomerID"></rad:GridBoundColumn>
<rad:GridBoundColumn HeaderText="ContactName" DataField="ContactName"
UniqueName= "ContactName"></rad:GridBoundColumn>
</Columns>
</MasterTableView>
</rad:RadGrid>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btnSearch" />
</Triggers>
</asp:UpdatePanel>
so is there any trick to solve this issue ??
thanks to all
Milan Mendpara
You have not defind any Button ‘Click’ EventHandlers for either the OnClick or OnCommand for the button. Be sure that you are not unconditionally binding your Data in the Page_Load or Page_Init Events, check to see if the page is not handling a postback.