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

How to visible false of paging Images

6 Answers 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jyoti
Top achievements
Rank 1
Jyoti asked on 28 Jul 2008, 07:54 AM
How to make false the visibility mode of paging images
radgrid take by default path of showing previous image,next image,last and first
how do i stop the visiblity of paging images and assign text to these images.

6 Answers, 1 is accepted

Sort by
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
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
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:
 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
Tags
Grid
Asked by
Jyoti
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jyoti
Top achievements
Rank 1
Share this question
or