hi there,
i have a problem with radgrid pageIndexChanged. i have a combobox where allow user to select state. when user select state, the radgrid will display all the data of selected state. but, when user want to go to next page, the data on grid was not based on the previous selected. i'll try to do PageIndexChanged event but error appear which is
" 'RadGrid1_PageIndexChanged' is not a member of 'ASP.default_aspx'."
my code is like below:
aspx
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0"
DataSourceID="SqlDataSource1" GridLines="None" AllowFilteringByColumn="True" AllowSorting="True" PageSize="15"
ShowFooter="True" AllowPaging="True" OnPageIndexChanged = "RadGrid1_PageIndexChanged" >
vb.net
Private Sub RadGrid1_PageIndexChanged(sender As Object, e As Telerik.Web.UI.GridPageChangedEventArgs) Handles RadGrid1.PageIndexChanged
RadGrid1.CurrentPageIndex = e.NewPageIndex
'bind data based on selected state
Dim str As String = "select username, name, levelAccess, description, status from [user] inner join par_branch on par_branch.id = [user].branchNo where id = '" & RadComboBox2.SelectedItem.Value & "'"
SqlDataSource1.SelectCommand = str
SqlDataSource1.DataBind()
RadGrid1.DataBind()
RadGrid1.Visible = True
actually i always faced the same error for others telerik components. what it is about? anyone can help me?
thanks in advanced..
i have a problem with radgrid pageIndexChanged. i have a combobox where allow user to select state. when user select state, the radgrid will display all the data of selected state. but, when user want to go to next page, the data on grid was not based on the previous selected. i'll try to do PageIndexChanged event but error appear which is
" 'RadGrid1_PageIndexChanged' is not a member of 'ASP.default_aspx'."
my code is like below:
aspx
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0"
DataSourceID="SqlDataSource1" GridLines="None" AllowFilteringByColumn="True" AllowSorting="True" PageSize="15"
ShowFooter="True" AllowPaging="True" OnPageIndexChanged = "RadGrid1_PageIndexChanged" >
vb.net
Private Sub RadGrid1_PageIndexChanged(sender As Object, e As Telerik.Web.UI.GridPageChangedEventArgs) Handles RadGrid1.PageIndexChanged
RadGrid1.CurrentPageIndex = e.NewPageIndex
'bind data based on selected state
Dim str As String = "select username, name, levelAccess, description, status from [user] inner join par_branch on par_branch.id = [user].branchNo where id = '" & RadComboBox2.SelectedItem.Value & "'"
SqlDataSource1.SelectCommand = str
SqlDataSource1.DataBind()
RadGrid1.DataBind()
RadGrid1.Visible = True
actually i always faced the same error for others telerik components. what it is about? anyone can help me?
thanks in advanced..