grid is loading and when i am clicking on page numbers its working, but next precious button is not workng. and its not showing any error message also
Please help.
thanks,
please find the below code :
design page :
<asp:ScriptManager ID="ScriptManager1" ScriptMode="Release" runat="server" EnablePageMethods="true">
</asp:ScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadGrid ID="telGrid" runat="server" AllowPaging="True" AllowSorting="True" PageSize="10"
AllowFilteringByColumn="True" OnPageIndexChanged="PhaseView_PageIndexChanged" OnNeedDataSource="PhaseView_NeedDataSource">
<MasterTableView AutoGenerateColumns="false" TableLayout="Fixed">
<Columns>
<telerik:GridBoundColumn DataField="DrugId" HeaderText="DrugId" UniqueName="DrugId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DDC_CODE" HeaderText="DDC_CODE" UniqueName="DDC_CODE">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="TRADE_NAME" HeaderText="TRADE_NAME" UniqueName="TRADE_NAME">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" UniqueName="STATUS">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
<Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
</ClientSettings>
</telerik:RadGrid>
code behind :
protected void PhaseView_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
loadgrid();
}
private void loadgrid()
{
DataTable dtDrug = new ClinicBLL.Settings.Settings_DrugBLL().GridLoad_FetchForUpdate();
if (dtDrug != null && dtDrug.Rows.Count > 0)
{
telGrid.DataSource = dtDrug;
telGrid.DataBind();
}
}
Please help.
thanks,
please find the below code :
design page :
<asp:ScriptManager ID="ScriptManager1" ScriptMode="Release" runat="server" EnablePageMethods="true">
</asp:ScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadGrid ID="telGrid" runat="server" AllowPaging="True" AllowSorting="True" PageSize="10"
AllowFilteringByColumn="True" OnPageIndexChanged="PhaseView_PageIndexChanged" OnNeedDataSource="PhaseView_NeedDataSource">
<MasterTableView AutoGenerateColumns="false" TableLayout="Fixed">
<Columns>
<telerik:GridBoundColumn DataField="DrugId" HeaderText="DrugId" UniqueName="DrugId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DDC_CODE" HeaderText="DDC_CODE" UniqueName="DDC_CODE">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="TRADE_NAME" HeaderText="TRADE_NAME" UniqueName="TRADE_NAME">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" UniqueName="STATUS">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
<Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
</ClientSettings>
</telerik:RadGrid>
code behind :
protected void PhaseView_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
loadgrid();
}
private void loadgrid()
{
DataTable dtDrug = new ClinicBLL.Settings.Settings_DrugBLL().GridLoad_FetchForUpdate();
if (dtDrug != null && dtDrug.Rows.Count > 0)
{
telGrid.DataSource = dtDrug;
telGrid.DataBind();
}
}