Declined
Last Updated: 03 Nov 2014 10:12 by Elena
Created by: Nikita
Comments: 1
Category: Grid
Type: Bug Report
0
I have RadGrid with RadButton as Checkbox inside it for selection.

This code: 
For Each item As GridItem In PrimaociGrid.MasterTableView.Items
            Dim cb As RadButton = CType(item.FindControl("PrimaPorukuCheckBox"), RadButton)
            cb.Checked = True
Next

worked in 2012.3.1016.40

With new 2013 q2 this is not working
I try 2013.2.709.40, same , not working 
There in no check in check box
Declined
Last Updated: 03 Nov 2014 10:09 by Elena
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>
Declined
Last Updated: 03 Nov 2014 10:00 by Elena
Created by: Omar
Comments: 1
Category: Grid
Type: Bug Report
0
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).
Completed
Last Updated: 03 Nov 2014 09:55 by Elena
Design-time error when SelectMethod property added.

aspx
    <telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server"
            AllowSorting="True"  PageSize="10" AllowMultiRowEdit="False"
            ItemType="ContosoUniversity.Models.Student" DataKeyNames="StudentID" 
            SelectMethod="GetStudentData"
            >                    
    </telerik:RadGrid>

code-behind:
        public IQueryable<Student> GetStudentData([Control] AcademicYear? displayYear)
        { .....

ERROR:
RadGrid - RadGrid1System.ArgumentException: source is not IEnumerable<> 
		at System.Linq.Queryable.AsQueryable(IEnumerable source) 
		at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) 
		at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) 
		at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) 
		at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) 
		at System.Web.UI.WebControls.DataBoundControl.PerformSelect() 
		at Telerik.Web.UI.GridTableView.PerformSelect() 
		at Telerik.Web.UI.GridTableView.DataBind() 
		at Telerik.Web.UI.RadGrid.DataBind() 
		at System.Web.UI.Design.WebControls.DataBoundControlDesigner.DataBind(BaseDataBoundControl dataBoundControl) 
		at Telerik.Web.Design.RadGridDesigner.DataBind(BaseDataBoundControl dataBoundControl) 
		at System.Web.UI.Design.WebControls.BaseDataBoundControlDesigner.GetDesignTimeHtml()
Declined
Last Updated: 03 Nov 2014 09:49 by Elena
Had a script to invoke filter button on enter key in the Filter header context menu of rad grid. This worked fine in Telerik DLL File version - 2010.2.929.35 but recently we upgraded to latest DLL which is File version - 2012.2.912.40 and it stopped working. Could you please help me in resolving this issue?

Code used in ASpx.cs was
 void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
        {
            if (e.Item.Value == "FilterMenuContainer")
                {
                    RadTextBox HCFMRTBFirstCond = e.Item.FindControl("HCFMRTBFirstCond") as RadTextBox;
                    HCFMRTBFirstCond.ClientEvents.OnKeyPress = "PressFilterButton";

                    RadTextBox HCFMRTBSecondCond = e.Item.FindControl("HCFMRTBSecondCond") as RadTextBox;
                    HCFMRTBSecondCond.ClientEvents.OnKeyPress = "PressFilterButton";

                }
            }

Javascript code is
function PressFilterButton(sender, args) {

    var c = args.get_keyCode();
    if (c == 13) {
        var btnFilter = null;
        var btnref = sender._clientID.substring(0, sender._clientID.indexOf("RTBFirstCond")) + 'FilterButton';

        btnFilter = document.getElementById(btnref);
        
        if (btnFilter != null) {
            btnFilter.click();
        }
    }
}
Declined
Last Updated: 03 Nov 2014 09:38 by Elena
hi,

I have radgrid ,its showing two others column but in database view its only exists, Bold column not exists in view. 

I attached output of radgrid.

View's Column
---------------------
 ,[StartDate]      ,[EndDate]      ,[DepartmentName]      ,[LabourRate]      ,[BillingRate]      ,[AgencyRate]      ,[FirstName]      ,[LastName]
 ,[Description]      ,[ManagerFirst]   ,[ManagerLast]     ,[WeekEnding]    ,[Hours]    ,[RateType]  ,[TimesheetStatus]  ,[TimesheetID]

---------------------


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Current Contractors</h1>
    <br/>
        <telerik:RadButton ID="RadButton1" runat="server" onclick="RadButton1_Click" 
        Text="Previous">
    </telerik:RadButton>
    <telerik:RadButton ID="RadButton2" runat="server" onclick="RadButton2_Click" 
        Text="Next">
    </telerik:RadButton>
    <br/>
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" 
        CellSpacing="0" DataSourceID="ObjectDataSource1" GridLines="None" 
        AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" 
        ExportSettings-FileName="Payroll Report" ExportSettings-ExportOnlyData="False" 
        ExportSettings-HideStructureColumns="True" ExportSettings-IgnorePaging="True" 
        ExportSettings-OpenInNewWindow="True" 
         
 >
