Hello!
I have below grid
ID Name Observations
1 Child1 offense type 1
1 Child1 offense type 2
1 Child1 offense type 3
2 Child2 offense type 1
2 Child2 offense type 2
2 Child2 offense type 3
And I like to suppress repeating column values to have below. Are there any telerik grid properties already to do that?
ID Name Observations
1 Child1 offense type 1
offense type 2
offense type 3
2 Child2 offense type 1
offense type 2
offense type 3
Thanks in advance
| if (e.Item is GridEditFormItem && e.Item.IsInEditMode) |
| { |
| GridEditFormItem item = (GridEditFormItem)e.Item; |
| GridEditableItem eeditedItem = e.Item as GridEditableItem; |
| DropDownList list = item.FindControl("NumericGrade") as DropDownList; |
| GridDataItem dataItem = e.Item as GridDataItem; |
| String sPoints = dataitem["Points"].Text; |
| int iPoints = Convert.ToInt16(sPoints); |
| for (int j = 0; j < iPoints + 1; j++) |
| { |
| list.Items.Add(j.ToString()); |
| } |
I guess I could create a GridTemplateColumn for the Points field and then it would be accessible in GridEditFormItem(?) but I don't really want to through extra fields into the edit form?
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="Cetero.StudyViewer.UserInterface.Web.test"%> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head id="Head1" runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <form runat="server" > |
| <table cellspacing="0" border="1"> |
| <tr> |
| <td> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> |
| <telerik:RadGrid ID="RadGrid1" runat="server" Width="700px" BorderColor="Red" BorderStyle="Solid" BorderWidth="1px" EnableAjaxSkinRendering="False" EnableViewState="False" GroupingEnabled="False" Skin="Default2006"> |
| <HeaderContextMenu EnableAjaxSkinRendering="False"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </HeaderContextMenu> |
| <ClientSettings AllowExpandCollapse="False" AllowGroupExpandCollapse="False"> |
| <Scrolling AllowScroll="True" UseStaticHeaders="True" /> |
| </ClientSettings> |
| <FilterMenu EnableAjaxSkinRendering="False"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| <ItemStyle Wrap="False" /> |
| <MasterTableView Width="700px" EnableViewState="False"> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </td> |
| </tr> |
| </table> |
| </form> |
| </body> |
| </html> |