6 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 28 Jul 2008, 09:53 AM
Hi Jyoti,
Try with the following code snippet and see whether it helps.
CS:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
{ |
if (e.Item is GridPagerItem) |
{ |
GridPagerItem pager = (GridPagerItem)e.Item; |
Label lbl1 = (Label)pager.FindControl("ctl01"); |
Label lbl2 = (Label)pager.FindControl("ctl05"); |
lbl1.Visible = false; |
lbl2.Visible = false; |
} |
} |
ASPX:
<PagerStyle Mode="NextPrevAndNumeric" NextPageText="Next" PrevPageText="Prev" /> |
Thanks
Princy
0
Jyoti
Top achievements
Rank 1
answered on 28 Jul 2008, 11:19 AM
Hello Princy
Thanks for your help
but it will not completely working
only working for previous image not for next image(i.e. creating error on ct105
) And also not showing text for previous or next link
Thanks for your help
but it will not completely working
only working for previous image not for next image(i.e. creating error on ct105
) And also not showing text for previous or next link
0
Princy
Top achievements
Rank 2
answered on 28 Jul 2008, 11:26 AM
Hi Jyoti,
Can you tell me the mode that you have set in the Pager Style?
Princy
Can you tell me the mode that you have set in the Pager Style?
Princy
0
Jyoti
Top achievements
Rank 1
answered on 28 Jul 2008, 11:31 AM
Hello Princy
I am using mode
Mode
="NextPrevAndNumeric"
0
Princy
Top achievements
Rank 2
answered on 28 Jul 2008, 11:58 AM
Hi Jyoti,
I guess you are using RadControls for Asp.Net. If so try the following code snippet and see whether it helps.
CS:
Princy
I guess you are using RadControls for Asp.Net. If so try the following code snippet and see whether it helps.
CS:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
{ |
if (e.Item is GridPagerItem) |
{ |
GridPagerItem pager = (GridPagerItem)e.Item; |
LinkButton linkbtn = (LinkButton)pager.FindControl("ctl12"); |
lbl1.Visible = false; |
linkbtn.Visible = false; |
} |
} |
Princy
0
Jyoti
Top achievements
Rank 1
answered on 29 Jul 2008, 07:24 AM
Thanks Princy
I sort out the problem
thanks
I sort out the problem
thanks