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

RadMenu item not poping up after rad grid page index changed

3 Answers 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ratheesh
Top achievements
Rank 1
Ratheesh asked on 29 Jun 2011, 09:58 PM
Hi Friends,
This is my Grid

<

 

 

telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" PageSize="100" OnPageIndexChanged="RadGrid1_PageIndexChanged">

 

<MasterTableView CommandItemDisplay="TopAndBottom" PagerStyle-Position="TopAndBottom"

 

AutoGenerateColumns="true">

 

<ItemStyle Wrap="True" />

 

<HeaderStyle Wrap="False" Width="200px" />

 

<FilterItemStyle Wrap="False" />

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

<CommandItemTemplate>

 

<telerik:RadMenu ID="RadOptionsMenu" runat="server" ClickToOpen="false"

 

EnableRoundedCorners="true" EnableShadows="true"

 

OnItemClick="RadOptionsMenu_Clicked"

 

Skin="Vista">

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

<Items>

 

<telerik:RadMenuItem AccessKey="x" CssClass="MenuText" Text="Export">

 

<Items>

 

<telerik:RadMenuItem runat="server" Text="Excel">

 

</telerik:RadMenuItem>

 

</Items>

 

</telerik:RadMenuItem>

 

</Items>

 

</telerik:RadMenu>

 

<table width="100%">

 

<tr>

 

<td style="height: 10px;">

 

&nbsp;

 

</td>

 

</tr>

 

</table>

 

</CommandItemTemplate>

 

</MasterTableView>

 

<ClientSettings>

 

</ClientSettings>

 

</telerik:RadGrid>


The  menu item "Excel" is not showing up after the grid page index is changed. Its working fine in Load. I am using

RadAjaxPanel also.


Please help me.
Thanks
Ratheesh

 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Jun 2011, 06:02 AM
Hello Ratheesh,

I suppose you are using simple databinding and I tried the same scenario that worked as expected. Here is the code I tried.

C#:
protected void Page_Load(object sender, EventArgs e)
{
  if (!IsPostBack)
   {
            LoadData(); 
   }
}
    private void LoadData()
    {
        SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);
        SqlCommand cmd1 = new SqlCommand("select * from Employee", con);
        SqlDataAdapter ad1 = new SqlDataAdapter(cmd1);
        DataTable ds1 = new DataTable();
        ad1.Fill(ds1);
        RadGrid1.DataSource = ds1; ;
     RadGrid1.DataBind();
    }               
    protected void RadGrid1_PageIndexChanged(object sender, Telerik.Web.UI.GridPageChangedEventArgs e)
    {
        RadGrid1.CurrentPageIndex = e.NewPageIndex;
        LoadData();
    }

If that problem persist I suggest you to try with advanceddatabinding.

Thanks,
Shinu.
0
Ratheesh
Top achievements
Rank 1
answered on 30 Jun 2011, 09:23 PM
Hi,
I have no problems with the grid paging. It works fine. The problem is that after the page has been changed, the popup is not working.It works fine during the grid first load. Whenever i cahnge the page the menu is not poping up.

I have attached the screen shot. In the first picture you could see the popup menu "Excel" under Export menu. Here the Grid page index = 1 (First load)
The second picture you could see the page index is 5. I have my mouse scrolled over Export menu but the submenu "Excel" is not poping up here.

Plese help

Thanks
Ratheesh
0
Ratheesh
Top achievements
Rank 1
answered on 30 Jun 2011, 09:28 PM
Tags
Grid
Asked by
Ratheesh
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ratheesh
Top achievements
Rank 1
Share this question
or