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

prev/next page not working and not firing any event

8 Answers 549 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yoni
Top achievements
Rank 1
Yoni asked on 20 Dec 2011, 10:02 AM

Hi.

I have a grid with the nextPrevAndNumeric pager mode.
when i click on one of the page numbers - it works fine.
but when i click on the "prev/next/first/last page" nothing happens, no event is fired.

i went over the forums but didn't find an answer.

thanks in advance

8 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 20 Dec 2011, 10:31 AM
Are you getting any javascript exceptions or any other errors on the page? Also, if you are using AJAX try disabling it to see if no server exception is thrown.

Veli
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Yoni
Top achievements
Rank 1
answered on 20 Dec 2011, 10:46 AM
Hello Veli.
i dont get any javascript exceptions or errors.
i disabled the ajax settings but no difference.
0
Yoni
Top achievements
Rank 1
answered on 21 Dec 2011, 07:30 AM
Hello Veli.
i dont get any javascript exceptions or errors.
i disabled the ajax settings but no difference.
0
Veli
Telerik team
answered on 21 Dec 2011, 12:46 PM
Hello Yoni,

Consider opening a regular support ticket where you can send us a stripped down runnable project demonstrating your scenario. Thus, we will be able to better understand your scenario and advise you further.

Veli
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Yoni
Top achievements
Rank 1
answered on 21 Dec 2011, 01:03 PM

by the way, i tried changing the page style mode to Slider
and the same thing happens, i slide to another page, but it jumps back to the first page
perhaps that can help you understand the problem.

my markup code looks like this :

         <telerik:RadGrid ID="RadGrid1"   runat="server" AlternatingItemStyle-CssClass="TableHeaderAltEng"
            AccessKeyAllowSorting="True" AllowPaging="True" AutoGenerateColumns="false" PageSize="5" 
            ShowFooter="false" ShowHeader="true"    OnItemCommand="RadGrid1_ItemCommand" 
              CssClass ="GridBorders"   EnableAJAX="true"    EnableViewState ="true"  OnPageIndexChanged="RadGrid1_PageIndexChanged" OnNeedDataSource="RadGrid1_NeedDataSource"
            BorderWidth="0px" AllowMultiRowSelection="true" AllowSorting ="true" GridLines="Both"
<PagerStyle Mode="Slider"/>

the PageIndexChanged and NeedDataSource envents do not fire.

0
Veli
Telerik team
answered on 21 Dec 2011, 01:29 PM
In this case this appears to be a databinding issue. Can you show us some server code that is responsible for databinding the grid?

Veli
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Yoni
Top achievements
Rank 1
answered on 22 Dec 2011, 07:32 AM

that's what i did for databinding the grid:

RadGrid1.DataSource = DataTable1
RadGrid1.DataBind()

and you are right, when i erase the RadGrid1.DataBind() it works.
but, i have to write it, because i need it for other things.
so, what can i do to solve this problem?

0
Shinu
Top achievements
Rank 2
answered on 22 Dec 2011, 07:59 AM
Hello Yoni,

When you are binding the grid with NeedDataSource event, you should never call the Rebind() method or DataBind() as well when using advanced data-binding through NeedDataSource as explained in this documentation.

-Shinu.
Tags
Grid
Asked by
Yoni
Top achievements
Rank 1
Answers by
Veli
Telerik team
Yoni
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or