when accessing column values in the client API (javascript), if the row indicator column is included the column indexes are off by 1. Behaving as if the row indicator column is not accounted for in the index scheme. without this (additional) row, indexing is correct. * I was just informed the indexing is also affected on the server side as well. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikColMismatch.Default" %> <%@ 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 runat="server"> <title></title> <script> function grdCompany_DblClick(sender, eventArgs) { var masterTable = sender.get_masterTableView(); var row = masterTable.get_dataItems(); var selRow = row[eventArgs.get_itemIndexHierarchical()]; alert("grdColId : " + (masterTable.getCellByColumnUniqueName(selRow, "grdColId")).innerHTML); alert("grdColFirstName : " + (masterTable.getCellByColumnUniqueName(selRow, "grdColFirstName")).innerHTML); alert("grdColLastName : " + (masterTable.getCellByColumnUniqueName(selRow, "grdColLastName")).innerHTML); } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <telerik:radgrid runat="server" ID="grdCompany" AutoGenerateColumns="False" CellPadding="0" CellSpacing="0"> <MasterTableView gridlines="Both" hierarchyloadmode="ServerBind" allowautomaticupdates="True" DataKeyNames="Id"> <Columns> <telerik:GridRowIndicatorColumn FilterControlAltText="Filter RowIndicator column" UniqueName="Id" Resizable="False"></telerik:GridRowIndicatorColumn> <telerik:GridBoundColumn DataField="Id" HeaderText="ID" UniqueName="grdColId" Visible="true"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="grdColFirstName" Visible="true"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" UniqueName="grdColLastName"></telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings> <ClientEvents OnRowDblClick="grdCompany_DblClick" /> </ClientSettings> </telerik:radgrid> </div> </form> </body> </html>
In case the RadGrid has several popup forms they are hidden behind the modal background.
The problem reported problem was due to specific implementation of the sample and was not caused by the RadGrid control.
The issue appears in Classic render mode and is due to the use of an image for background which does not stretches(which is a limitation). A possible workaround is to include the following CSS: .rgHeaderWrapper div.rgHeaderDiv{ background:none; }
For a RadGrid bound to a collection of objects, if the object has properties with a DisplayName or other DataAttributes, those attributes should be applied to the column. DisplayName should set the text in the header of the column.
This is not a bug. In order to show the value into the GridDropDownColumn the relation between fields from the GridDropDownColumn data source and the grid datasource must be correct. Into the attached project in order to show the value in GridDropDownColumn the GridDropDownColumn's DataField needs to be "MyItemID": <telerik:GridDropDownColumn DataField="MyItemID" DataSourceID="SqlDataSourceColors" FilterControlAltText="Filter Color column" HeaderText="GridDropDownColumn" ListTextField="ColorName" ListValueField="ColorID" SortExpression="ColorName" UniqueName="MyItemIDMyItemID"> </telerik:GridDropDownColumn> Additionally the filtering also works as expected. More information here: http://www.telerik.com/help/aspnet-ajax/grid-filtering-by-listtextfield-for-griddropdowncolumn.html
After the upgrade yesterday, when an event is fired using AjaxPanel or AjaxManager, the first column of the grid is showed reduced (I'm using a button to change the page view on a multipage, but the grid is on second page) then if I apply sorting on a column the grid show well, next change the page and wend return to the page of the grid this is showed bad. The same error is doing when I have a grid and RadWindow is showed over a grid (in modal mode).
Hi, In our project we are using the telerik grid on Invoice screen to display item list. We are adding item from text box and adds it to grid dynamically using UpdateGrid javascript function. Issue: When we add the new item to grid. It adds to grid as last row. But grid is not scrolling to last row. We want to scroll grid to last row every time we add new item. Below are the settings used in grid which did not work out: <ClientEvents OnRowSelected="rowSelected" OnRowCreated="OnRowCreated" OnRowCreating="OnRowCreating" /> <Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="false" SaveScrollPosition="true" /> Please help.
It is a bit disappointing that Enum filtering is not supported. I would recommend you re-evaluate the need for this type of support given the fact that the Entity Framework now supports Enums (I think as of 4.1?) AND since the RadGrid supports binding against the Entity Data Source. I think you'll find that Enums are very popular when using the Entity Framework Code First approach. It would be SUPER useful if your development team could find a way to support this. It would make an already great control even greater!
I have created a dynamic hierarchical grid bind with dataset. I would like to have provision for Add/Update/Delete. I could not do that. even i don't see any demos for the same to my knowledge that is not doable. Is there a way to do that please redirect me?