Hello,
I have a RadGrid inside a Asp repeater. 0 to 15 grids are built depending on the user preferences through the repeater. I placed a Response.Write([Method Name]) in the events and this is one I obtained for 2 grid containing 5 rows each. The repeater Repeater.DataBind() is called when the user clicks on a button.
Button_Click begin
Repeater_DataBinding begin
Repeater_DataBinding end
RadGrid_NeedDataSource begin
RadGrid_NeedDataSource end
RadGrid_ItemDataBound begin
RadGrid_ItemDataBound end (occured 24 times)
Repeater_ItemDataBound begin
RadGrid_ItemDataBound begin
RadGrid_ItemDataBound end (occured 12 times)
Repeater_ItemDataBound end
RadGrid_NeedDataSource begin
RadGrid_NeedDataSource end (occured 24 times)
Repeater_ItemDataBound begin
RadGrid_ItemDataBound begin
RadGrid_ItemDataBound end (occured 12times)
Repeater_ItemDataBound end
Button_Click end
I am not sure why each grid runs ItemDataBound twice that many times (24 times = (5 rows + header) x 4 and then 12 times = (5 rows + header) x 2).
I would also expect RadGrid_NeedDataSource to be inside the Repeater_ItemDataBound scope.

|

We are upgrading from version 2011.1.519.35 to 2015.3.1111.35 and are having trouble with changes in how the editor behaves with contenteditable=false.
We have functionality that lets users add "mail merge fields" to the content in the editor. When they click a button, we use the editor's pasteHtml() function to add an HTML snippet containing information about the "field." Because we don't want the user to change the information within the field, just add or delete it as a single unit, we use contenteditable=false within its tags.
The problem is that in the 2011 editor, the user could continue typing after we inserted the snippet. But in the 2015 editor, the user's cursor seems to get trapped inside the snippet, and they are unable to continue editing past the snippet.
Is there a way around this? Or, is there a different way we can implement this kind of functionality that works better with the current editor?
Below is a sample ASPX page where you can experience the difference between the versions if you compile it against the 2011.1.519.35 assembly vs 2015.3.1111.35. The way to simulate the issue is to:
When using the 2011 editor, you can keep typing, but in the 2015 editor, you can't.
We're using Internet Explorer. (I'm using version 11, and haven't yet tried other versions.) Our pages have the X-UA-Compatible header set to IE=EmulateIE7, due to having some old code, which changes the editor's behavior a slightly in this example, but even without that header, the fundamental difference between the two versions remains:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.Page" %><%@ Import Namespace="System.Diagnostics" %><%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %><!DOCTYPE html><html><head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"></head><body> <h1><%= FileVersionInfo.GetVersionInfo(RadEditor1.GetType().Assembly.Location).FileVersion %> Telerik</h1> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"/> <telerik:RadEditor ID="RadEditor1" Runat="server" /> </form></body></html>
I've faced two issues on RadGrid while using horizontal scroll bar. Those are,
(i) I've used radgrid and set width 950px my concern is when the grid has no records it doesn't appear scroll bar but the sum of columns widths are greater than grid's width if the grid has records horizontal scroll appears.
(ii) And my another issue is I had details table in that same grid here the number of columns exceeds than grid's column but when the grid and details table has records I can't see rest of the columns I meant about the horizontal scroll bar doesn't appear up to details table column. The horizontal scroll bar shows only up to the main grid's column.
Note: I've set details table width 95%, 96% though its not working
Regards,
Balakrishnan Nagarajan
I am new to working with Telerik stuff, can someone tell me how this RadGrid is getting populated:
<telerik:RadGrid ID="ActivityTypeSkillGrid" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True" AutoGenerateColumns="False" GridLines="None" Skin="WebBlue" Width="822px" PageSize="20" Visible="false" OnItemCommand="Grid_ItemCommand" OnItemInserted="Grid_ItemInserted" OnItemDeleted="Grid_ItemDeleted" OnItemUpdated="Grid_ItemUpdated" AllowFilteringByColumn="true" OnItemDataBound="Grid_ItemDataBound" AllowSorting="true">
Radgrid update command is not getting triggered. During Update ItemCommand Event is also not getting triggered.
Below is the code,
<telerik:RadGrid ID="rgdUsers" runat="server" AllowPaging="True" ShowFooter="false"
AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="false"
OnNeedDataSource="rgdUsers_NeedDataSource" AllowFilteringByColumn="true" EnableLinqExpressions="false" Width="100%"
OnItemCommand="rgdUsers_ItemCommand" OnUpdateCommand="rgdUsers_UpdateCommand">
<PagerStyle Mode="NextPrevNumericAndAdvanced" />
<GroupingSettings CaseSensitive="false" />
<MasterTableView CommandItemDisplay="Top" DataKeyNames="UserId">
<Columns>
<Columns>
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table width="200px" cellpadding="0" cellspacing="0">
<tr>
<td>Name
</td>
<td>
<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' CausesValidation="false"></asp:Button>
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Cancel"></asp:Button>
</td>
</tr>
</table>
</FormTemplate>
</EditFormSettings>
</MasterTableView>
<%--<ClientSettings>
<ClientEvents OnRowDblClick="RowDblClick" OnPopUpShowing="onPopUpShowing" />
</ClientSettings>--%>
</telerik:RadGrid>
protected void rgdUsers_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
}
protected void rgdUsers_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
}
Can someone help me to know where did I go wrong