<MasterTableView DataKeyNames="Name,StartDate,EndDate,DepartmentName,LabourRate,FirstName,LastName,Description,ManagerFirst,ManagerLast,WeekEnding,RateType,TimesheetStatus" 
            DataSourceID="ObjectDataSource1" CommandItemDisplay="Top"
            CommandItemSettings-ShowExportToCsvButton="True" CommandItemSettings-ShowExportToExcelButton="True" CommandItemSettings-ShowExportToPdfButton="True"  CommandItemSettings-ShowExportToWordButton="True" CommandItemSettings-ShowAddNewRecordButton="False" CommandItemSettings-ShowRefreshButton="False" CommandItemStyle-HorizontalAlign="Left"
  
            >
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
                <telerik:GridBoundColumn DataField="ContractorName" FilterControlWidth="20px" 
            FilterControlAltText="Filter ContractorName column" HeaderText="Contractor" 
            ReadOnly="True" SortExpression="FirstName" UniqueName="ContractorName"  >
        </telerik:GridBoundColumn>

        
        <telerik:GridBoundColumn DataField="Description" 
            FilterControlAltText="Filter Description column" HeaderText="Job" FilterControlWidth="20px" 
            ReadOnly="True" SortExpression="Description" UniqueName="Description">
        </telerik:GridBoundColumn>

        <telerik:GridBoundColumn DataField="ManagerName" 
            FilterControlAltText="Filter ManagerName column" HeaderText="Manager" FilterControlWidth="20px" 
            ReadOnly="True" SortExpression="ManagerFirst" UniqueName="ManagerName"  >
        </telerik:GridBoundColumn>


      

       
        <telerik:GridBoundColumn DataField="AgencyRate" DataType="System.Decimal" FilterControlWidth="20px" DataFormatString="{0:C}"
            FilterControlAltText="Filter AgencyRate column" HeaderText="Agency Rate" 
            SortExpression="AgencyRate" UniqueName="AgencyRate">
        </telerik:GridBoundColumn>

        <telerik:GridBoundColumn DataField="LabourRate" DataType="System.Decimal" FilterControlWidth="20px" DataFormatString="{0:C}"
            FilterControlAltText="Filter LabourRate column" HeaderText="Labour Rate" 
            ReadOnly="True" SortExpression="LabourRate" UniqueName="LabourRate">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="BillingRate" DataType="System.Decimal" FilterControlWidth="20px" DataFormatString="{0:C}" 
            FilterControlAltText="Filter BillingRate column" HeaderText="Billing Rate" 
            SortExpression="BillingRate" UniqueName="BillingRate">
        </telerik:GridBoundColumn>


       <telerik:GridBoundColumn DataField="StartDate" DataType="System.DateTime" FilterControlWidth="20px" DataFormatString="{0:dd/MM/yyyy}"
            FilterControlAltText="Filter StartDate column" HeaderText="Start" 
            ReadOnly="True" SortExpression="StartDate" UniqueName="StartDate">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DepartmentName" 
            FilterControlAltText="Filter DepartmentName column" HeaderText="Department" FilterControlWidth="20px" 
            ReadOnly="True" SortExpression="DepartmentName" UniqueName="DepartmentName"  >
        </telerik:GridBoundColumn>
        
  <telerik:GridBoundColumn DataField="Name" FilterControlWidth="20px" 
            FilterControlAltText="Filter Name column" HeaderText="Name" ReadOnly="True" 
            SortExpression="Name" UniqueName="Name" >
        </telerik:GridBoundColumn>        

        <telerik:GridBoundColumn DataField="Hours" DataType="System.Int32" FilterControlWidth="20px" 
            FilterControlAltText="Filter Hours column" HeaderText="Hours" 
            SortExpression="Hours" UniqueName="Hours">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="RateType" FilterControlWidth="20px" 
            FilterControlAltText="Filter RateType column" HeaderText="RateType" 
            ReadOnly="True" SortExpression="RateType" UniqueName="RateType">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="TimesheetStatus" FilterControlWidth="20px" 
            FilterControlAltText="Filter TimesheetStatus column" 
            HeaderText="Status" ReadOnly="True" SortExpression="TimesheetStatus" 
            UniqueName="TimesheetStatus">
        </telerik:GridBoundColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>

<FilterMenu EnableImageSprites="False"></FilterMenu>
    </telerik:RadGrid>
   

      <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetPayrollReport" TypeName="Business.PayrollReportList"  
                SortParameterName="sortBy"
        >
          <SelectParameters>
            <asp:SessionParameter SessionField="WeekEnding" DbType="DateTime" Name="WeekEnding" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
Completed
Last Updated: 03 Nov 2014 09:31 by ADMIN
Completed
Last Updated: 03 Nov 2014 09:30 by ADMIN
Completed
Last Updated: 30 Oct 2014 16:48 by Vincent
Declined
Last Updated: 20 Oct 2014 11:58 by Hans
Completed
Last Updated: 17 Oct 2014 13:14 by Jerry
Completed
Last Updated: 06 Oct 2014 14:31 by Clyde
Completed
Last Updated: 03 Oct 2014 13:13 by ADMIN
For the time being you can use the JavaScript workaround provided in the attachment.
Completed
Last Updated: 02 Oct 2014 13:44 by ADMIN
Declined
Last Updated: 26 Sep 2014 12:35 by ADMIN
Created by: obuliprakash
Comments: 1
Category: Grid
Type: Feature Request
0
I am new to telerik controls.
My requirement is i should display "n" number of items based on values available in a xmldocument which is generated at runtime.
is it possible to add the columns at aspx itself and bind it or it can be done only through dynamically creating datasource and binding it?
Also i should show some images and checkboxx for selection based on some conditions
Unplanned
Last Updated: 26 Sep 2014 12:22 by Ristogod