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

RadGrid Within Loginview Control - ajax request

2 Answers 83 Views
This is a migrated thread and some comments may be shown as answers.
Manisha Shivjiani
Top achievements
Rank 1
Manisha Shivjiani asked on 17 Jun 2010, 07:22 PM

I am having issue with Telerik Radgrid when placed with in asp:Loginview control.

The  grid has Radmenu items as template column. Grid is ajaxified using RadAjaxManager. Grid allows sorting.

The  problem is, when I sort a column, the radmenu items do not show.
If I don't place the grid in Loginview, everything works fine.

I would apperciate help on this.

Here is the code...

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadGridTesting.aspx.cs" Inherits="RadGridTesting"%> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> 
<html xmlns="">  
<head runat="server">  
<form id="form1" runat="server">  
<asp:ScriptManager ID="ScriptManager1" runat="server">  
<br /> 
<asp:LoginView ID="LoginView1" runat="server">  
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">  
<telerik:AjaxSetting AjaxControlID="rgCustomers">  
<telerik:AjaxUpdatedControl ControlID="rgCustomers" LoadingPanelID="rlpDefault" /> 
<telerik:RadAjaxLoadingPanel ID="rlpDefault" runat="server" Skin="Web20" /> 
<telerik:RadGrid ID="rgCustomers" runat="server" Width="100%" AutoGenerateColumns="false" 
Skin="Web20" DataSourceID ="SqlDSCustomers" 
AllowPaging="true" PageSize="10" PagerStyle-AlwaysVisible="false" PagerStyle-Position="TopAndBottom" 
PagerStyle-Mode="NextPrevAndNumeric" AllowSorting="true" AllowMultiRowSelection="true" 
OnItemDataBound="rgCustomers_ItemDataBound" OnNeedDataSource="rgCustomers_NeedDataSource">  
<MasterTableView Width="100%" GridLines="Both" DataKeyNames="CustomerID">  
<HeaderStyle Width="20px"></HeaderStyle> 
<HeaderStyle Width="20px"></HeaderStyle> 
<telerik:GridTemplateColumn HeaderText="PD Action" Visible="true" HeaderStyle-Width="55px" ItemStyle-Width="55px">  
<telerik:RadMenu ID="rmPDAction" runat="server" ItemClick="rmPDAction_ItemClick">  
<telerik:RadMenuItem ImageUrl="~/App_Themes/Images/RAD/Menu/down.png" Width="30px" Height="24px">  
<telerik:RadMenuItem Text="View" Value="View" /> 
<telerik:RadMenuItem Text="Edit" Value="Edit" /> 
<telerik:RadMenuItem Text="Continue Edit" Value="ContinueEdit" /> 
<telerik:RadMenuItem Text="Finish Edit" Value="FinishEdit" /> 
<telerik:GridBoundColumn DataField ="CustomerID" HeaderText ="ID" UniqueName ="CustomerID" DataType="System.Int32" AllowSorting="true" SortExpression="CustomerID" ></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText ="First Name" DataField ="FirstName" UniqueName ="FirstName" DataType="System.String" AllowSorting="true" SortExpression="FirstName"></telerik:GridBoundColumn> 
<asp:SqlDataSource ID="SqlDSCustomers" runat="server"   
ConnectionString="<%$ ConnectionStrings:AdventureWorksLT2008R2cnn %>"   
SelectCommand="SELECT [CustomerID], [FirstName], [LastName], [CompanyName], [EmailAddress], [Phone] FROM [vw_Customers]"></asp:SqlDataSource> </LoggedInTemplate> 
<asp:Literal ID="litLoginMsg" runat="server" Text="Please login"></asp:Literal> 

2 Answers, 1 is accepted

Sort by
Manisha Shivjiani
Top achievements
Rank 1
answered on 18 Jun 2010, 06:39 PM
Hi all,
I think the problem is related to Telerik radmenu.
When the request is ajax, the mover over event does not fire and there by the css that expands the menu, is  not set and so the menu items are not displayed.
Can any tell me how can I trigger the mouse hover event of the rad menu when request is an ajax request?


Telerik team
answered on 22 Jun 2010, 01:30 PM
Hello Manisha,

Try to place the RadAjaxManager out of the LoginView tag and instead of RadGrid control set the LoginView as ajax initiator and updated control. Give this suggestion a try and see if it helps.

Additionally, if the issue still persists it would be best if you open a formal support ticket and send us a simple working project, showing the unwanted behavior. We will debug it locally, and advise you further.

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
Asked by
Manisha Shivjiani
Top achievements
Rank 1
Answers by
Manisha Shivjiani
Top achievements
Rank 1
Telerik team
Share this question