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

(Urgent requirement) Pager template appearing morw than once.

3 Answers 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
giridhar
Top achievements
Rank 1
giridhar asked on 18 Feb 2009, 09:49 AM
Hi,
  I am using pager template(numeric pages) for the self refrential grid. It being displayed twice. When ever you expand node of self grid, it's displaying pager template again :(

It's a blocker, do let me  know if I get a work around.


I want pager template only for the grid and not the rows inside the grid.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 18 Feb 2009, 01:36 PM
Hello Giridhar,

To achieve your goal I suggest you to use the code snippet bellow:

C#:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)  
{  
   if (e.Item is GridPagerItem && e.Item.OwnerTableView != RadGrid1.MasterTableView)  
   {  
        e.Item.Style["display"] = "none";  
   }  


Give it a try and let me know if it works for you, or if I am missing something important.

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tim Rankel
Top achievements
Rank 2
answered on 21 Apr 2010, 12:51 AM
Hi,

I'm having a similar issue with the RadGrid where the PageSize=5 and I always want the Pager to show up on the bottom. Initially, there is only one pager active but if I load a dataset that has less than 5 rows, a duplicate pager appears on top. If the dataset has 5 or more rows (equal to the PageSize), this does not occur.

Is there any way to see if there is already a Pager active on the RadGrid? I tried the above codeblock without any success and I've attempted to qualify the Pager being added by various attributes such as its position but it appears it's utilizing the same attributes as the initial pager yet still being added to the top of the grid.

Thanks

Edit: Can disregard this, was not able to find a usable workaround but winds up not being an issue.
0
Pavlina
Telerik team
answered on 21 Apr 2010, 12:50 PM
Hello Tim,

The issue you are facing is already fixed and the fix is available in the official Q1 2010 SP1 release. Please, do not hesitate to contact us if other questions or problem arise.

Sincerely yours,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
giridhar
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Tim Rankel
Top achievements
Rank 2
Share this question
or